]> 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 15:02:17 +0000 (11:02 -0400)
Fixes #14741
Closes gh-1503
(cherry picked from commit 472f70a9df75c289393d6618c36257a04f9cb902)

test/unit/event.js

index d6fece7c0402d4d9430e91280c921e259846cacc..4dc6ab83bb8674bb2ac18da14ccc2b2e99bceab1 100644 (file)
@@ -857,6 +857,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);