cancelDelay before measureImmediate + changes in tests.

This commit is contained in:
Xavier Mamano
2011-11-16 19:51:28 +01:00
parent a04df3e359
commit eae04c92bc
2 changed files with 4 additions and 4 deletions

View File

@@ -289,7 +289,7 @@
// move 10 pixels
trigger("mousemove", 0, 10);
t.eq(log.length, 0, "a) no event fired yet");
t.eq(log.length, 1, "a) no event fired yet");
t.delay_call(
delay, function() {
@@ -298,7 +298,7 @@
t.ok(log[0] && log[0].type == "measurepartial", "a) correct type");
// mousemove within the partialDelay fires no event, so the
// measure below is the one of the initial point
t.ok(log[0] && log[0].measure == 0, "a) correct measure");
t.eq(log[0]?log[0].measure:-1 , 10, "a) correct measure");
// b) move 10 pixels
trigger("mousemove", 0, 20);