Event: Unit test for #14741 fix

Fixes #14741
Closes gh-1503
This commit is contained in:
Dave Methvin 2014-03-16 10:46:57 -04:00
parent e06f428f6e
commit 472f70a9df

View File

@ -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);