Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Revert "Selectmenu: added a temp fix for Safari to make unit test wor…

…k, see #492 (comment)"

This reverts commit 72c17f0.
  • Loading branch information...
commit 8c10c1e41b07ebadf8b3cf67fac88d27ee6c9fdb 1 parent 72c17f0
@scottgonzalez scottgonzalez authored
View
4 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" );
View
12 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);
Please sign in to comment.
Something went wrong with that request. Please try again.