aboutsummaryrefslogtreecommitdiff
path: root/js/tests/unit/dropdown.js
diff options
context:
space:
mode:
authorZlatan Vasović <[email protected]>2013-12-15 20:04:32 +0100
committerZlatan Vasović <[email protected]>2013-12-16 18:06:31 +0100
commitba3639b2025b8f0c510087ff8fe522c2bf0b06f1 (patch)
treea3e8d4d3f2a2c4d493e251345ad68d4f121821fc /js/tests/unit/dropdown.js
parent2ea370f93ba83aab5d071311758bc1e7bd822dc6 (diff)
downloadbootstrap-ba3639b2025b8f0c510087ff8fe522c2bf0b06f1.tar.xz
bootstrap-ba3639b2025b8f0c510087ff8fe522c2bf0b06f1.zip
Require comma on left side
Diffstat (limited to 'js/tests/unit/dropdown.js')
-rw-r--r--js/tests/unit/dropdown.js56
1 files changed, 28 insertions, 28 deletions
diff --git a/js/tests/unit/dropdown.js b/js/tests/unit/dropdown.js
index c94cf4fca..34e11de1c 100644
--- a/js/tests/unit/dropdown.js
+++ b/js/tests/unit/dropdown.js
@@ -28,8 +28,8 @@ $(function () {
+ '<li><a href="#">Another link</a></li>'
+ '</ul>'
+ '</li>'
- + '</ul>'
- , dropdown = $(dropdownHTML).find('[data-toggle="dropdown"]').dropdown().click()
+ + '</ul>',
+ dropdown = $(dropdownHTML).find('[data-toggle="dropdown"]').dropdown().click()
ok(!dropdown.parent('.dropdown').hasClass('open'), 'open class added on click')
})
@@ -45,8 +45,8 @@ $(function () {
+ '<li><a href="#">Another link</a></li>'
+ '</ul>'
+ '</li>'
- + '</ul>'
- , dropdown = $(dropdownHTML).find('[data-toggle="dropdown"]').dropdown().click()
+ + '</ul>',
+ dropdown = $(dropdownHTML).find('[data-toggle="dropdown"]').dropdown().click()
ok(!dropdown.parent('.dropdown').hasClass('open'), 'open class added on click')
})
@@ -62,8 +62,8 @@ $(function () {
+ '<li><a href="#">Another link</a></li>'
+ '</ul>'
+ '</li>'
- + '</ul>'
- , dropdown = $(dropdownHTML).find('[data-toggle="dropdown"]').dropdown().click()
+ + '</ul>',
+ dropdown = $(dropdownHTML).find('[data-toggle="dropdown"]').dropdown().click()
ok(dropdown.parent('.dropdown').hasClass('open'), 'open class added on click')
})
@@ -79,8 +79,8 @@ $(function () {
+ '<li><a href="#">Another link</a></li>'
+ '</ul>'
+ '</li>'
- + '</ul>'
- , dropdown = $(dropdownHTML).find('[data-toggle="dropdown"]').dropdown().click()
+ + '</ul>',
+ dropdown = $(dropdownHTML).find('[data-toggle="dropdown"]').dropdown().click()
ok(dropdown.parent('.dropdown').hasClass('open'), 'open class added on click')
})
@@ -97,12 +97,12 @@ $(function () {
+ '<li><a href="#">Another link</a></li>'
+ '</ul>'
+ '</li>'
- + '</ul>'
- , dropdown = $(dropdownHTML)
- .appendTo('#qunit-fixture')
- .find('[data-toggle="dropdown"]')
- .dropdown()
- .click()
+ + '</ul>',
+ dropdown = $(dropdownHTML)
+ .appendTo('#qunit-fixture')
+ .find('[data-toggle="dropdown"]')
+ .dropdown()
+ .click()
ok(dropdown.parent('.dropdown').hasClass('open'), 'open class added on click')
$('body').click()
@@ -127,10 +127,10 @@ $(function () {
+ ' <ul class="dropdown-menu">'
+ ' <li><a href="#">Action 1</a></li>'
+ ' </ul>'
- + '</div>'
- , dropdowns = $(dropdownHTML).appendTo('#qunit-fixture').find('[data-toggle="dropdown"]')
- , first = dropdowns.first()
- , last = dropdowns.last()
+ + '</div>',
+ dropdowns = $(dropdownHTML).appendTo('#qunit-fixture').find('[data-toggle="dropdown"]'),
+ first = dropdowns.first(),
+ last = dropdowns.last()
ok(dropdowns.length == 2, 'Should be two dropdowns')
@@ -160,11 +160,11 @@ $(function () {
+ '<li><a href="#">Another link</a></li>'
+ '</ul>'
+ '</li>'
- + '</ul>'
- , dropdown = $(dropdownHTML)
- .appendTo('#qunit-fixture')
- .find('[data-toggle="dropdown"]')
- .dropdown()
+ + '</ul>',
+ dropdown = $(dropdownHTML)
+ .appendTo('#qunit-fixture')
+ .find('[data-toggle="dropdown"]')
+ .dropdown()
stop()
@@ -194,11 +194,11 @@ $(function () {
+ '<li><a href="#">Another link</a></li>'
+ '</ul>'
+ '</li>'
- + '</ul>'
- , dropdown = $(dropdownHTML)
- .appendTo('#qunit-fixture')
- .find('[data-toggle="dropdown"]')
- .dropdown()
+ + '</ul>',
+ dropdown = $(dropdownHTML)
+ .appendTo('#qunit-fixture')
+ .find('[data-toggle="dropdown"]')
+ .dropdown()
stop()