diff options
author | kborchers <kris.borchers@gmail.com> | 2012-03-26 21:51:16 -0500 |
---|---|---|
committer | Kris Borchers <kris.borchers@gmail.com> | 2012-11-21 21:48:17 -0600 |
commit | d3bc471688047d3c2dda3335dd642b724794070b (patch) | |
tree | d01bdb5123839618a79cefb670466886a869de24 /tests/unit | |
parent | 509259a66e28aad3f574fb77a06ceb201a271698 (diff) | |
download | jquery-ui-d3bc471688047d3c2dda3335dd642b724794070b.tar.gz jquery-ui-d3bc471688047d3c2dda3335dd642b724794070b.zip |
Progressbar: Add ability to set value: false for an indeterminate progressbar. Fixes #7624 - Progressbar: Support value: false for indeterminate progressbar
Diffstat (limited to 'tests/unit')
-rw-r--r-- | tests/unit/progressbar/progressbar_events.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/unit/progressbar/progressbar_events.js b/tests/unit/progressbar/progressbar_events.js index bb0d3ca5c..fe05182a1 100644 --- a/tests/unit/progressbar/progressbar_events.js +++ b/tests/unit/progressbar/progressbar_events.js @@ -23,7 +23,7 @@ test( "change", function() { }); test( "complete", function() { - expect( 3 ); + expect( 4 ); var value, changes = 0, element = $( "#progressbar" ).progressbar({ @@ -32,12 +32,14 @@ test( "complete", function() { deepEqual( element.progressbar( "value" ), value, "change at " + value ); }, complete: function() { - equal( changes, 2, "complete triggered after change" ); + equal( changes, 3, "complete triggered after change and not on indeterminate" ); } }); value = 5; element.progressbar( "value", value ); + value = false; + element.progressbar( "value", value ); value = 100; element.progressbar( "value", value ); }); |