diff --git a/bootstrap-3.0.0/js/tests/unit/carousel.js b/bootstrap-3.0.0/js/tests/unit/carousel.js new file mode 100644 index 0000000000000000000000000000000000000000..badf0886d312305df38f0eced86cf95efff2e481 --- /dev/null +++ b/bootstrap-3.0.0/js/tests/unit/carousel.js @@ -0,0 +1,87 @@ +$(function () { + + module("carousel") + + test("should provide no conflict", function () { + var carousel = $.fn.carousel.noConflict() + ok(!$.fn.carousel, 'carousel was set back to undefined (org value)') + $.fn.carousel = 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() + $('