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

Unified Diff: third_party/WebKit/LayoutTests/fullscreen/full-screen-test.js

Issue 2586243002: Fixed flaky fullscreen video test. (Closed)
Patch Set: Return early from endTest() if already called. Created 4 years 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fullscreen/full-screen-test.js
diff --git a/third_party/WebKit/LayoutTests/fullscreen/full-screen-test.js b/third_party/WebKit/LayoutTests/fullscreen/full-screen-test.js
index ae6ff349b2ed3c32f5b68d4b987a8a10b60c6780..29484405ea3f9f0a5a019dce1046783ad28254ec 100644
--- a/third_party/WebKit/LayoutTests/fullscreen/full-screen-test.js
+++ b/third_party/WebKit/LayoutTests/fullscreen/full-screen-test.js
@@ -137,10 +137,12 @@ var testEnded = false;
function endTest()
{
+ if (testEnded)
+ return;
consoleWrite("END OF TEST");
testEnded = true;
if (window.testRunner)
- testRunner.notifyDone();
+ testRunner.layoutAndPaintAsyncThen(() => testRunner.notifyDone());
}
function logResult(success, text)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698