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

Commit

Permalink
Merge pull request #1966 from swilliamset/update-spinbox-test-w-listn…
Browse files Browse the repository at this point in the history
…er-to-be-async

update spinbox unit testing changed event for setValue to be async
  • Loading branch information
swilliamset authored May 3, 2017
2 parents 66371da + 15c987f commit 94112d9
Showing 1 changed file with 2 additions and 0 deletions.
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

0 comments on commit 94112d9

Please sign in to comment.