mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
Event: Unit test for #14741 fix
Fixes #14741
Closes gh-1503
(cherry picked from commit 472f70a9df
)
This commit is contained in:
parent
64d7c168c8
commit
3be4f13dc5
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user