]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Dropdown unit tests: Tiny style changes
authorHeinrich Fenkart <hnrch02@gmail.com>
Wed, 25 Feb 2015 01:53:39 +0000 (02:53 +0100)
committerHeinrich Fenkart <hnrch02@gmail.com>
Wed, 25 Feb 2015 01:53:39 +0000 (02:53 +0100)
js/tests/unit/dropdown.js

index 051ca4be934e4080c00ca757c5fdf806f9d58aee..ec718b9e01cbd6a5366b7e79cdc6c4eb5d5ac658 100644 (file)
@@ -58,12 +58,16 @@ $(function () {
         + '</ul>'
         + '</li>'
         + '</ul>'
-    var $dropdown = $(dropdownHTML).find('[data-toggle="dropdown"]').bootstrapDropdown().click()
+    var $dropdown = $(dropdownHTML)
+      .find('[data-toggle="dropdown"]')
+      .bootstrapDropdown()
+      .click()
 
     assert.strictEqual($dropdown.attr('aria-expanded'), 'true', 'aria-expanded is set to string "true" on click')
   })
 
   QUnit.test('should set aria-expanded="false" on target when dropdown menu is hidden', function (assert) {
+    var done = assert.async()
     var dropdownHTML = '<ul class="tabs">'
         + '<li class="dropdown">'
         + '<a href="#" class="dropdown-toggle" aria-expanded="false" data-toggle="dropdown">Dropdown</a>'
@@ -80,8 +84,6 @@ $(function () {
       .find('[data-toggle="dropdown"]')
       .bootstrapDropdown()
 
-    var done = assert.async()
-
     $dropdown
       .parent('.dropdown')
       .on('hidden.bs.dropdown', function () {