mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-04-29 06:26:44 +00:00
Updated to latest version of Bootstrap
This commit is contained in:
19
cssbuild/twitter-bootstrap/js/tests/unit/bootstrap-affix.js
vendored
Executable file
19
cssbuild/twitter-bootstrap/js/tests/unit/bootstrap-affix.js
vendored
Executable file
@@ -0,0 +1,19 @@
|
||||
$(function () {
|
||||
|
||||
module("bootstrap-affix")
|
||||
|
||||
test("should be defined on jquery object", function () {
|
||||
ok($(document.body).affix, 'affix method is defined')
|
||||
})
|
||||
|
||||
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 () {
|
||||
var $affix = $('<div style="display: none"></div>').affix()
|
||||
$affix.data('affix').checkPosition()
|
||||
ok(!$affix.hasClass('affix'), 'affix class was not added')
|
||||
})
|
||||
|
||||
})
|
||||
Reference in New Issue
Block a user