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

Unified Diff: LayoutTests/inspector/console/console-uncaught-promise.html

Issue 670523002: DevTools: Fix flaky console-uncaught-promise.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/console/console-uncaught-promise-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/inspector/console/console-uncaught-promise.html
diff --git a/LayoutTests/inspector/console/console-uncaught-promise.html b/LayoutTests/inspector/console/console-uncaught-promise.html
index d2c3c05ad263b581495594b463bcd2f2bbba2928..ec9fc66f67171658abdf2d19a30c8b52bac775ac 100644
--- a/LayoutTests/inspector/console/console-uncaught-promise.html
+++ b/LayoutTests/inspector/console/console-uncaught-promise.html
@@ -30,7 +30,14 @@ function runPromises(source)
function onload()
{
runPromises("onload");
- runTest();
+
+ if (window.testRunner) {
+ testRunner.dumpAsText();
+ testRunner.waitUntilDone();
+ }
+
+ // Run tests after all microtasks.
+ setTimeout(runTest, 0);
}
function runPromisesFromInspector()
« no previous file with comments | « no previous file | LayoutTests/inspector/console/console-uncaught-promise-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698