"ui/*.js",
"Gruntfile.js",
"build/**/*.js",
- "tests/unit/**/*.js"
+ "tests/unit/**/*.js",
+ "tests/lib/**/*.js"
]
},
csslint: {
"expr": true,
"immed": true,
"noarg": true,
- "onevar": true,
"quotmark": "double",
"smarttabs": true,
"trailing": true,
"notStrictEqual": false,
"ok": false,
"QUnit": true,
+ "require": true,
+ "requirejs": true,
"start": false,
"strictEqual": false,
"stop": false,
( function() {
-window.requirejs = {
+requirejs.config({
paths: {
"globalize": "../../../external/globalize/globalize",
"globalize/ja-JP": "../../../external/globalize/globalize.culture.ja-JP",
"qunit-assert-classes": [ "qunit" ],
"qunit-assert-close": [ "qunit" ]
}
-};
+});
+
+// Create a module that disables back compat for UI modules
+define( "jquery-no-back-compat", [ "jquery" ], function( $ ) {
+ $.uiBackCompat = false;
+
+ return $;
+} );
+
+// Create a dummy bridge if we're not actually testing in PhantomJS
+if ( !/PhantomJS/.test( navigator.userAgent ) ) {
+ define( "phantom-bridge", function() {} );
+}
// Load all modules in series
function requireModules( dependencies, callback, modules ) {
}
return url;
-};
+}
function swarmInject() {
var url = parseUrl().swarmURL;
}
}
- // Load requirejs, then load the tests
- script = document.createElement( "script" );
- script.src = "../../../external/requirejs/require.js";
- script.onload = function() {
-
- // Create a module that disables back compat for UI modules
- define( "jquery-no-back-compat", [ "jquery" ], function( $ ) {
- $.uiBackCompat = false;
-
- return $;
- } );
-
- // Create a dummy bridge if we're not actually testing in PhantomJS
- if ( !/PhantomJS/.test( navigator.userAgent ) ) {
- define( "phantom-bridge", function() {} );
- }
-
- requireTests( modules, noBackCompat );
- };
- document.documentElement.appendChild( script );
+ requireTests( modules, noBackCompat );
} )();
} )();
<meta charset="utf-8">
<title>jQuery UI Accordion Test Suite</title>
+ <script src="../../../external/requirejs/require.js"></script>
<script src="../../lib/css.js" data-modules="core accordion"></script>
<script src="../../lib/bootstrap.js" data-widget="accordion"></script>
<style>
<meta charset="utf-8">
<title>jQuery UI Autocomplete Test Suite</title>
+ <script src="../../../external/requirejs/require.js"></script>
<script src="../../lib/css.js" data-modules="core menu autocomplete"></script>
<script src="../../lib/bootstrap.js" data-widget="autocomplete"></script>
</head>
<meta charset="utf-8">
<title>jQuery UI Button Test Suite</title>
+ <script src="../../../external/requirejs/require.js"></script>
<script src="../../lib/css.js" data-modules="core button"></script>
<script src="../../lib/bootstrap.js" data-widget="button"></script>
</head>
<meta charset="utf-8">
<title>jQuery UI Core Test Suite</title>
+ <script src="../../../external/requirejs/require.js"></script>
<script src="../../lib/css.js"></script>
<script src="../../lib/bootstrap.js" data-modules="core selector"></script>
<style>
<meta charset="utf-8">
<title>jQuery UI Datepicker Test Suite</title>
+ <script src="../../../external/requirejs/require.js"></script>
<script src="../../lib/css.js" data-modules="core datepicker"></script>
<script src="../../lib/bootstrap.js" data-widget="datepicker"></script>
</head>
<meta charset="utf-8">
<title>jQuery UI Dialog Test Suite</title>
+ <script src="../../../external/requirejs/require.js"></script>
<script src="../../lib/css.js" data-modules="core button dialog"></script>
<script src="../../lib/bootstrap.js" data-widget="dialog" data-deprecated="true"></script>
</head>
<meta charset="utf-8">
<title>jQuery UI Dialog Test Suite</title>
+ <script src="../../../external/requirejs/require.js"></script>
<script src="../../lib/css.js" data-modules="core button dialog"></script>
<script src="../../lib/bootstrap.js" data-widget="dialog" data-no-back-compat="true"></script>
</head>
<meta charset="utf-8">
<title>jQuery UI Draggable Test Suite</title>
+ <script src="../../../external/requirejs/require.js"></script>
<script src="../../lib/css.js" data-modules="core"></script>
<script src="../../lib/bootstrap.js" data-widget="draggable"></script>
<style>
<meta charset="utf-8">
<title>jQuery UI Droppable Test Suite</title>
+ <script src="../../../external/requirejs/require.js"></script>
<script src="../../lib/css.js" data-modules="core"></script>
<script src="../../lib/bootstrap.js" data-widget="droppable" data-deprecated="true"></script>
</head>
<meta charset="utf-8">
<title>jQuery UI Droppable Test Suite</title>
+ <script src="../../../external/requirejs/require.js"></script>
<script src="../../lib/css.js" data-modules="core"></script>
<script src="../../lib/bootstrap.js" data-widget="droppable"
data-no-back-compat="true"></script>
<meta charset="utf-8">
<title>jQuery UI Effects Test Suite</title>
+ <script src="../../../external/requirejs/require.js"></script>
<script src="../../lib/css.js"></script>
<script src="../../lib/bootstrap.js" data-modules="core scale">
</script>
<meta charset="utf-8">
<title>jQuery UI Menu Test Suite</title>
+ <script src="../../../external/requirejs/require.js"></script>
<script src="../../lib/css.js" data-modules="core menu"></script>
<script src="../../lib/bootstrap.js" data-widget="menu"></script>
<style>
<meta charset="utf-8">
<title>jQuery UI Position Test Suite</title>
+ <script src="../../../external/requirejs/require.js"></script>
<script src="../../lib/css.js"></script>
<script src="../../lib/bootstrap.js" data-modules="core"></script>
</head>
<meta charset="utf-8">
<title>jQuery UI Progressbar Test Suite</title>
+ <script src="../../../external/requirejs/require.js"></script>
<script src="../../lib/css.js" data-modules="core progressbar"></script>
<script src="../../lib/bootstrap.js" data-widget="progressbar"></script>
</head>
<meta charset="utf-8">
<title>jQuery UI Resizable Test Suite</title>
+ <script src="../../../external/requirejs/require.js"></script>
<script src="../../lib/css.js" data-modules="core resizable"></script>
<script src="../../lib/bootstrap.js" data-widget="resizable"></script>
<style>
<meta charset="utf-8">
<title>jQuery UI Selectable Test Suite</title>
+ <script src="../../../external/requirejs/require.js"></script>
<script src="../../lib/css.js" data-modules="core selectable"></script>
<script src="../../lib/bootstrap.js" data-widget="selectable"></script>
</head>
<meta charset="utf-8">
<title>jQuery UI Selectmenu Test Suite</title>
+ <script src="../../../external/requirejs/require.js"></script>
<script src="../../lib/css.js" data-modules="core menu selectmenu"></script>
<script src="../../lib/bootstrap.js" data-widget="selectmenu"></script>
</head>
<meta charset="utf-8">
<title>jQuery UI Slider Test Suite</title>
+ <script src="../../../external/requirejs/require.js"></script>
<script src="../../lib/css.js" data-modules="core slider"></script>
<script src="../../lib/bootstrap.js" data-widget="slider"></script>
</head>
<meta charset="utf-8">
<title>jQuery UI Sortable Test Suite</title>
+ <script src="../../../external/requirejs/require.js"></script>
<script src="../../lib/css.js" data-modules="core"></script>
<script src="../../lib/bootstrap.js" data-widget="sortable"></script>
<style>
<meta charset="utf-8">
<title>jQuery UI Spinner Test Suite</title>
+ <script src="../../../external/requirejs/require.js"></script>
<script src="../../lib/css.js" data-modules="core button spinner"></script>
<script src="../../lib/bootstrap.js" data-widget="spinner"></script>
</head>
<meta charset="utf-8">
<title>jQuery UI Tabs Test Suite</title>
+ <script src="../../../external/requirejs/require.js"></script>
<script src="../../lib/css.js" data-modules="core tabs"></script>
<script src="../../lib/bootstrap.js" data-widget="tabs"></script>
<style>
<meta charset="utf-8">
<title>jQuery UI Tooltip Test Suite</title>
+ <script src="../../../external/requirejs/require.js"></script>
<script src="../../lib/css.js" data-modules="core tooltip"></script>
<script src="../../lib/bootstrap.js" data-widget="tooltip" data-deprecated="true"></script>
</head>
<meta charset="utf-8">
<title>jQuery UI Tooltip Test Suite</title>
+ <script src="../../../external/requirejs/require.js"></script>
<script src="../../lib/css.js" data-modules="core tooltip"></script>
<script src="../../lib/bootstrap.js" data-widget="tooltip" data-no-back-compat="true"></script>
</head>
<meta charset="utf-8">
<title>jQuery UI Widget Test Suite</title>
+ <script src="../../../external/requirejs/require.js"></script>
<script src="../../lib/css.js" data-modules="core"></script>
<script src="../../lib/bootstrap.js" data-modules="core extend animation classes">
</script>