From 472f70a9df75c289393d6618c36257a04f9cb902 Mon Sep 17 00:00:00 2001 From: Dave Methvin Date: Sun, 16 Mar 2014 10:46:57 -0400 Subject: [PATCH] Event: Unit test for #14741 fix Fixes #14741 Closes gh-1503 --- test/unit/event.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/test/unit/event.js b/test/unit/event.js index d93e8f778..e8cfd715c 100644 --- a/test/unit/event.js +++ b/test/unit/event.js @@ -840,6 +840,20 @@ test("mouseover triggers mouseenter", function() { elem.remove(); }); +test("pointerover triggers pointerenter", function() { + expect(1); + + var count = 0, + elem = jQuery(""); + 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); -- 2.39.5