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

Unified Diff: third_party/WebKit/LayoutTests/fast/images/repaint-subrect-grid.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/images/repaint-subrect-grid.html
diff --git a/third_party/WebKit/LayoutTests/fast/images/repaint-subrect-grid.html b/third_party/WebKit/LayoutTests/fast/images/repaint-subrect-grid.html
deleted file mode 100644
index 655bfc3e8eccc4c1c40a1d70ba1dc6ea33d3761e..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/images/repaint-subrect-grid.html
+++ /dev/null
@@ -1,54 +0,0 @@
-<html>
-<head>
-<script src="../repaint/resources/text-based-repaint.js"></script>
-</head>
-<body style="background: url(resources/grid-large.png) no-repeat; background-size: 55px 55px;">
- <div id="mask" style="position: absolute; top: -100px; left: -100px;
- background-color: blue; width: 18.33px; height: 18.33px;"></div>
- <script>
- var pos = [
- // First row.
- [0, 0],
- [0, 18.33],
- [0, 36.67],
-
- // Second row.
- [18.33, -9.17],
- [18.33, 9.17],
- [18.33, 27.5],
- [18.33, 45.83],
-
- // Third row.
- [36.67, 0],
- [36.67, 18.33],
- [36.67, 36.67],
-
- // Disappear.
- [-100, -100],
- ];
-
- var currentPos = 0;
-
- function repaintTest()
- {
- if (currentPos >= pos.length)
- return;
-
- var mask = document.getElementById("mask");
- mask.style.top = pos[currentPos][0];
- mask.style.left = pos[currentPos][1];
- ++currentPos;
-
- if (window.internals)
- internals.forceCompositingUpdate(document);
-
- if (window.testRunner)
- repaintTest();
- else
- setTimeout("repaintTest();", 1000);
- }
-
- onload = runRepaintAndPixelTest;
- </script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698