aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/selectmenu/events.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2017-04-18 16:51:23 -0400
committerScott González <scott.gonzalez@gmail.com>2017-05-02 15:16:17 -0400
commit50efd6e1b063822c4a0ecb38f324ed3354f387c4 (patch)
treec7d0a0809f5a8dfa8ab744e58556f27e756d6fe5 /tests/unit/selectmenu/events.js
parent7d992ae29d27cdab8787691a14e689e60c74c05c (diff)
downloadjquery-ui-50efd6e1b063822c4a0ecb38f324ed3354f387c4.tar.gz
jquery-ui-50efd6e1b063822c4a0ecb38f324ed3354f387c4.zip
Menu: Ignore mouse events triggered due to page scrolling
Fixes #9356 Closes gh-1806
Diffstat (limited to 'tests/unit/selectmenu/events.js')
-rw-r--r--tests/unit/selectmenu/events.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/unit/selectmenu/events.js b/tests/unit/selectmenu/events.js
index 4aed70ac8..ffc0429ee 100644
--- a/tests/unit/selectmenu/events.js
+++ b/tests/unit/selectmenu/events.js
@@ -89,9 +89,9 @@ QUnit.test( "focus", function( assert ) {
button.trigger( "click" );
links = menu.find( "li.ui-menu-item" );
optionIndex = 0;
- links.eq( optionIndex ).simulate( "mouseover" );
+ links.eq( optionIndex ).simulate( "mouseover", { clientX: 2, clientY: 2 } );
optionIndex += 1;
- links.eq( optionIndex ).simulate( "mouseover" );
+ links.eq( optionIndex ).simulate( "mouseover", { clientX: 3, clientY: 3 } );
// This tests for unwanted, additional focus event on close
that.element.selectmenu( "close" );