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:
Jonathan Watt 2015-03-11 07:19:44 +00:00
Родитель 4e2bbb40b0
Коммит 74ff18bb06
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -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');