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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/inspector/tracing/worker-events.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/inspector/tracing/resources/worker.js
diff --git a/LayoutTests/inspector/tracing/resources/worker.js b/LayoutTests/inspector/tracing/resources/worker.js
index 890daa22188ec576bc7706369152971fecbe250b..baf6fbde6724f5cdb4844f9d64da8f61229ea1dc 100644
--- a/LayoutTests/inspector/tracing/resources/worker.js
+++ b/LayoutTests/inspector/tracing/resources/worker.js
@@ -1,10 +1,5 @@
-onmessage = function(event) {
- doWork();
- // FIXME: we need a better way of waiting for layout/repainting to happen
- setInterval(doWork, 1);
-};
var message_id = 0;
-function doWork()
+onmessage = function(event)
{
- postMessage("Message #" + message_id++);
-}
+ postMessage("Ack #" + message_id++);
+};
« 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