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

Side by Side Diff: LayoutTests/inspector/tracing/resources/worker.js

Issue 644093003: NOP refactor to make various layout tests use setTimeout 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « LayoutTests/http/tests/inspector/inspector-test.js ('k') | LayoutTests/resources/js-test.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 onmessage = function(event) { 1 onmessage = function(event) {
2 doWork(); 2 doWork();
3 setInterval(doWork, 0); 3 // FIXME: we need a better way of waiting for layout/repainting to happen
4 setInterval(doWork, 1);
4 }; 5 };
5 var message_id = 0; 6 var message_id = 0;
6 function doWork() 7 function doWork()
7 { 8 {
8 postMessage("Message #" + message_id++); 9 postMessage("Message #" + message_id++);
9 } 10 }
OLDNEW
« no previous file with comments | « LayoutTests/http/tests/inspector/inspector-test.js ('k') | LayoutTests/resources/js-test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698