diff options
-rw-r--r-- | tests/unit/selectmenu/selectmenu_core.js | 4 | ||||
-rw-r--r-- | tests/unit/selectmenu/selectmenu_events.js | 12 |
2 files changed, 8 insertions, 8 deletions
diff --git a/tests/unit/selectmenu/selectmenu_core.js b/tests/unit/selectmenu/selectmenu_core.js index 85678e89f..53872a980 100644 --- a/tests/unit/selectmenu/selectmenu_core.js +++ b/tests/unit/selectmenu/selectmenu_core.js @@ -60,8 +60,8 @@ $.each([ equals( element.find("option:selected").val(), selected.next("option").val() , "after keydown original select state" ); equals( button.text(), selected.next("option").text(), "after keydown button text" ); - button.simulate( "click", { clientX: 1, clientY: 1 } ); - menu.find("a").last().simulate( "mouseover", { clientX: 1, clientY: 1 } ).trigger( "click" ); + button.simulate( "click" ); + menu.find("a").last().simulate( "mouseover" ).trigger( "click" ); equals( menu.attr("aria-activedescendant"), links.eq(element[0].selectedIndex).attr("id"), "after click menu aria-activedescendant" ); equals( links.eq(element[0].selectedIndex).attr("aria-selected"), "true", "after click selected menu link aria-selected" ); equals( element.find("option:selected").val(), element.find("option").last().val(), "after click original select state" ); diff --git a/tests/unit/selectmenu/selectmenu_events.js b/tests/unit/selectmenu/selectmenu_events.js index 805beaf93..9e8629f5b 100644 --- a/tests/unit/selectmenu/selectmenu_events.js +++ b/tests/unit/selectmenu/selectmenu_events.js @@ -23,8 +23,8 @@ test("change", function () { menu = this.element.selectmenu("menuWidget").parent(), value = this.element.find("option").first().text(); - button.find("a").simulate( "focus" ).simulate( "click", { clientX: 1, clientY: 1 } ); - menu.find("a").first().simulate( "mouseover", { clientX: 1, clientY: 1 } ).trigger( "click" ); + button.find("a").simulate( "focus" ).simulate( "click" ); + menu.find("a").first().simulate( "mouseover" ).trigger( "click" ); }); @@ -63,8 +63,8 @@ test("focus", function () { var button = this.element.selectmenu("widget").parent(), menu = this.element.selectmenu("menuWidget").parent(); - button.find("a").simulate( "focus" ).simulate( "click", { clientX: 1, clientY: 1 } ); - menu.find(".ui-menu-item").simulate("mouseover", { clientX: 1, clientY: 1 }); + button.find("a").simulate( "focus" ).simulate( "click" ); + menu.find(".ui-menu-item").simulate("mouseover"); }); @@ -98,8 +98,8 @@ test("select", function () { var button = this.element.selectmenu("widget").parent(), menu = this.element.selectmenu("menuWidget").parent(); - button.find("a").simulate( "focus" ).simulate( "click", { clientX: 1, clientY: 1 } ); - menu.find("a").first().simulate( "mouseover", { clientX: 1, clientY: 1 } ).trigger("click"); + button.find("a").simulate( "focus" ).simulate( "click" ); + menu.find("a").first().simulate( "mouseover" ).trigger("click"); }); })(jQuery); |