From cbba8e53df2cfea3273072d94408fd2981dce460 Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Mon, 7 Jul 2014 19:05:48 -0700 Subject: Fix #13818 by using more robust "find next carousel item" logic Also adds another test for #9461: carousel next/prev should ignore non-items --- js/tests/unit/carousel.js | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) (limited to 'js/tests/unit/carousel.js') diff --git a/js/tests/unit/carousel.js b/js/tests/unit/carousel.js index 51872c57b..3f9e61a34 100644 --- a/js/tests/unit/carousel.js +++ b/js/tests/unit/carousel.js @@ -349,7 +349,7 @@ $(function () { $carousel.remove() }) - test('should skip over non-items', function () { + test('should skip over non-items when using item indices', function () { var templateHTML = '