$(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 slide when slide is prevented', function () { $.support.transition = false stop() $('