diff options
Diffstat (limited to 'tests/unit/progressbar/progressbar_events.js')
-rw-r--r-- | tests/unit/progressbar/progressbar_events.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/unit/progressbar/progressbar_events.js b/tests/unit/progressbar/progressbar_events.js index 585c09091..8d7b8868d 100644 --- a/tests/unit/progressbar/progressbar_events.js +++ b/tests/unit/progressbar/progressbar_events.js @@ -10,7 +10,7 @@ test("create", function() { $("#progressbar").progressbar({ value: 5, create: function() { - same(5, $(this).progressbar("value") ); + deepEqual(5, $(this).progressbar("value") ); }, change: function() { ok(false, 'create() has triggered change()'); @@ -22,7 +22,7 @@ test("change", function() { expect(1); $("#progressbar").progressbar({ change: function() { - same( 5, $(this).progressbar("value") ); + deepEqual( 5, $(this).progressbar("value") ); } }).progressbar("value", 5); }); @@ -31,17 +31,17 @@ test( "complete", function() { expect( 3 ); var changes = 0, value; - + $( "#progressbar" ).progressbar({ change: function() { changes++; - same( $( this ).progressbar( "value" ), value, "change at " + value ); + deepEqual( $( this ).progressbar( "value" ), value, "change at " + value ); }, complete: function() { equal( changes, 2, "complete triggered after change" ); } }); - + value = 5; $( "#progressbar" ).progressbar( "value", value ); value = 100; |