aboutsummaryrefslogtreecommitdiff
path: root/js/tests
diff options
context:
space:
mode:
authorPatrick H. Lauke <[email protected]>2015-04-17 18:19:11 +0200
committerPatrick H. Lauke <[email protected]>2015-04-17 18:19:11 +0200
commit8549722846038f2e6e9075bd41831fd0184706c4 (patch)
treea0e3b2769664c745891b45887e0dddf0810cc843 /js/tests
parent3a279860b018e8cfe1aa3f4e941c826dc05307c3 (diff)
parent66d71136e668cf7bc8a311299fad9b773b76285a (diff)
downloadbootstrap-8549722846038f2e6e9075bd41831fd0184706c4.tar.xz
bootstrap-8549722846038f2e6e9075bd41831fd0184706c4.zip
Merge pull request #16226 from patrickhlauke/radio-toggle-kbd-fix
Fix radio button toggle behavior for keyboard users
Diffstat (limited to 'js/tests')
-rw-r--r--js/tests/unit/button.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/tests/unit/button.js b/js/tests/unit/button.js
index 02312ebaf..ed7b248d4 100644
--- a/js/tests/unit/button.js
+++ b/js/tests/unit/button.js
@@ -167,13 +167,13 @@ $(function () {
assert.ok(!$btn2.find('input').prop('checked'), 'btn2 is not checked')
$btn2.find('input').trigger('click')
assert.ok(!$btn1.hasClass('active'), 'btn1 does not have active class')
- assert.ok(!$btn1.find('input').prop('checked'), 'btn1 is checked')
+ assert.ok(!$btn1.find('input').prop('checked'), 'btn1 is not checked')
assert.ok($btn2.hasClass('active'), 'btn2 has active class')
assert.ok($btn2.find('input').prop('checked'), 'btn2 is checked')
$btn2.find('input').trigger('click') // clicking an already checked radio should not un-check it
assert.ok(!$btn1.hasClass('active'), 'btn1 does not have active class')
- assert.ok(!$btn1.find('input').prop('checked'), 'btn1 is checked')
+ assert.ok(!$btn1.find('input').prop('checked'), 'btn1 is not checked')
assert.ok($btn2.hasClass('active'), 'btn2 has active class')
assert.ok($btn2.find('input').prop('checked'), 'btn2 is checked')
})