From d2bd8fb7a94906344d79669b74f3e432922d6b6f Mon Sep 17 00:00:00 2001 From: Johann-S Date: Thu, 17 Aug 2017 18:18:49 +0200 Subject: [PATCH] Unit test to check if our carousel do not cycle when we cannot see it --- js/tests/unit/carousel.js | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/js/tests/unit/carousel.js b/js/tests/unit/carousel.js index 894f78ab51..cef4615761 100644 --- a/js/tests/unit/carousel.js +++ b/js/tests/unit/carousel.js @@ -842,4 +842,41 @@ $(function () { }) $textArea.trigger(eventKeyDown) }) + + QUnit.test('Should not go to the next item when the carousel is not visible', function (assert) { + assert.expect(2) + var done = assert.async() + var html = '