From 3dbfa201e249393424a37fa3fe1b88a6d52b73e2 Mon Sep 17 00:00:00 2001 From: Cameron McCormack Date: Wed, 1 Apr 2015 10:08:35 +1100 Subject: [PATCH] Bug 1145912 - Add some logging to help determine why this test intermittently fails; no review. --- .../test/chrome/test_animation_observers.html | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/dom/animation/test/chrome/test_animation_observers.html b/dom/animation/test/chrome/test_animation_observers.html index 33cc888b696c..61d00c78d2aa 100644 --- a/dom/animation/test/chrome/test_animation_observers.html +++ b/dom/animation/test/chrome/test_animation_observers.html @@ -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.