|
15 | 15 | ok(!input.attr("checked"), "not checked before click"); |
16 | 16 | button.trigger("click"); |
17 | 17 | ok(input.attr("checked"), "checked after click"); |
18 | | - ok(button.hasClass("ui-btn-active"), "active styles after click"); |
| 18 | + ok(button.hasClass("ui-checkbox-on"), "active styles after click"); |
19 | 19 | button.trigger("click"); |
20 | 20 |
|
21 | 21 | input.checkboxradio("disable"); |
|
24 | 24 | ok(!input.attr("checked"), "not checked before click"); |
25 | 25 | button.trigger("click"); |
26 | 26 | ok(!input.attr("checked"), "not checked after click"); |
27 | | - ok(!button.hasClass("ui-btn-active"), "no active styles after click"); |
| 27 | + ok(!button.hasClass("ui-checkbox-on"), "no active styles after click"); |
28 | 28 | }); |
29 | 29 |
|
30 | 30 | asyncTest( "change events fired on checkbox for both check and uncheck", function(){ |
|
52 | 52 | asyncTest( "radio button labels should update the active button class to last clicked and clear checked", function(){ |
53 | 53 | var $radioBtns = $('#radio-active-btn-test input'), |
54 | 54 | singleActiveAndChecked = function(){ |
55 | | - same($("#radio-active-btn-test .ui-btn-active").length, 1, "there should be only one active button"); |
| 55 | + same($("#radio-active-btn-test .ui-radio-on").length, 1, "there should be only one active button"); |
56 | 56 | same($("#radio-active-btn-test :checked").length, 1, "there should be only one checked"); |
57 | 57 | }; |
58 | 58 |
|
|
63 | 63 |
|
64 | 64 | function(){ |
65 | 65 | ok($radioBtns.last().attr('checked')); |
66 | | - ok($radioBtns.last().siblings('label').hasClass('ui-btn-active'), |
| 66 | + ok($radioBtns.last().siblings('label').hasClass('ui-radio-on'), |
67 | 67 | "last input label is an active button"); |
68 | 68 |
|
69 | 69 | ok(!$radioBtns.first().attr('checked')); |
70 | | - ok(!$radioBtns.first().siblings('label').hasClass('ui-btn-active'), |
| 70 | + ok(!$radioBtns.first().siblings('label').hasClass('ui-radio-on'), |
71 | 71 | "first input label is not active"); |
72 | 72 |
|
73 | 73 | singleActiveAndChecked(); |
|
77 | 77 |
|
78 | 78 | function(){ |
79 | 79 | ok($radioBtns.first().attr('checked')); |
80 | | - ok($radioBtns.first().siblings('label').hasClass('ui-btn-active'), |
| 80 | + ok($radioBtns.first().siblings('label').hasClass('ui-radio-on'), |
81 | 81 | "first input label is an active button"); |
82 | 82 |
|
83 | 83 | ok(!$radioBtns.last().attr('checked')); |
84 | | - ok(!$radioBtns.last().siblings('label').hasClass('ui-btn-active'), |
| 84 | + ok(!$radioBtns.last().siblings('label').hasClass('ui-radio-on'), |
85 | 85 | "last input label is not active"); |
86 | 86 |
|
87 | 87 | singleActiveAndChecked(); |
|
0 commit comments