aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
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 d6fece7c0..4dc6ab83b 100644
--- a/test/unit/event.js
+++ b/test/unit/event.js
@@ -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);