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

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

Issue 643533003: DevTools: remove unnecessary setInterval from worker-events.html test (Closed) Base URL: svn://svn.chromium.org/blink/trunk
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 | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/inspector/tracing/worker-events.html » ('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 var message_id = 0;
2 doWork(); 2 onmessage = function(event)
3 // FIXME: we need a better way of waiting for layout/repainting to happen 3 {
4 setInterval(doWork, 1); 4 postMessage("Ack #" + message_id++);
5 }; 5 };
6 var message_id = 0;
7 function doWork()
8 {
9 postMessage("Message #" + message_id++);
10 }
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/inspector/tracing/worker-events.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698