diff options
author | Scott González <scott.gonzalez@gmail.com> | 2010-08-26 12:05:40 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2010-08-26 12:05:40 -0400 |
commit | dd035d1123a4a2fa5e791cb4428310274c98eb31 (patch) | |
tree | 135c6207df8dcd28af91aaec291631cb3567245e /tests | |
parent | 306764ca0f927476cdf99fa1bb77338bf341292f (diff) | |
download | jquery-ui-dd035d1123a4a2fa5e791cb4428310274c98eb31.tar.gz jquery-ui-dd035d1123a4a2fa5e791cb4428310274c98eb31.zip |
Widget tests: Coding standards.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit/widget/widget_tickets.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/unit/widget/widget_tickets.js b/tests/unit/widget/widget_tickets.js index 47303dc9c..21f44b54c 100644 --- a/tests/unit/widget/widget_tickets.js +++ b/tests/unit/widget/widget_tickets.js @@ -1,11 +1,11 @@ /* * widget unit tests */ -(function($) { +(function( $ ) { -module('widget: tickets'); +module( "widget: tickets" ); -test('#5830 - Widget: Using inheritance overwrites the base classes options', function() { +test( "#5830 - Widget: Using inheritance overwrites the base classes options", function() { $.widget( "ui.testWidgetBase", { options: { obj: { @@ -15,7 +15,7 @@ test('#5830 - Widget: Using inheritance overwrites the base classes options', fu arr: [ "testing" ] } }); - + $.widget( "ui.testWidgetExtension", $.ui.testWidgetBase, { options: { obj: { @@ -24,7 +24,7 @@ test('#5830 - Widget: Using inheritance overwrites the base classes options', fu arr: [ "alpha", "beta" ] } }); - + same( $.ui.testWidgetBase.prototype.options.obj, { key1: "foo", key2: "bar" @@ -38,9 +38,9 @@ test('#5830 - Widget: Using inheritance overwrites the base classes options', fu }, "extension class option object extends base"); same( $.ui.testWidgetExtension.prototype.options.arr, [ "alpha", "beta" ], "extension class option array overwrites base"); - + delete $.ui.testWidgetBase; delete $.ui.testWidgetExtension; }); -})(jQuery); +})( jQuery ); |