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

Unified 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 side-by-side diff with in-line comments
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 »
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 59330498eb1529e5853cc031a7d3e1a5bb4ac297..890daa22188ec576bc7706369152971fecbe250b 100644
--- a/LayoutTests/inspector/tracing/resources/worker.js
+++ b/LayoutTests/inspector/tracing/resources/worker.js
@@ -1,6 +1,7 @@
onmessage = function(event) {
doWork();
- setInterval(doWork, 0);
+ // FIXME: we need a better way of waiting for layout/repainting to happen
+ setInterval(doWork, 1);
};
var message_id = 0;
function doWork()
« 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