mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
Bug 1145912 - Add some logging to help determine why this test intermittently fails; no review.
This commit is contained in:
parent
630eacc28d
commit
3dbfa201e2
@ -364,17 +364,30 @@ function assert_records(expected, desc) {
|
||||
var animations = e.getAnimations();
|
||||
is(animations.length, 3, "getAnimations().length after transition starts");
|
||||
|
||||
info("animation states: " + animations.map(p => p.playState));
|
||||
info("animation times: " + animations.map(p => p.currentTime));
|
||||
|
||||
// Wait for the single MutationRecord for the Animation additions to
|
||||
// be delivered.
|
||||
yield await_frame();
|
||||
assert_records([{ added: animations, changed: [], removed: [] }],
|
||||
"records after transition starts");
|
||||
|
||||
info("animation states: " + animations.map(p => p.playState));
|
||||
info("animation times: " + animations.map(p => p.currentTime));
|
||||
|
||||
// Wait for the Animations to get going, then seek well into
|
||||
// the transitions.
|
||||
yield await_frame();
|
||||
|
||||
info("animation states: " + animations.map(p => p.playState));
|
||||
info("animation times: " + animations.map(p => p.currentTime));
|
||||
|
||||
animations.forEach(p => p.currentTime = 50000);
|
||||
|
||||
info("animation states: " + animations.map(p => p.playState));
|
||||
info("animation times: " + animations.map(p => p.currentTime));
|
||||
|
||||
is(animations.filter(p => p.playState == "running").length, 3, "number of running Animations");
|
||||
|
||||
// Cancel one of the transitions by setting transition-property.
|
||||
|
Loading…
Reference in New Issue
Block a user