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

Unified Diff: third_party/WebKit/LayoutTests/animations/resources/animation-test-helpers.js

Issue 2675913003: Fix flaky compositing/reflections/nested-reflection-transition.html (Closed)
Patch Set: rebase Created 3 years, 10 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 | « third_party/WebKit/LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/animations/resources/animation-test-helpers.js
diff --git a/third_party/WebKit/LayoutTests/animations/resources/animation-test-helpers.js b/third_party/WebKit/LayoutTests/animations/resources/animation-test-helpers.js
index ba84169c4eae95395dd90ed2a99e8b732eeadf26..23d644e80f7f398dbb37721096cd73bceb9a7810 100644
--- a/third_party/WebKit/LayoutTests/animations/resources/animation-test-helpers.js
+++ b/third_party/WebKit/LayoutTests/animations/resources/animation-test-helpers.js
@@ -167,6 +167,10 @@ function comparePropertyValue(computedValue, expectedValue, tolerance, expectedI
return true;
}
+function waitForCompositor() {
+ return document.body.animate({opacity: [1, 1]}, 1).finished;
+}
+
function endTest()
{
log('Ending test');
@@ -175,8 +179,11 @@ function endTest()
result += '<br>Log:<br>' + logMessages.join('<br>');
resultElement.innerHTML = result;
- if (window.testRunner)
- testRunner.notifyDone();
+ if (window.testRunner) {
+ waitForCompositor().then(() => {
+ testRunner.notifyDone();
+ });
+ }
}
function runChecksWithRAF(checks)
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698