$(function () { 'use strict'; module('carousel plugin') test('should be defined on jQuery object', function () { ok($(document.body).carousel, 'carousel method is defined') }) module('carousel', { setup: function () { // Run all tests in noConflict mode -- it's the only way to ensure that the plugin works in noConflict mode $.fn.bootstrapCarousel = $.fn.carousel.noConflict() }, teardown: function () { $.fn.carousel = $.fn.bootstrapCarousel delete $.fn.bootstrapCarousel } }) test('should provide no conflict', function () { ok(!$.fn.carousel, 'carousel was set back to undefined (orig value)') }) test('should return element', function () { ok($(document.body).bootstrapCarousel()[0] == document.body, 'document.body returned') }) test('should not fire slide when slide is prevented', function () { $.support.transition = false stop() $('