]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
make new Carousel tests compatible with noConflict mode
authorChris Rebert <code@rebertia.com>
Thu, 1 May 2014 20:37:44 +0000 (13:37 -0700)
committerChris Rebert <code@rebertia.com>
Thu, 1 May 2014 20:37:44 +0000 (13:37 -0700)
js/tests/unit/carousel.js

index 8657ee00a8322dbc67395afb2681095b3cf6073b..5fd875c8cb9fd8f5bfaa69937c8577b61fb30b9c 100644 (file)
@@ -84,7 +84,7 @@ $(function () {
       ok(e.direction)
       ok(e.direction === 'right' || e.direction === 'left')
       start()
-    }).carousel('next')
+    }).bootstrapCarousel('next')
   })
 
   test('should fire slide event with relatedTarget', function () {
@@ -112,7 +112,7 @@ $(function () {
         ok($(e.relatedTarget).hasClass('item'))
         start()
       })
-      .carousel('next')
+      .bootstrapCarousel('next')
   })
 
   test('should set interval from data attribute', 4, function () {