aboutsummaryrefslogtreecommitdiff
path: root/js/tests/unit/button.js
diff options
context:
space:
mode:
authorChris Rebert <[email protected]>2013-07-26 01:34:58 -0700
committerChris Rebert <[email protected]>2013-07-26 01:34:58 -0700
commit2910e3cb5a4fbefad4f16ecc5cf9a4385b9bd2cc (patch)
treeee297e3ab097bd2f78c0457a8c781a987cfee00e /js/tests/unit/button.js
parent2d585345196bb511ed2e6420610baa900ae48122 (diff)
parenta317f67c1cdc8e630fe18f5d48cfb582a0eda1de (diff)
downloadbootstrap-2910e3cb5a4fbefad4f16ecc5cf9a4385b9bd2cc.tar.xz
bootstrap-2910e3cb5a4fbefad4f16ecc5cf9a4385b9bd2cc.zip
Merge pull request #8614 from cvrebert/grunt
Switch from `make` to `grunt` Rebase of #7786 against soon-to-be 3.0.0-rc.1
Diffstat (limited to 'js/tests/unit/button.js')
-rw-r--r--js/tests/unit/button.js15
1 files changed, 8 insertions, 7 deletions
diff --git a/js/tests/unit/button.js b/js/tests/unit/button.js
index 0f8988a7d..41ddb5c2f 100644
--- a/js/tests/unit/button.js
+++ b/js/tests/unit/button.js
@@ -40,14 +40,15 @@ $(function () {
ok(btn.hasClass('disabled'), 'btn has disabled class')
start()
stop()
+ btn.button('reset')
+ equals(btn.html(), 'mdo', 'btn text equals mdo')
+ setTimeout(function () {
+ ok(!btn.attr('disabled'), 'btn is not disabled')
+ ok(!btn.hasClass('disabled'), 'btn does not have disabled class')
+ start()
+ }, 0)
}, 0)
- btn.button('reset')
- equals(btn.html(), 'mdo', 'btn text equals mdo')
- setTimeout(function () {
- ok(!btn.attr('disabled'), 'btn is not disabled')
- ok(!btn.hasClass('disabled'), 'btn does not have disabled class')
- start()
- }, 0)
+
})
test("should toggle active", function () {