aboutsummaryrefslogtreecommitdiff
path: root/js/tests/unit/collapse.js
diff options
context:
space:
mode:
authorXhmikosR <[email protected]>2013-09-18 19:50:02 +0300
committerXhmikosR <[email protected]>2013-12-08 12:44:14 +0200
commiteca8ff380388c1187bc2c86e0ae7fa80aa33111e (patch)
tree1169002b77366007abd0be9efff9bf4b85a5b894 /js/tests/unit/collapse.js
parented63dfd8d301debf35bc93d155dff4527c94388d (diff)
downloadbootstrap-eca8ff380388c1187bc2c86e0ae7fa80aa33111e.tar.xz
bootstrap-eca8ff380388c1187bc2c86e0ae7fa80aa33111e.zip
Use single quotes consistently.
Diffstat (limited to 'js/tests/unit/collapse.js')
-rw-r--r--js/tests/unit/collapse.js24
1 files changed, 12 insertions, 12 deletions
diff --git a/js/tests/unit/collapse.js b/js/tests/unit/collapse.js
index 11b2cf838..10d5aeda6 100644
--- a/js/tests/unit/collapse.js
+++ b/js/tests/unit/collapse.js
@@ -1,34 +1,34 @@
$(function () {
- module("collapse")
+ module('collapse')
- test("should provide no conflict", function () {
+ test('should provide no conflict', function () {
var collapse = $.fn.collapse.noConflict()
ok(!$.fn.collapse, 'collapse was set back to undefined (org value)')
$.fn.collapse = collapse
})
- test("should be defined on jquery object", function () {
+ test('should be defined on jquery object', function () {
ok($(document.body).collapse, 'collapse method is defined')
})
- test("should return element", function () {
+ test('should return element', function () {
ok($(document.body).collapse()[0] == document.body, 'document.body returned')
})
- test("should show a collapsed element", function () {
+ test('should show a collapsed element', function () {
var el = $('<div class="collapse"></div>').collapse('show')
ok(el.hasClass('in'), 'has class in')
ok(/height/.test(el.attr('style')), 'has height set')
})
- test("should hide a collapsed element", function () {
+ test('should hide a collapsed element', function () {
var el = $('<div class="collapse"></div>').collapse('hide')
ok(!el.hasClass('in'), 'does not have class in')
ok(/height/.test(el.attr('style')), 'has height set')
})
- test("should not fire shown when show is prevented", function () {
+ test('should not fire shown when show is prevented', function () {
$.support.transition = false
stop()
$('<div class="collapse"/>')
@@ -43,7 +43,7 @@ $(function () {
.collapse('show')
})
- test("should reset style to auto after finishing opening collapse", function () {
+ test('should reset style to auto after finishing opening collapse', function () {
$.support.transition = false
stop()
$('<div class="collapse" style="height: 0px"/>')
@@ -57,7 +57,7 @@ $(function () {
.collapse('show')
})
- test("should add active class to target when collapse shown", function () {
+ test('should add active class to target when collapse shown', function () {
$.support.transition = false
stop()
@@ -74,7 +74,7 @@ $(function () {
target.click()
})
- test("should remove active class to target when collapse hidden", function () {
+ test('should remove active class to target when collapse hidden', function () {
$.support.transition = false
stop()
@@ -91,7 +91,7 @@ $(function () {
target.click()
})
- test("should remove active class from inactive accordion targets", function () {
+ test('should remove active class from inactive accordion targets', function () {
$.support.transition = false
stop()
@@ -126,7 +126,7 @@ $(function () {
target3.click()
})
- test("should allow dots in data-parent", function () {
+ test('should allow dots in data-parent', function () {
$.support.transition = false
stop()