]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fix existing radio button unit test 16226/head
authorPatrick H. Lauke <redux@splintered.co.uk>
Sat, 11 Apr 2015 17:24:21 +0000 (19:24 +0200)
committerPatrick H. Lauke <redux@splintered.co.uk>
Sat, 11 Apr 2015 17:24:21 +0000 (19:24 +0200)
js/tests/unit/button.js

index 02312ebaf5f41bc1a7b0c73eb1eb46e35cd6231a..ed7b248d4aaa18a7944fe344b438cbde2e18153c 100644 (file)
@@ -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')
   })