1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-10-07 03:10:45 +00:00
TiddlyWiki5/cssbuild/twitter-bootstrap/js/tests/unit/bootstrap-carousel.js
Jeremy Ruston f30a7cc61d Added Twitter Bootstrap source
We're going to build a custom version
2012-06-24 13:14:40 +01:00

28 lines
745 B
JavaScript
Executable File

$(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')
})
})