diff options
| author | Mark Otto <[email protected]> | 2013-11-16 22:02:59 -0800 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2013-11-16 22:02:59 -0800 |
| commit | 03501f9c4afc3a74bba958c388b32e5ac065e997 (patch) | |
| tree | 2590291a248334d167245b6c95b36ea7a7b9ae64 /js/tests | |
| parent | 86678e66021657cf7d59a96b9cf0fe0cb42ee968 (diff) | |
| parent | ae4d5f21a96fab3691ca33e9e3747a01c467e10e (diff) | |
| download | bootstrap-03501f9c4afc3a74bba958c388b32e5ac065e997.tar.xz bootstrap-03501f9c4afc3a74bba958c388b32e5ac065e997.zip | |
Merge branch 'master' into docs_derp
Diffstat (limited to 'js/tests')
| -rw-r--r-- | js/tests/unit/button.js | 6 |
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') }) }) |
