зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1141710, part 12 - Check that the hold time is updated when the startTime is set to null. r=birtles
This commit is contained in:
Родитель
4e2bbb40b0
Коммит
74ff18bb06
|
@ -567,12 +567,17 @@ async_test(function(t) {
|
|||
|
||||
var player = div.getAnimationPlayers()[0];
|
||||
|
||||
var storedCurrentTime;
|
||||
|
||||
player.ready.then(t.step_func(function() {
|
||||
storedCurrentTime = player.currentTime;
|
||||
player.startTime = null;
|
||||
return player.ready;
|
||||
})).catch(t.step_func(function(reason) {
|
||||
assert_unreached(reason);
|
||||
})).then(function() {
|
||||
assert_equals(player.currentTime, storedCurrentTime,
|
||||
'Test that hold time is correct');
|
||||
t.done();
|
||||
});
|
||||
}, 'Setting startTime to null');
|
||||
|
|
Загрузка…
Ссылка в новой задаче