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

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

Issue 2049263003: Check rect under-invalidations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ImageQuality
Patch Set: x Created 4 years, 6 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 window.generateMinimumRepaint = false; // See comments about 'Minimum repaint' b elow. 5 window.generateMinimumRepaint = false; // See comments about 'Minimum repaint' b elow.
6 6
7 // All repaint tests are asynchronous. 7 // All repaint tests are asynchronous.
8 if (window.testRunner) 8 if (window.testRunner)
9 testRunner.waitUntilDone(); 9 testRunner.waitUntilDone();
10 10
11 if (window.internals) 11 if (window.internals) {
12 internals.settings.setUseDefaultImageInterpolationQuality(true); 12 internals.settings.setUseDefaultImageInterpolationQuality(true);
13 // TODO(wangxianzhu): Some spv2 tests crash with under-invalidation-checking
14 // because the extra display items between Subsequence/EndSubsequence for
15 // under-invalidation checking breaks paint chunks. Should fix this when fix ing
16 // crbug.com/596983.
17 if (!internals.runtimeFlags.slimmingPaintV2Enabled)
18 internals.runtimeFlags.slimmingPaintUnderInvalidationCheckingEnabled = t rue;
19 }
13 20
14 function runRepaintTest() 21 function runRepaintTest()
15 { 22 {
16 if (!window.testRunner || !window.internals) { 23 if (!window.testRunner || !window.internals) {
17 setTimeout(repaintTest, 500); 24 setTimeout(repaintTest, 500);
18 return; 25 return;
19 } 26 }
20 27
21 if (window.enablePixelTesting) 28 if (window.enablePixelTesting)
22 testRunner.dumpAsTextWithPixelResults(); 29 testRunner.dumpAsTextWithPixelResults();
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 } else { 191 } else {
185 var newRect = [xBegin, y, xWidth, 1]; 192 var newRect = [xBegin, y, xWidth, 1];
186 nextRectsMayContinue.push(newRect); 193 nextRectsMayContinue.push(newRect);
187 result.push(newRect); 194 result.push(newRect);
188 } 195 }
189 } 196 }
190 rectsMayContinue = nextRectsMayContinue; 197 rectsMayContinue = nextRectsMayContinue;
191 } 198 }
192 return result; 199 return result;
193 } 200 }
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | third_party/WebKit/Source/core/frame/FrameView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698