aboutsummaryrefslogtreecommitdiff
path: root/js/tests
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-11-28 15:55:17 -0800
committerMark Otto <[email protected]>2013-11-28 15:55:17 -0800
commitb5f9cc20578fb57b2b69e10cf32bba55f9c940e4 (patch)
tree72b6c245b35c2c6783bc43d4add6ce0e1e65b801 /js/tests
parent0da3901ed5a6d498af8b7c76b61d004a003f716b (diff)
parent0be94180b99cec9be239124c666721e40fbfbc97 (diff)
downloadbootstrap-b5f9cc20578fb57b2b69e10cf32bba55f9c940e4.tar.xz
bootstrap-b5f9cc20578fb57b2b69e10cf32bba55f9c940e4.zip
Merge branch 'master' into pr/11414
Conflicts: dist/css/bootstrap.min.css
Diffstat (limited to 'js/tests')
-rw-r--r--js/tests/unit/button.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/js/tests/unit/button.js b/js/tests/unit/button.js
index 16284e0ce..115edefaf 100644
--- a/js/tests/unit/button.js
+++ b/js/tests/unit/button.js
@@ -111,6 +111,12 @@ $(function () {
ok(!btn1.find('input').prop('checked'), 'btn1 is checked')
ok(btn2.hasClass('active'), 'btn2 has active class')
ok(btn2.find('input').prop('checked'), 'btn2 is checked')
+
+ btn2.find('input').click() /* clicking an already checked radio should not un-check it */
+ ok(!btn1.hasClass('active'), 'btn1 does not have active class')
+ ok(!btn1.find('input').prop('checked'), 'btn1 is checked')
+ ok(btn2.hasClass('active'), 'btn2 has active class')
+ ok(btn2.find('input').prop('checked'), 'btn2 is checked')
})
})