From: Chris Rebert Date: Sun, 16 Nov 2014 06:22:15 +0000 (-0800) Subject: add unit tests for Carousel's 'wrap' option X-Git-Tag: v3.3.2~57^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8008fe707ec1259afcee1084bf4e79d29ed46ef4;p=thirdparty%2Fbootstrap.git add unit tests for Carousel's 'wrap' option --- 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 = '