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.
This commit is contained in:
Brian Birtles 2015-07-29 10:57:38 +09:00
parent 9b788b694b
commit 8a25d40d2a

View File

@ -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);