diff options
author | Dave Methvin <dave.methvin@gmail.com> | 2014-03-16 10:46:57 -0400 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2014-03-16 11:02:17 -0400 |
commit | 3be4f13dc56d7b0cc316e7d8121c5293506dedb8 (patch) | |
tree | 01692d38089dc664ea72d33d64b8db15548d056c /test | |
parent | 64d7c168c8b331cd53a3f8712e09d8c75b0e0efe (diff) | |
download | jquery-3be4f13dc56d7b0cc316e7d8121c5293506dedb8.tar.gz jquery-3be4f13dc56d7b0cc316e7d8121c5293506dedb8.zip |
Event: Unit test for #14741 fix
Fixes #14741
Closes gh-1503
(cherry picked from commit 472f70a9df75c289393d6618c36257a04f9cb902)
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/event.js | 14 |
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); |