diff options
Diffstat (limited to 'tests/unit/form-reset-mixin')
-rw-r--r-- | tests/unit/form-reset-mixin/core.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/unit/form-reset-mixin/core.js b/tests/unit/form-reset-mixin/core.js index 14e804643..4dbd7ac42 100644 --- a/tests/unit/form-reset-mixin/core.js +++ b/tests/unit/form-reset-mixin/core.js @@ -26,7 +26,7 @@ module( "widget factory", { delete $.ui.testWidget; delete $.fn.testWidget; } -}); +} ); common.testJshint( "form-reset-mixin" ); @@ -38,7 +38,7 @@ asyncTest( "form reset", function() { inputs.testWidget(); form.on( "reset", function() { - setTimeout(function() { + setTimeout( function() { deepEqual( $.ui.testWidget.refreshed, [ "input1", "input2", "input3", "input4" ], "All widgets are refreshed on form reset" ); equal( form.data( "ui-form-reset-instances" ).length, 4, @@ -61,7 +61,7 @@ asyncTest( "destroy", function() { .testWidget( "destroy" ); form.on( "reset", function() { - setTimeout(function() { + setTimeout( function() { deepEqual( $.ui.testWidget.refreshed, [ "input1", "input3", "input4" ], "All widgets are refreshed on form reset" ); deepEqual( form.data( "ui-form-reset-instances" ).length, 3, @@ -82,7 +82,7 @@ asyncTest( "destroy all", function() { .testWidget( "destroy" ); form.on( "reset", function() { - setTimeout(function() { + setTimeout( function() { deepEqual( $.ui.testWidget.refreshed, [], "No widgets are refreshed after destroy" ); strictEqual( form.data( "ui-form-reset-instances" ), undefined, "Form data is removed when the last widget instance is destroyed" ); |