aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/common.js
diff options
context:
space:
mode:
authorAlexander Schmitz <arschmitz@gmail.com>2015-08-21 00:13:44 -0400
committerAlexander Schmitz <arschmitz@gmail.com>2015-08-21 08:06:24 -0400
commitc13ddf22ed33ea23e5410735c118550a673feb58 (patch)
treeb58b1c2010dce954ffac17f65ed259614ce00c5a /tests/lib/common.js
parent8e28f474e5088fc4502131d76aba7807930f15af (diff)
downloadjquery-ui-c13ddf22ed33ea23e5410735c118550a673feb58.tar.gz
jquery-ui-c13ddf22ed33ea23e5410735c118550a673feb58.zip
Tests: Style updates
Ref #14246 Ref gh-1588
Diffstat (limited to 'tests/lib/common.js')
-rw-r--r--tests/lib/common.js28
1 files changed, 14 insertions, 14 deletions
diff --git a/tests/lib/common.js b/tests/lib/common.js
index 8e4acbea8..c3e898535 100644
--- a/tests/lib/common.js
+++ b/tests/lib/common.js
@@ -1,4 +1,4 @@
-define([
+define( [
"jquery"
], function( $ ) {
@@ -17,8 +17,8 @@ function testWidgetDefaults( widget, defaults ) {
return;
}
deepEqual( pluginDefaults[ key ], val, key );
- });
- });
+ } );
+ } );
// Ensure that all defaults were tested
test( "tested defaults", function() {
@@ -26,15 +26,15 @@ function testWidgetDefaults( widget, defaults ) {
$.each( pluginDefaults, function( key ) {
expect( ++count );
ok( key in defaults, key );
- });
- });
+ } );
+ } );
}
function testWidgetOverrides( widget ) {
if ( $.uiBackCompat === false ) {
test( "$.widget overrides", function() {
expect( 4 );
- $.each([
+ $.each( [
"_createWidget",
"destroy",
"option",
@@ -42,8 +42,8 @@ function testWidgetOverrides( widget ) {
], function( i, method ) {
strictEqual( $.ui[ widget ].prototype[ method ],
$.Widget.prototype[ method ], "should not override " + method );
- });
- });
+ } );
+ } );
}
}
@@ -61,7 +61,7 @@ function testBasicUsage( widget ) {
// Ensure manipulating removed elements works (#3664)
$( defaultElement ).appendTo( "body" ).remove()[ widget ]().remove();
ok( true, "initialized on disconnected DOMElement - removed" );
- });
+ } );
}
exports.testWidget = function( widget, settings ) {
@@ -74,7 +74,7 @@ exports.testWidget = function( widget, settings ) {
test( "version", function() {
expect( 1 );
ok( "version" in $.ui[ widget ].prototype, "version property exists" );
- });
+ } );
};
exports.testJshint = function( module ) {
@@ -120,14 +120,14 @@ exports.testJshint = function( module ) {
ok( passed, errors );
start();
} )
- .fail(function( hintError, srcError ) {
+ .fail( function( hintError, srcError ) {
ok( false, "error loading source: " + ( hintError || srcError ).statusText );
start();
} );
- });
- });
+ } );
+ } );
};
return exports;
-});
+} );