2 <html lang=
"en" id=
"html">
5 <title>jQuery Test Suite
</title>
6 <link rel=
"stylesheet" href=
"../external/qunit/qunit.css" />
7 <link rel=
"stylesheet" href=
"data/testsuite.css" />
10 We have to use previous jQuery as helper to ensure testability with
11 ajax-free builds (and non-interference when changing ajax internals)
13 <script src=
"data/jquery-1.9.1.js"></script>
15 <script src=
"../external/qunit/qunit.js"></script>
16 <script src=
"../external/sinon/sinon.js"></script>
17 <script src=
"../external/npo/npo.js"></script>
18 <script src=
"../external/requirejs/require.js"></script>
19 <!-- See testinit for the list of tests -->
20 <script src=
"data/testinit.js"></script>
22 <!-- A script that includes jQuery min, dev, ES modules or AMD modules -->
23 <!-- Adds "basic" URL option, even to iframes -->
24 <!-- iframes will not load AMD as loading needs to be synchronous for some tests -->
25 <!-- Also executes the function above to load tests -->
26 <script src=
"jquery.js"></script>
29 // Load tests if they have not been loaded
30 // This is in a different script tag to ensure that
31 // jQuery is on the page when the testrunner executes
32 // QUnit.config is populated from QUnit.urlParams but only at the beginning
33 // of the test run. We need to read both.
34 var esmodules
= QUnit
.config
.esmodules
|| QUnit
.urlParams
.esmodules
,
35 amd
= QUnit
.config
.amd
|| QUnit
.urlParams
.amd
;
37 // Workaround: Remove call to `window.__karma__.loaded()`
38 // in favor of calling `window.__karma__.start()` from `loadTests()`
39 // because tests such as unit/ready.js should run after document ready.
40 if ( !esmodules
&& !amd
) {
47 <div id=
"qunit"></div>
50 <!-- this iframe is outside the #qunit-fixture so it won't waste time by constantly reloading; the tests are "safe" and clean up after themselves -->
51 <iframe id=
"loadediframe" name=
"loadediframe" style=
"display:none;" src=
"data/iframe.html"></iframe>
52 <div id=
"qunit-fixture"></div>
53 <script src=
"data/qunit-fixture.js"></script>