From 58994a16c589caef633682bc5e7a44d8793245df Mon Sep 17 00:00:00 2001 From: Johann-S Date: Thu, 17 Aug 2017 18:29:15 +0200 Subject: [PATCH] Add a unit test to check if the carousel do not cycle when its parent isn't visible --- js/tests/unit/carousel.js | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/js/tests/unit/carousel.js b/js/tests/unit/carousel.js index cef4615761fc..b110fbd65d1c 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 = '