update spinbox unit testing changed event for setValue to be async

This commit is contained in:
Stephen Williams
2017-05-03 10:28:40 -04:00
parent 66371da15a
commit 15c987fdb1

View File

@@ -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);