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

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

Issue 304273005: Increase repaint test delay when running in browser (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 function runRepaintTest() 6 function runRepaintTest()
7 { 7 {
8 if (!window.testRunner || !window.internals) { 8 if (!window.testRunner || !window.internals) {
9 setTimeout(repaintTest, 100); 9 setTimeout(repaintTest, 500);
10 return; 10 return;
11 } 11 }
12 12
13 // TODO(enne): this is a workaround for multiple svg onload events. 13 // TODO(enne): this is a workaround for multiple svg onload events.
14 // See: http://crbug.com/372946 14 // See: http://crbug.com/372946
15 if (window.hasRunRepaintTest) 15 if (window.hasRunRepaintTest)
16 return; 16 return;
17 window.hasRunRepaintTest = true; 17 window.hasRunRepaintTest = true;
18 18
19 if (window.enablePixelTesting) 19 if (window.enablePixelTesting)
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 if (window.outputRepaintRects) 62 if (window.outputRepaintRects)
63 testRunner.setCustomTextOutput(repaintRects); 63 testRunner.setCustomTextOutput(repaintRects);
64 64
65 if (window.afterTest) 65 if (window.afterTest)
66 window.afterTest(); 66 window.afterTest();
67 67
68 // Play nice with async JS tests which want to notifyDone themselves. 68 // Play nice with async JS tests which want to notifyDone themselves.
69 if (!window.jsTestIsAsync) 69 if (!window.jsTestIsAsync)
70 testRunner.notifyDone(); 70 testRunner.notifyDone();
71 } 71 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698