diff --git a/test/spinbox-test.js b/test/spinbox-test.js index bdf750669..de8537d15 100644 --- a/test/spinbox-test.js +++ b/test/spinbox-test.js @@ -286,6 +286,7 @@ define( function ( require ) { } ); QUnit.test('spinbox should trigger change after using setValue', function (assert) { + var ready = assert.async(); var $spinbox = $(html).find('#MySpinboxDecimal').spinbox({ value: '1' }); @@ -294,6 +295,7 @@ define( function ( require ) { $spinbox.on('changed.fu.spinbox', function () { assert.ok(true, 'spinbox triggers changed after input' ); + ready(); }); $spinbox.find('.spinbox-input').val(1);