diff options
author | Scott González <scott.gonzalez@gmail.com> | 2010-03-11 20:10:26 +0000 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2010-03-11 20:10:26 +0000 |
commit | d3cb190377782b5f952d5f213101a8399f5908ff (patch) | |
tree | ce3eb5b9bd696c58a3549de977278d68870d2cba /tests/unit/button/button_core.js | |
parent | e0faff7e11772a56c2037e4269834c65d4a5d305 (diff) | |
download | jquery-ui-d3cb190377782b5f952d5f213101a8399f5908ff.tar.gz jquery-ui-d3cb190377782b5f952d5f213101a8399f5908ff.zip |
Button: Fixed tests that check for hidden button elements.
Diffstat (limited to 'tests/unit/button/button_core.js')
-rw-r--r-- | tests/unit/button/button_core.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/unit/button/button_core.js b/tests/unit/button/button_core.js index 255abeaec..4569737a4 100644 --- a/tests/unit/button/button_core.js +++ b/tests/unit/button/button_core.js @@ -13,7 +13,7 @@ test("checkbox", function() { ok( input.is(":visible") ); ok( label.is(":not(.ui-button)") ); input.button(); - ok( input.is(":hidden") ); + ok( input.is(".ui-helper-hidden-accessible") ); ok( label.is(".ui-button") ); }); @@ -23,7 +23,7 @@ test("radios", function() { ok( inputs.is(":visible") ); ok( labels.is(":not(.ui-button)") ); inputs.button(); - ok( inputs.is(":hidden") ); + ok( inputs.is(".ui-helper-hidden-accessible") ); ok( labels.is(".ui-button") ); }); @@ -61,7 +61,7 @@ test("buttonset", function() { var set = $("#radio1").buttonset(); ok( set.is(".ui-button-set") ); same( set.children(".ui-button").length, 3 ); - same( set.children("input:radio:hidden").length, 3 ); + same( set.children("input:radio.ui-helper-hidden-accessible").length, 3 ); ok( set.children("label:eq(0)").is(".ui-button.ui-corner-left:not(.ui-corner-all)") ); ok( set.children("label:eq(1)").is(".ui-button:not(.ui-corner-all)") ); ok( set.children("label:eq(2)").is(".ui-button.ui-corner-right:not(.ui-corner-all)") ); |