Skip to content
Permalink
Browse files

Event: Unit test for #14741 fix

Fixes #14741
Closes gh-1503
  • Loading branch information
dmethvin committed Mar 16, 2014
1 parent e06f428 commit 472f70a9df75c289393d6618c36257a04f9cb902
Showing with 14 additions and 0 deletions.
  1. +14 −0 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);

0 comments on commit 472f70a

Please sign in to comment.
You can’t perform that action at this time.