aboutsummaryrefslogtreecommitdiff
path: root/js/tests
diff options
context:
space:
mode:
authorfat <[email protected]>2013-05-16 12:50:06 -0700
committerfat <[email protected]>2013-05-16 12:50:06 -0700
commit92245e8bc70f8d2e48036b7ba088551d07db29ca (patch)
tree4712d7114a60380513754f54931bd925d556545c /js/tests
parentbdbd268cb9cb64d0a8f6c77e56c139d18e21af5f (diff)
downloadbootstrap-92245e8bc70f8d2e48036b7ba088551d07db29ca.tar.xz
bootstrap-92245e8bc70f8d2e48036b7ba088551d07db29ca.zip
change dropdown strategy to use an overlay - fixes mobile click anywhere + allows for firefox middle click
Diffstat (limited to 'js/tests')
-rw-r--r--js/tests/unit/dropdown.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/tests/unit/dropdown.js b/js/tests/unit/dropdown.js
index db84a95a5..6b66c0974 100644
--- a/js/tests/unit/dropdown.js
+++ b/js/tests/unit/dropdown.js
@@ -104,7 +104,7 @@ $(function () {
.dropdown()
.click()
ok(dropdown.parent('.dropdown').hasClass('open'), 'open class added on click')
- $('body').click()
+ $('.dropdown-backdrop').click()
ok(!dropdown.parent('.dropdown').hasClass('open'), 'open class removed')
dropdown.remove()
})
@@ -136,13 +136,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')
- $('body').click()
+ $('.dropdown-backdrop').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')
- $('body').click()
+ $('.dropdown-backdrop').click()
ok($("#qunit-fixture .open").length === 0, 'open class removed')
$("#qunit-fixture").html("")