зеркало из https://github.com/mozilla/gecko-dev.git
Bug 927349 part 23 - Wait on player.ready on test_running_on_compositor.html; r=jwatt
This commit is contained in:
Родитель
c4aa216c4c
Коммит
01a5445ce7
|
@ -44,10 +44,7 @@ var omtaEnabled = SpecialPowers.DOMWindowUtils.layerManagerRemote &&
|
|||
div.style.animation = 'anim 100s';
|
||||
var player = div.getAnimationPlayers()[0];
|
||||
|
||||
// Wait so that animation can be set up.
|
||||
// FIXME: When we implement the AnimationPlayer.ready promise we should wait
|
||||
// on that here.
|
||||
window.requestAnimationFrame(function() {
|
||||
player.ready.then(function() {
|
||||
is(player.isRunningOnCompositor, omtaEnabled,
|
||||
'AnimationPlayer reports that it is running on the compositor'
|
||||
+ ' during playback');
|
||||
|
@ -55,7 +52,8 @@ window.requestAnimationFrame(function() {
|
|||
div.style.animationPlayState = 'paused';
|
||||
window.getComputedStyle(div).animationPlayState;
|
||||
|
||||
// FIXME: Likewise, we should wait on AnimationPlayer.ready here too.
|
||||
// FIXME: When we implement deferred pausing (bug 1109390), we should wait
|
||||
// on player.ready here.
|
||||
window.requestAnimationFrame(function() {
|
||||
is(player.isRunningOnCompositor, false,
|
||||
'AnimationPlayer reports that it is NOT running on the compositor'
|
||||
|
|
Загрузка…
Ссылка в новой задаче