diff options
Diffstat (limited to 'tests/unit/progressbar/progressbar_events.js')
-rw-r--r-- | tests/unit/progressbar/progressbar_events.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/unit/progressbar/progressbar_events.js b/tests/unit/progressbar/progressbar_events.js index 22b301abe..585c09091 100644 --- a/tests/unit/progressbar/progressbar_events.js +++ b/tests/unit/progressbar/progressbar_events.js @@ -5,6 +5,19 @@ module("progressbar: events"); +test("create", function() { + expect(1); + $("#progressbar").progressbar({ + value: 5, + create: function() { + same(5, $(this).progressbar("value") ); + }, + change: function() { + ok(false, 'create() has triggered change()'); + } + }) +}); + test("change", function() { expect(1); $("#progressbar").progressbar({ |