]> source.dussan.org Git - jquery.git/commitdiff
Event: Unit test for #14741 fix
authorDave Methvin <dave.methvin@gmail.com>
Sun, 16 Mar 2014 14:46:57 +0000 (10:46 -0400)
committerDave Methvin <dave.methvin@gmail.com>
Sun, 16 Mar 2014 14:54:12 +0000 (10:54 -0400)
Fixes #14741
Closes gh-1503

test/unit/event.js

index d93e8f778fb8339a062bf7e3cc19f70bd5a6238d..e8cfd715ccc5cc19a2554597535b3b7b1eae182d 100644 (file)
@@ -840,6 +840,20 @@ test("mouseover triggers mouseenter", function() {
        elem.remove();
 });
 
+test("pointerover triggers pointerenter", function() {
+       expect(1);
+
+       var count = 0,
+               elem = jQuery("<a />");
+       elem.on( "pointerenter", function () {
+               count++;
+       });
+       elem.trigger("pointerover");
+       equal(count, 1, "make sure pointerover triggers a pointerenter" );
+
+       elem.remove();
+});
+
 test("withinElement implemented with jQuery.contains()", function() {
 
        expect(1);