From: Dave Methvin Date: Thu, 8 Sep 2011 01:30:35 +0000 (-0400) Subject: Split out mouse hover/enter/leave tests into a separate file and add several more... X-Git-Tag: 1.7b1~53 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8ba5010ac2cf7f78fd46aacffda2257ddbe953f1;p=jquery.git Split out mouse hover/enter/leave tests into a separate file and add several more scenarios. --- diff --git a/test/delegatetest.html b/test/delegatetest.html index 169e60f7a..2483063ae 100644 --- a/test/delegatetest.html +++ b/test/delegatetest.html @@ -183,16 +183,6 @@ DOCUMENT - -

Mouseleave Tests

- -
-

Count mouse leave event

-
-

mouse over here should not trigger the counter.

-
-

0

-
@@ -280,10 +270,6 @@ jQuery("#boundSubmit").blink(); }); - var n = 0; - $("div.out").live("mouseleave", function() { - $("p:last", this).text(++n); - }); diff --git a/test/hovertest.html b/test/hovertest.html new file mode 100644 index 000000000..2c7267408 --- /dev/null +++ b/test/hovertest.html @@ -0,0 +1,144 @@ + + +Hover tests + + + + +

Hover (mouse{over,out,enter,leave}) Tests

+

Be sure to try moving the mouse out of the browser via the left side on each test.

+
+ +
+
+ + .hover() in/out: 0 / 0 +
+
+ Mouse over here should NOT trigger the counter. +
+
+ +
+
+ + Live enter/leave: 0 / 0 +
+
+ Mouse over here should NOT trigger the counter. +
+
+ +
+
+ + Delegated enter/leave: 0 / 0 +
+
+ Mouse over here should NOT trigger the counter. +
+
+ +
+
+ + Bind over/out: 0 / 0 +
+
+ Mouse over here SHOULD trigger the counter. +
+
+
+
+ + Delegated over/out: 0 / 0 +
+
+ Mouse over here SHOULD trigger the counter. +
+
+ +
+ + + +