Event: Unit test for #14741 fix

Fixes #14741
Closes gh-1503
(cherry picked from commit 472f70a9df)
This commit is contained in:
Dave Methvin 2014-03-16 10:46:57 -04:00
parent 64d7c168c8
commit 3be4f13dc5

View File

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