From: Johann-S Date: Thu, 17 Aug 2017 16:29:15 +0000 (+0200) Subject: Add a unit test to check if the carousel do not cycle when its parent isn't visible X-Git-Tag: v4.0.0-beta.2~357 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58994a16c589caef633682bc5e7a44d8793245df;p=thirdparty%2Fbootstrap.git Add a unit test to check if the carousel do not cycle when its parent isn't visible --- diff --git a/js/tests/unit/carousel.js b/js/tests/unit/carousel.js index cef4615761..b110fbd65d 100644 --- a/js/tests/unit/carousel.js +++ b/js/tests/unit/carousel.js @@ -879,4 +879,43 @@ $(function () { }, 80) }, 80) }) + + QUnit.test('Should not go to the next item when the parent of the carousel is not visible', function (assert) { + assert.expect(2) + var done = assert.async() + var html = '