From 92245e8bc70f8d2e48036b7ba088551d07db29ca Mon Sep 17 00:00:00 2001 From: fat Date: Thu, 16 May 2013 12:50:06 -0700 Subject: change dropdown strategy to use an overlay - fixes mobile click anywhere + allows for firefox middle click --- js/tests/unit/dropdown.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'js/tests') 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("") -- cgit v1.2.3