diff -r 3416f82943ea -r 0ded9d7748b7 bootstrap-source/bootstrap-3.0.3/js/tests/unit/carousel.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bootstrap-source/bootstrap-3.0.3/js/tests/unit/carousel.js Fri Dec 20 22:49:16 2013 +0100 @@ -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() + $('