| 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)
|
|
|