Bug 1038032 part 2 - Add test case for overflowing TimeDuration; r=dholbert
authorBrian Birtles <birtles@gmail.com>
Fri, 18 Jul 2014 10:31:18 +0900
changeset 216720 14c7a4ee44fcd6b34aee4a4f442e41d6ad4aabb0
parent 216719 39de47827a38c006650672c8a08d57a1a8482316
child 216721 f5ed82bd6e6d1a03d0bdda0782f86a063bcd70bb
push id515
push userraliiev@mozilla.com
push dateMon, 06 Oct 2014 12:51:51 +0000
treeherdermozilla-release@267c7a481bef [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdholbert
bugs1038032
milestone33.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1038032 part 2 - Add test case for overflowing TimeDuration; r=dholbert
layout/style/test/test_animations.html
--- a/layout/style/test/test_animations.html
+++ b/layout/style/test/test_animations.html
@@ -1953,14 +1953,25 @@ check_events([{ type: 'animationstart', 
                 animationName: 'always_fifty', elapsedTime: 0,
                 pseudoElement: '' },
               { type: 'animationend', target: div,
                 animationName: 'always_fifty', elapsedTime: 1,
                 pseudoElement: '' }],
              "events for animation-name: non_existent, always_fifty");
 done_div();
 
+/*
+ * Bug 1038032 - Infinite repetition and delay causes overflow
+ */
+new_div("animation: always_fifty 10s 1s infinite");
+advance_clock(0);
+advance_clock(2000);
+is(cs.marginLeft, "50px",
+   "infinitely repeating animation with positive delay takes effect"
+   + " (does not overflow)");
+done_div();
+
 SpecialPowers.DOMWindowUtils.restoreNormalRefresh();
 
 </script>
 </pre>
 </body>
 </html>