mirror of
https://github.com/ExactTarget/fuelux.git
synced 2026-01-10 06:57:56 -05:00
update spinbox unit testing changed event for setValue to be async
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user