From 8a25d40d2ab350194123d3b754ada9930b643b0b Mon Sep 17 00:00:00 2001 From: Brian Birtles Date: Wed, 29 Jul 2015 10:57:38 +0900 Subject: [PATCH] Bug 1180125 part 0 - Fix an obvious bug in animation_utils.js; r=dbaron There was a bug introduced in to animation_utils.js in https://hg.mozilla.org/mozilla-central/rev/496e867cd2cd (bug 1070745). This patch fixes this bug so we can be sure testing events correctly before messing with them. --- layout/style/test/animation_utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layout/style/test/animation_utils.js b/layout/style/test/animation_utils.js index c6299046c04f..131e9b755166 100644 --- a/layout/style/test/animation_utils.js +++ b/layout/style/test/animation_utils.js @@ -55,7 +55,7 @@ function advance_clock(milliseconds) { // This function checks that the list of eventsExpected matches // the received events -- but it only checks the properties that // are present on eventsExpected. - is(gEventsReceived.length, gEventsReceived.length, + is(gEventsReceived.length, eventsExpected.length, "number of events received for " + desc); for (var i = 0, i_end = Math.min(eventsExpected.length, gEventsReceived.length);