mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 13:25:37 +00:00
Backed out 2 changesets (bug 1144615, bug 1134500) for mochitest-dt failures.
Backed out changeset ea9cfb625ac6 (bug 1134500) Backed out changeset 2bb927ec6786 (bug 1144615) --HG-- extra : rebase_source : 21104648dcd61ad4c4b6d3ea77e49b09077acf7c
This commit is contained in:
parent
4a8de38c01
commit
8d08642b52
@ -19,7 +19,7 @@
|
||||
<span class="label">&allAnimations;</span>
|
||||
<button id="toggle-all" standalone="true" class="devtools-button"></button>
|
||||
</div>
|
||||
<div id="players"></div>
|
||||
<div id="players" class="theme-toolbar"></div>
|
||||
<div id="error-message">
|
||||
<p>&invalidElement;</p>
|
||||
<p>&selectElement;</p>
|
||||
|
@ -14,25 +14,22 @@ add_task(function*() {
|
||||
info("Select an animated node");
|
||||
yield selectNode(".animated", inspector);
|
||||
let widget = panel.playerWidgets[0];
|
||||
let player = widget.player;
|
||||
|
||||
info("Listen to animation state changes and click the toggle button to " +
|
||||
"pause all animations");
|
||||
let onPaused = waitForPlayState(player, "paused");
|
||||
info("Click the toggle button to pause all animations");
|
||||
let onRefresh = onceNextPlayerRefresh(widget.player);
|
||||
yield panel.toggleAll();
|
||||
yield onPaused;
|
||||
yield onRefresh;
|
||||
|
||||
info("Checking the selected node's animation player widget's state");
|
||||
is(player.state.playState, "paused", "The player front's state is paused");
|
||||
is(widget.player.state.playState, "paused", "The player front's state is paused");
|
||||
ok(widget.el.classList.contains("paused"), "The widget's UI is in paused state");
|
||||
|
||||
info("Listen to animation state changes and click the toggle button to " +
|
||||
"play all animations");
|
||||
let onRunning = waitForPlayState(player, "running");
|
||||
info("Click the toggle button to play all animations");
|
||||
onRefresh = onceNextPlayerRefresh(widget.player);
|
||||
yield panel.toggleAll();
|
||||
yield onRunning;
|
||||
yield onRefresh;
|
||||
|
||||
info("Checking the selected node's animation player widget's state again");
|
||||
is(player.state.playState, "running", "The player front's state is running");
|
||||
is(widget.player.state.playState, "running", "The player front's state is running");
|
||||
ok(widget.el.classList.contains("running"), "The widget's UI is in running state");
|
||||
});
|
||||
|
@ -28,7 +28,7 @@ body {
|
||||
}
|
||||
|
||||
#toggle-all {
|
||||
border-width: 0 0 0 1px;
|
||||
border-width: 0px 1px;
|
||||
min-height: 20px;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user