From b56d97f21065037523ec17f45685916df8aca678 Mon Sep 17 00:00:00 2001 From: Chris Rebert Date: Tue, 20 Jan 2015 19:40:50 -0800 Subject: [PATCH] update JS unit tests to future-proof QUnit 1.16.0 API [skip validator] --- js/tests/unit/affix.js | 12 ++--- js/tests/unit/alert.js | 6 +-- js/tests/unit/button.js | 26 ++++----- js/tests/unit/carousel.js | 54 +++++++++---------- js/tests/unit/collapse.js | 84 ++++++++++++++--------------- js/tests/unit/dropdown.js | 18 +++---- js/tests/unit/modal.js | 84 ++++++++++++++--------------- js/tests/unit/popover.js | 6 +-- js/tests/unit/scrollspy.js | 24 ++++----- js/tests/unit/tab.js | 30 +++++------ js/tests/unit/tooltip.js | 108 ++++++++++++++++++------------------- 11 files changed, 226 insertions(+), 226 deletions(-) diff --git a/js/tests/unit/affix.js b/js/tests/unit/affix.js index 3152d8d2e4..040fe98030 100644 --- a/js/tests/unit/affix.js +++ b/js/tests/unit/affix.js @@ -35,8 +35,8 @@ $(function () { ok(!$affix.hasClass('affix'), 'affix class was not added') }) - test('should trigger affixed event after affix', function () { - stop() + test('should trigger affixed event after affix', function (assert) { + var done = assert.async() var templateHTML = '
' + '