diff options
author | WPT Sync Bot <josh+wptsync@joshmatthews.net> | 2019-08-19 10:23:52 +0000 |
---|---|---|
committer | WPT Sync Bot <josh+wptsync@joshmatthews.net> | 2019-08-19 14:01:14 +0000 |
commit | 76712d7d25f8b48d78e6be87aaefd0e55d1f7d09 (patch) | |
tree | 58ad269a9cc1c534bd0022c591e52a489d754537 /tests/wpt/web-platform-tests/css/css-transitions/support/runParallelAsyncHarness.js | |
parent | 00a9f307733fa98cea8160e96d404bce9a871c09 (diff) | |
download | servo-76712d7d25f8b48d78e6be87aaefd0e55d1f7d09.tar.gz servo-76712d7d25f8b48d78e6be87aaefd0e55d1f7d09.zip |
Update web-platform-tests to revision 82b73b315ce7ed1554e7a9b7bced66a5831e4ee5
Diffstat (limited to 'tests/wpt/web-platform-tests/css/css-transitions/support/runParallelAsyncHarness.js')
-rw-r--r-- | tests/wpt/web-platform-tests/css/css-transitions/support/runParallelAsyncHarness.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/wpt/web-platform-tests/css/css-transitions/support/runParallelAsyncHarness.js b/tests/wpt/web-platform-tests/css/css-transitions/support/runParallelAsyncHarness.js index fa3b09c7d84..de9b7837900 100644 --- a/tests/wpt/web-platform-tests/css/css-transitions/support/runParallelAsyncHarness.js +++ b/tests/wpt/web-platform-tests/css/css-transitions/support/runParallelAsyncHarness.js @@ -113,8 +113,8 @@ root.runParallelAsyncHarness = function(options) { }); }); - // conclude test (possibly abort) - setTimeout(function() { + // conclude slice (possibly abort) + var concludeSlice = function() { tests.forEach(function(data) { // perform individual "done" test-case cases.forEach(function(name) { @@ -135,7 +135,10 @@ root.runParallelAsyncHarness = function(options) { // next test please, give the browser 50ms to do catch its breath setTimeout(runLoop, 50); - }, duration); + } + + // wait on RAF before cleanup to make sure all queued event handlers have run + setTimeout(function() {requestAnimationFrame(concludeSlice)},duration); } // allow DOMContentLoaded before actually doing something |