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

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

Issue 2319833002: Deflake paint/invalidation/animated-gif*.html (Closed)
Patch Set: Disable under-invalidation checking for offscreen gif animation 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 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) {
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 internals.stopTrackingRepaints(document); 64 internals.stopTrackingRepaints(document);
65 65
66 // Play nice with JS tests which may want to print out assert results. 66 // Play nice with JS tests which may want to print out assert results.
67 if (window.isJsTest) 67 if (window.isJsTest)
68 window.outputRepaintRects = false; 68 window.outputRepaintRects = false;
69 69
70 if (window.outputRepaintRects) 70 if (window.outputRepaintRects)
71 testRunner.setCustomTextOutput(repaintRects); 71 testRunner.setCustomTextOutput(repaintRects);
72 72
73 if (window.afterTest) 73 if (window.afterTest)
74 window.afterTest(); 74 window.afterTest(repaintRects);
75 75
76 // Play nice with async JS tests which want to notifyDone themselves. 76 // Play nice with async JS tests and harness tests which want to notifyDone themselves.
77 if (!window.jsTestIsAsync) 77 if (!window.jsTestIsAsync && !window.add_completion_callback)
78 testRunner.notifyDone(); 78 testRunner.notifyDone();
79 } 79 }
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | third_party/WebKit/LayoutTests/paint/invalidation/animated-gif.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698