mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Button tests: simulated clicks aren't perfect in oldIE and Opera
This commit is contained in:
parent
dec844570f
commit
37ea734182
@ -88,7 +88,11 @@ test("buttonset (rtl)", function() {
|
||||
ok( set.children("label:eq(2)").is(".ui-button.ui-corner-left:not(.ui-corner-all)") );
|
||||
});
|
||||
|
||||
test( "ensure checked and aria after single click on checkbox label button, see #5518", function() {
|
||||
// TODO: simulated click events don't behave like real click events in IE
|
||||
// remove this when simulate properly simulates this
|
||||
// see http://yuilibrary.com/projects/yui2/ticket/2528826 fore more info
|
||||
if ( !$.ui.ie || ( document.documentMode && document.documentMode > 8 ) ) {
|
||||
test( "ensure checked and aria after single click on checkbox label button, see #5518", function() {
|
||||
expect( 3 );
|
||||
|
||||
$("#check2").button().change( function() {
|
||||
@ -96,7 +100,8 @@ test( "ensure checked and aria after single click on checkbox label button, see
|
||||
ok( this.checked, "checked ok" );
|
||||
ok( lbl.attr("aria-pressed") === "true", "aria ok" );
|
||||
ok( lbl.hasClass("ui-state-active"), "ui-state-active ok" );
|
||||
}).button("widget").simulate("click");
|
||||
});
|
||||
}).button("widget").simulate("mousedown").simulate("click").simulate("mouseup");
|
||||
});
|
||||
}
|
||||
|
||||
})(jQuery);
|
||||
|
Loading…
Reference in New Issue
Block a user