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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/repaint/resources/text-based-repaint.js

Issue 2156053002: Revert of New PaintController under-invalidation checking (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@CommitOnTheWay
Patch Set: Created 4 years, 5 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 unified diff | Download patch
OLDNEW
1 // Asynchronous tests should manually call finishRepaintTest at the appropriate 1 // Asynchronous tests should manually call finishRepaintTest at the appropriate
2 // time. 2 // time.
3 window.testIsAsync = false; 3 window.testIsAsync = false;
4 window.outputRepaintRects = true; 4 window.outputRepaintRects = true;
5 5
6 // All repaint tests are asynchronous. 6 // All repaint tests are asynchronous.
7 if (window.testRunner) 7 if (window.testRunner)
8 testRunner.waitUntilDone(); 8 testRunner.waitUntilDone();
9 9
10 if (window.internals) { 10 if (window.internals) {
11 internals.settings.setUseDefaultImageInterpolationQuality(true); 11 internals.settings.setUseDefaultImageInterpolationQuality(true);
12 internals.runtimeFlags.slimmingPaintUnderInvalidationCheckingEnabled = true; 12 // TODO(wangxianzhu): Some spv2 tests crash with under-invalidation-checking
13 // because the extra display items between Subsequence/EndSubsequence for
14 // under-invalidation checking breaks paint chunks. Should fix this when fix ing
15 // crbug.com/596983.
16 if (!internals.runtimeFlags.slimmingPaintV2Enabled)
17 internals.runtimeFlags.slimmingPaintUnderInvalidationCheckingEnabled = t rue;
13 } 18 }
14 19
15 function runRepaintTest() 20 function runRepaintTest()
16 { 21 {
17 if (!window.testRunner || !window.internals) { 22 if (!window.testRunner || !window.internals) {
18 setTimeout(repaintTest, 500); 23 setTimeout(repaintTest, 500);
19 return; 24 return;
20 } 25 }
21 26
22 if (window.enablePixelTesting) 27 if (window.enablePixelTesting)
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 if (window.outputRepaintRects) 75 if (window.outputRepaintRects)
71 testRunner.setCustomTextOutput(repaintRects); 76 testRunner.setCustomTextOutput(repaintRects);
72 77
73 if (window.afterTest) 78 if (window.afterTest)
74 window.afterTest(); 79 window.afterTest();
75 80
76 // Play nice with async JS tests which want to notifyDone themselves. 81 // Play nice with async JS tests which want to notifyDone themselves.
77 if (!window.jsTestIsAsync) 82 if (!window.jsTestIsAsync)
78 testRunner.notifyDone(); 83 testRunner.notifyDone();
79 } 84 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698