Skip to content

Commit e35bdc1

Browse files
committed
Build: correct style tests files which could be automatically corrected
1 parent 99975c4 commit e35bdc1

File tree

4 files changed

+18
-16
lines changed

4 files changed

+18
-16
lines changed

test/data/support/csp.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
jQuery(function() {
1+
jQuery( function() {
22
parent.iframeCallback( getComputedSupport( jQuery.support ) );
3-
});
3+
} );

test/integration/data/gh-1764-fullscreen.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ function bootstrapFrom( mainSelector, mode ) {
1717
document.webkitExitFullscreen;
1818

1919
function isFullscreen() {
20-
return !!(document.fullscreenElement ||
20+
return !!( document.fullscreenElement ||
2121
document.mozFullScreenElement ||
2222
document.webkitFullscreenElement ||
23-
document.msFullscreenElement);
23+
document.msFullscreenElement );
2424
}
2525

2626
function requestFullscreen( element ) {
@@ -82,7 +82,7 @@ function bootstrapFrom( mainSelector, mode ) {
8282
if ( isFullscreen() ) {
8383
exitFullscreen();
8484
} else {
85-
requestFullscreen( jQuery( mainSelector + " .container" )[0] );
85+
requestFullscreen( jQuery( mainSelector + " .container" )[ 0 ] );
8686
}
8787
}
8888

test/jquery.js

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Use the right jQuery source on the test page (and iframes)
2-
(function() {
2+
( function() {
33
/* global loadTests: false */
44

55
var src,
@@ -8,21 +8,23 @@
88
require = window.require || parent.require;
99

1010
// iFrames won't load AMD (the iframe tests synchronously expect jQuery to be there)
11-
QUnit.config.urlConfig.push({
11+
QUnit.config.urlConfig.push( {
1212
id: "amd",
1313
label: "Load with AMD",
1414
tooltip: "Load the AMD jQuery file (and its dependencies)"
15-
});
15+
} );
16+
1617
// If QUnit is on window, this is the main window
1718
// This detection allows AMD tests to be run in an iframe
1819
if ( QUnit.urlParams.amd && window.QUnit ) {
19-
require.config({
20+
require.config( {
2021
baseUrl: path,
2122
paths: {
2223
sizzle: "external/sizzle/dist/sizzle"
2324
}
24-
});
25+
} );
2526
src = "src/jquery";
27+
2628
// Include tests if specified
2729
if ( typeof loadTests !== "undefined" ) {
2830
require( [ src ], loadTests );
@@ -33,11 +35,11 @@
3335
}
3436

3537
// Config parameter to use minified jQuery
36-
QUnit.config.urlConfig.push({
38+
QUnit.config.urlConfig.push( {
3739
id: "dev",
3840
label: "Load unminified",
3941
tooltip: "Load the development (unminified) jQuery file"
40-
});
42+
} );
4143
if ( QUnit.urlParams.dev ) {
4244
src = "dist/jquery.js";
4345
} else {
@@ -50,7 +52,7 @@
5052
// Synchronous-only tests
5153
// Other tests are loaded from the test page
5254
if ( typeof loadTests !== "undefined" ) {
53-
document.write( "<script src='" + path + "test/unit/ready.js'><\x2Fscript>");
55+
document.write( "<script src='" + path + "test/unit/ready.js'><\x2Fscript>" );
5456
}
5557

56-
})();
58+
} )();

test/promises_aplus_adapter.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
"use strict";
44

5-
require( "jsdom" ).env( "", function ( errors, window ) {
5+
require( "jsdom" ).env( "", function( errors, window ) {
66
if ( errors ) {
77
console.error( errors );
88
return;
99
}
1010

1111
var jQuery = require( ".." )( window );
1212

13-
exports.deferred = function () {
13+
exports.deferred = function() {
1414
var deferred = jQuery.Deferred();
1515

1616
return {

0 commit comments

Comments
 (0)