Bug 1145912 - Add some logging to help determine why this test intermittently fails; no review.

This commit is contained in:
Cameron McCormack 2015-04-01 10:08:35 +11:00
parent 630eacc28d
commit 3dbfa201e2

View File

@ -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.