Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(162)

Unified Diff: third_party/WebKit/LayoutTests/fast/repaint/text-match-document-change.html

Issue 2321183002: Move repaint tests (except for svg/) to paint/invalidation (Closed)
Patch Set: - Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/repaint/text-match-document-change.html
diff --git a/third_party/WebKit/LayoutTests/fast/repaint/text-match-document-change.html b/third_party/WebKit/LayoutTests/fast/repaint/text-match-document-change.html
deleted file mode 100644
index 254a2dc299ee7fc6f39b4fd176762f384a54f863..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/repaint/text-match-document-change.html
+++ /dev/null
@@ -1,37 +0,0 @@
-<!DOCTYPE html>
-<script src="resources/text-based-repaint.js"></script>
-<script>
-function highlightRange(id, start, end) {
- var frameWindow = document.getElementById('iframe').contentWindow;
- var range = frameWindow.document.createRange();
- var elem = frameWindow.document.getElementById(id).firstChild;
- range.setStart(elem, start);
- range.setEnd(elem, end);
- frameWindow.internals.addTextMatchMarker(range, false);
-}
-
-function repaintTest() {
- document.getElementById('iframe').contentDocument.getElementById('to-be-changed').textContent = 'After change';
-}
-
-if (window.internals) {
- onload = function() {
- highlightRange('unchanged', 11, 17);
- highlightRange('to-be-changed', 15, 21);
- runRepaintAndPixelTest();
- };
-}
-</script>
-Tests paint invalidation of the scrollbar (to repaint tickmarks) on document change when there are text match markers.
-Passes if the tickmarks are updated on document change.<br>
-<!-- Currently paint invalidation of main frame scrollbar is not tracked,
- so use a frame to show the invalidation of tickmarks. -->
-<iframe id="iframe" style="position: absolute; top: 100px; height: 400px" srcdoc="
- <div id='unchanged'>
- Unchanged: findme
- </div>
- <div id='to-be-changed' onclick='this.textContent=&amp;quot;After change&amp;quot;'>
- To be changed: findme (Manual testing: Find-in-page 'findme', then click here)
- </div>
- <div style='height: 1000px'><!-- To show the scrollbar --></div>">
-</iframe>

Powered by Google App Engine
This is Rietveld 408576698