aboutsummaryrefslogtreecommitdiff
path: root/js/tests/unit/dropdown.js
diff options
context:
space:
mode:
authorfat <[email protected]>2013-05-16 20:19:51 -0700
committerfat <[email protected]>2013-05-16 20:19:51 -0700
commit140ef2320bbb96ad90b73a884d83198706affaf9 (patch)
tree4de562f3c4fa8d989de16ebe61fd07732109a9e5 /js/tests/unit/dropdown.js
parent5ab72f76878a85f105702a24096268fea73fba2d (diff)
downloadbootstrap-140ef2320bbb96ad90b73a884d83198706affaf9.tar.xz
bootstrap-140ef2320bbb96ad90b73a884d83198706affaf9.zip
change namespace back to dot notation and someother js shizzle
Diffstat (limited to 'js/tests/unit/dropdown.js')
-rw-r--r--js/tests/unit/dropdown.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/js/tests/unit/dropdown.js b/js/tests/unit/dropdown.js
index 6b66c0974..09b5673a4 100644
--- a/js/tests/unit/dropdown.js
+++ b/js/tests/unit/dropdown.js
@@ -103,8 +103,9 @@ $(function () {
.find('[data-toggle="dropdown"]')
.dropdown()
.click()
+
ok(dropdown.parent('.dropdown').hasClass('open'), 'open class added on click')
- $('.dropdown-backdrop').click()
+ $('body').click()
ok(!dropdown.parent('.dropdown').hasClass('open'), 'open class removed')
dropdown.remove()
})
@@ -136,13 +137,13 @@ $(function () {
first.click()
ok(first.parents('.open').length == 1, 'open class added on click')
ok($('#qunit-fixture .open').length == 1, 'only one object is open')
- $('.dropdown-backdrop').click()
+ $('body').click()
ok($("#qunit-fixture .open").length === 0, 'open class removed')
last.click()
ok(last.parent('.open').length == 1, 'open class added on click')
ok($('#qunit-fixture .open').length == 1, 'only one object is open')
- $('.dropdown-backdrop').click()
+ $('body').click()
ok($("#qunit-fixture .open").length === 0, 'open class removed')
$("#qunit-fixture").html("")