aboutsummaryrefslogtreecommitdiff
path: root/js/tests/unit/affix.js
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-12-14 15:38:21 -0800
committerMark Otto <[email protected]>2013-12-14 15:38:21 -0800
commita54dbfdf2a08ff04fc65f8e4f77ee5dc76bf4ef3 (patch)
tree9b1c5697a731543a86711b016e1986ec1e81dad4 /js/tests/unit/affix.js
parent80e86442308b2cc86ba948de87e854057933e3ab (diff)
parentf1869771bc8b8e8a6c7a98385ec58e0bf0d2d98e (diff)
downloadbootstrap-a54dbfdf2a08ff04fc65f8e4f77ee5dc76bf4ef3.tar.xz
bootstrap-a54dbfdf2a08ff04fc65f8e4f77ee5dc76bf4ef3.zip
Merge branch 'master' into pr/10951
Conflicts: dist/css/bootstrap.min.css less/modals.less
Diffstat (limited to 'js/tests/unit/affix.js')
-rw-r--r--js/tests/unit/affix.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/js/tests/unit/affix.js b/js/tests/unit/affix.js
index b74bc51e4..6085a141e 100644
--- a/js/tests/unit/affix.js
+++ b/js/tests/unit/affix.js
@@ -1,22 +1,22 @@
$(function () {
- module("affix")
+ module('affix')
- test("should provide no conflict", function () {
+ test('should provide no conflict', function () {
var affix = $.fn.affix.noConflict()
ok(!$.fn.affix, 'affix was set back to undefined (org value)')
$.fn.affix = affix
})
- test("should be defined on jquery object", function () {
+ test('should be defined on jquery object', function () {
ok($(document.body).affix, 'affix method is defined')
})
- test("should return element", function () {
+ test('should return element', function () {
ok($(document.body).affix()[0] == document.body, 'document.body returned')
})
- test("should exit early if element is not visible", function () {
+ test('should exit early if element is not visible', function () {
var $affix = $('<div style="display: none"></div>').affix()
$affix.data('bs.affix').checkPosition()
ok(!$affix.hasClass('affix'), 'affix class was not added')