From 8008fe707ec1259afcee1084bf4e79d29ed46ef4 Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Sat, 15 Nov 2014 22:22:15 -0800 Subject: [PATCH] add unit tests for Carousel's 'wrap' option --- js/tests/unit/carousel.js | 153 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 153 insertions(+) diff --git a/js/tests/unit/carousel.js b/js/tests/unit/carousel.js index 5998abe6af..008b720825 100644 --- a/js/tests/unit/carousel.js +++ b/js/tests/unit/carousel.js @@ -541,4 +541,157 @@ $(function () { strictEqual(type in $._data($template[0], 'events'), !isMobile, 'does' + (isMobile ? ' not' : '') + ' listen for ' + type + ' events') }) }) + + test('should wrap around from end to start when wrap option is true', function () { + var carouselHTML = '