Skip to content
This repository has been archived by the owner on Feb 12, 2022. It is now read-only.

update spinbox unit testing changed event for setValue to be async #1966

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions test/spinbox-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
});
Expand All @@ -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);
Expand Down