Build: Bump the github-actions group with 2 updates
[jquery.git] / test / index.html
blob87fe941642d61e182bf379807cc9a14e3038aa1c
1 <!doctype html>
2 <html lang="en" id="html">
3 <head>
4 <meta charset="utf-8">
5 <title>jQuery Test Suite</title>
6 <link rel="stylesheet" href="../external/qunit/qunit.css" />
7 <link rel="stylesheet" href="data/testsuite.css" />
9 <!--
10 We have to use previous jQuery as helper to ensure testability with
11 ajax-free builds (and non-interference when changing ajax internals)
12 -->
13 <script src="data/jquery-3.7.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 or ES modules -->
23 <!-- Adds "basic" URL option, even to iframes -->
24 <!-- iframes will not load ESM as loading needs to be synchronous for some tests -->
25 <!-- Also executes the function above to load tests -->
26 <script src="jquery.js"></script>
28 <script>
29 ( function () {
30 // Load tests if they have not been loaded
31 // This is in a different script tag to ensure that
32 // jQuery is on the page when the testrunner executes
33 // QUnit.config is populated from QUnit.urlParams,
34 // but only at the beginning of the test run.
35 // We need to read both.
36 var esmodules = QUnit.config.esmodules || QUnit.urlParams.esmodules;
38 // `loadTests()` will call `QUnit.start()` because tests
39 // such as unit/ready.js should run after document ready.
40 if ( !esmodules ) {
41 loadTests();
43 } )();
44 </script>
45 </head>
47 <body id="body">
48 <div id="qunit"></div>
50 <!-- Test HTML -->
51 <!-- 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 -->
52 <iframe id="loadediframe" name="loadediframe" style="display:none;" src="data/iframe.html"></iframe>
53 <div id="qunit-fixture"></div>
54 <script src="data/qunit-fixture.js"></script>
55 </body>
56 </html>