mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-04-29 15:36:41 +00:00
Added Twitter Bootstrap source
We're going to build a custom version
This commit is contained in:
28
cssbuild/twitter-bootstrap/js/tests/unit/bootstrap-carousel.js
vendored
Executable file
28
cssbuild/twitter-bootstrap/js/tests/unit/bootstrap-carousel.js
vendored
Executable file
@@ -0,0 +1,28 @@
|
||||
$(function () {
|
||||
|
||||
module("bootstrap-carousel")
|
||||
|
||||
test("should be defined on jquery object", function () {
|
||||
ok($(document.body).carousel, 'carousel method is defined')
|
||||
})
|
||||
|
||||
test("should return element", function () {
|
||||
ok($(document.body).carousel()[0] == document.body, 'document.body returned')
|
||||
})
|
||||
|
||||
test("should not fire sliden when slide is prevented", function () {
|
||||
$.support.transition = false
|
||||
stop();
|
||||
$('<div class="carousel"/>')
|
||||
.bind('slide', function (e) {
|
||||
e.preventDefault();
|
||||
ok(true);
|
||||
start();
|
||||
})
|
||||
.bind('slid', function () {
|
||||
ok(false);
|
||||
})
|
||||
.carousel('next')
|
||||
})
|
||||
|
||||
})
|
||||
Reference in New Issue
Block a user