aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-05-21 12:02:28 -0400
committerScott González <scott.gonzalez@gmail.com>2012-05-21 12:43:35 -0400
commit9ac52deaa271d3162e3d24724faf03f0b92ba3df (patch)
tree9a64fe2a4cc0e46c5857f5fcf4b89e75fcdc6b45 /tests/unit
parent1e586dcd486f24fda9ed277abc2d94fb8d29aee1 (diff)
downloadjquery-ui-9ac52deaa271d3162e3d24724faf03f0b92ba3df.tar.gz
jquery-ui-9ac52deaa271d3162e3d24724faf03f0b92ba3df.zip
Don't use :radio selector.
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/button/button_core.js6
-rw-r--r--tests/unit/button/button_tickets.js2
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/unit/button/button_core.js b/tests/unit/button/button_core.js
index 0d93ecedf..c274a8473 100644
--- a/tests/unit/button/button_core.js
+++ b/tests/unit/button/button_core.js
@@ -34,7 +34,7 @@ function assert(noForm, form1, form2) {
}
test("radio groups", function() {
- $(":radio").button();
+ $("input[type=radio]").button();
assert(":eq(0)", ":eq(1)", ":eq(2)");
// click outside of forms
@@ -61,7 +61,7 @@ test("buttonset", function() {
var set = $("#radio1").buttonset();
ok( set.is(".ui-buttonset") );
deepEqual( set.children(".ui-button").length, 3 );
- deepEqual( set.children("input:radio.ui-helper-hidden-accessible").length, 3 );
+ deepEqual( set.children("input[type=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)") );
@@ -76,7 +76,7 @@ test("buttonset (rtl)", function() {
set = $("#radio1").buttonset();
ok( set.is(".ui-buttonset") );
deepEqual( set.children(".ui-button").length, 3 );
- deepEqual( set.children("input:radio.ui-helper-hidden-accessible").length, 3 );
+ deepEqual( set.children("input[type=radio].ui-helper-hidden-accessible").length, 3 );
ok( set.children("label:eq(0)").is(".ui-button.ui-corner-right: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-left:not(.ui-corner-all)") );
diff --git a/tests/unit/button/button_tickets.js b/tests/unit/button/button_tickets.js
index 624d16716..43bfdb833 100644
--- a/tests/unit/button/button_tickets.js
+++ b/tests/unit/button/button_tickets.js
@@ -7,7 +7,7 @@ module( "button: tickets" );
test( "#5946 - buttonset should ignore buttons that are not :visible", function() {
$( "#radio01" ).next().andSelf().hide();
- var set = $( "#radio0" ).buttonset({ items: ":radio:visible" });
+ var set = $( "#radio0" ).buttonset({ items: "input[type=radio]:visible" });
ok( set.find( "label:eq(0)" ).is( ":not(.ui-button):not(.ui-corner-left)" ) );
ok( set.find( "label:eq(1)" ).is( ".ui-button.ui-corner-left" ) );
});