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

Unified Diff: LayoutTests/resources/js-test.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/inspector/tracing/resources/worker.js ('k') | LayoutTests/resources/run-after-display.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/resources/js-test.js
diff --git a/LayoutTests/resources/js-test.js b/LayoutTests/resources/js-test.js
index 45fa85dcfd7865479fd9aca4638b80cd37038399..87433c21574e2ca35dc55f2074d94bb0836eceaa 100644
--- a/LayoutTests/resources/js-test.js
+++ b/LayoutTests/resources/js-test.js
@@ -691,7 +691,8 @@ function shouldHaveHadError(message)
// function.
function asyncGC(callback) {
GCController.collectAll();
- setTimeout(callback, 0);
+ // FIXME: we need a better way of waiting for chromium events to happen
+ setTimeout(callback, 1);
}
function gc() {
@@ -715,7 +716,8 @@ function asyncMinorGC(callback) {
GCController.minorCollect();
else
testFailed("Minor GC is available only when you enable the --expose-gc option in V8.");
- setTimeout(callback, 0);
+ // FIXME: we need a better way of waiting for chromium events to happen
+ setTimeout(callback, 1);
}
function isSuccessfullyParsed()
« no previous file with comments | « LayoutTests/inspector/tracing/resources/worker.js ('k') | LayoutTests/resources/run-after-display.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698