diff -r 6093dda9fe38 -r a9d04f5f5650 bootstrap-source/bootstrap-3.0.3/js/tests/unit/dropdown.js
--- a/bootstrap-source/bootstrap-3.0.3/js/tests/unit/dropdown.js Sat Jan 18 12:34:36 2014 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,219 +0,0 @@
-$(function () {
-
- module("dropdowns")
-
- test("should provide no conflict", function () {
- var dropdown = $.fn.dropdown.noConflict()
- ok(!$.fn.dropdown, 'dropdown was set back to undefined (org value)')
- $.fn.dropdown = dropdown
- })
-
- test("should be defined on jquery object", function () {
- ok($(document.body).dropdown, 'dropdown method is defined')
- })
-
- test("should return element", function () {
- var el = $("
")
- ok(el.dropdown()[0] === el[0], 'same element returned')
- })
-
- test("should not open dropdown if target is disabled", function () {
- var dropdownHTML = '
'
- , dropdown = $(dropdownHTML).find('[data-toggle="dropdown"]').dropdown().click()
-
- ok(!dropdown.parent('.dropdown').hasClass('open'), 'open class added on click')
- })
-
- test("should not open dropdown if target is disabled", function () {
- var dropdownHTML = '
'
- , dropdown = $(dropdownHTML).find('[data-toggle="dropdown"]').dropdown().click()
-
- ok(!dropdown.parent('.dropdown').hasClass('open'), 'open class added on click')
- })
-
- test("should add class open to menu if clicked", function () {
- var dropdownHTML = '
'
- , dropdown = $(dropdownHTML).find('[data-toggle="dropdown"]').dropdown().click()
-
- ok(dropdown.parent('.dropdown').hasClass('open'), 'open class added on click')
- })
-
- test("should test if element has a # before assuming it's a selector", function () {
- var dropdownHTML = '
'
- , dropdown = $(dropdownHTML).find('[data-toggle="dropdown"]').dropdown().click()
-
- ok(dropdown.parent('.dropdown').hasClass('open'), 'open class added on click')
- })
-
-
- test("should remove open class if body clicked", function () {
- var dropdownHTML = '
'
- , dropdown = $(dropdownHTML)
- .appendTo('#qunit-fixture')
- .find('[data-toggle="dropdown"]')
- .dropdown()
- .click()
-
- ok(dropdown.parent('.dropdown').hasClass('open'), 'open class added on click')
- $('body').click()
- ok(!dropdown.parent('.dropdown').hasClass('open'), 'open class removed')
- dropdown.remove()
- })
-
- test("should remove open class if body clicked, with multiple drop downs", function () {
- var dropdownHTML =
- '