From: Johann-S Date: Thu, 17 Aug 2017 16:18:49 +0000 (+0200) Subject: Unit test to check if our carousel do not cycle when we cannot see it X-Git-Tag: v4.0.0-beta.2~358 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d2bd8fb7a94906344d79669b74f3e432922d6b6f;p=thirdparty%2Fbootstrap.git Unit test to check if our carousel do not cycle when we cannot see it --- 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 = '