Open
Description
This problem occurs after #425 has been applied.
Example test case that shows problem:
<!doctype html>
<div id="target"></div>
<script src="../bootstrap.js"></script>
<script>
'use strict';
var target = document.querySelector('#target');
var effect = {left: '10px'};
var testA = async_test('This test is fine.');
var animA = new Animation(target, effect, 1);
animA.onend = function() {
testA.done();
};
document.timeline.play(animA);
var testB = async_test('This test fails under test-runner.html.');
var animB = new Animation(target, effect, {duration: 1});
animB.onend = function() {
var animC = new Animation(target, effect, {duration: 1});
animC.onend = function() {
testB.done();
};
document.timeline.play(animC);
};
document.timeline.play(animB);
timing_test(function() {at(4, function() {});}, 'Force testharness to execute to 4 seconds.');
</script>
When viewing the test in real time the test passes, when executing the test in test-runner the second test fails.