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

Unified Diff: third_party/WebKit/LayoutTests/fast/repaint/resources/window-resize-repaint.js

Issue 2327223002: Move all remaining fast/repaint tests 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/resources/window-resize-repaint.js
diff --git a/third_party/WebKit/LayoutTests/fast/repaint/resources/window-resize-repaint.js b/third_party/WebKit/LayoutTests/fast/repaint/resources/window-resize-repaint.js
deleted file mode 100644
index 9e27fbf89cd7aebe25ec2885724d3cd46f7019b5..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/repaint/resources/window-resize-repaint.js
+++ /dev/null
@@ -1,40 +0,0 @@
-var testSizes = [
- { width: 600, height: 500 }, // initial size
- { width: 600, height: 250 }, // height decrease
- { width: 400, height: 250 }, // width decrease
- { width: 400, height: 600 }, // height increase
- { width: 800, height: 600 } // width increase
-];
-
-var sizeIndex = 0;
-var repaintRects = "";
-
-if (window.internals) {
- internals.settings.setUseDefaultImageInterpolationQuality(true);
- internals.runtimeFlags.paintUnderInvalidationCheckingEnabled = true;
-}
-
-function doTest() {
- if (sizeIndex) {
- repaintRects += internals.layerTreeAsText(document, window.internals.LAYER_TREE_INCLUDES_PAINT_INVALIDATIONS);
- internals.stopTrackingRepaints(document);
- }
- ++sizeIndex;
- if (sizeIndex < testSizes.length) {
- internals.startTrackingRepaints(document);
- window.resizeTo(testSizes[sizeIndex].width, testSizes[sizeIndex].height);
- testRunner.layoutAndPaintAsyncThen(doTest);
- } else if (window.testRunner) {
- testRunner.setCustomTextOutput(repaintRects);
- testRunner.notifyDone();
- }
-}
-
-if (window.testRunner) {
- testRunner.useUnfortunateSynchronousResizeMode();
- testRunner.waitUntilDone();
- onload = function() {
- window.resizeTo(testSizes[0].width, testSizes[0].height);
- testRunner.layoutAndPaintAsyncThen(doTest);
- };
-}

Powered by Google App Engine
This is Rietveld 408576698