aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDave Methvin <dave.methvin@gmail.com>2014-03-16 10:46:57 -0400
committerDave Methvin <dave.methvin@gmail.com>2014-03-16 10:54:12 -0400
commit472f70a9df75c289393d6618c36257a04f9cb902 (patch)
treea223475166276b3239104b0b496f4e854c8b4c70 /test
parente06f428f6ed99e0fafb2e21c456eafc570e3e5ba (diff)
downloadjquery-472f70a9df75c289393d6618c36257a04f9cb902.tar.gz
jquery-472f70a9df75c289393d6618c36257a04f9cb902.zip
Event: Unit test for #14741 fix
Fixes #14741 Closes gh-1503
Diffstat (limited to 'test')
-rw-r--r--test/unit/event.js14
1 files changed, 14 insertions, 0 deletions
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("<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);