aboutsummaryrefslogtreecommitdiffstats
path: root/test/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'test/index.html')
-rw-r--r--test/index.html28
1 files changed, 15 insertions, 13 deletions
diff --git a/test/index.html b/test/index.html
index f2c468a07..523cc1eb2 100644
--- a/test/index.html
+++ b/test/index.html
@@ -10,7 +10,7 @@
We have to use previous jQuery as helper to ensure testability with
ajax-free builds (and non-interference when changing ajax internals)
-->
- <script src="data/jquery-1.9.1.js"></script>
+ <script src="data/jquery-3.7.1.js"></script>
<script src="../external/qunit/qunit.js"></script>
<script src="../external/sinon/sinon.js"></script>
@@ -26,19 +26,21 @@
<script src="jquery.js"></script>
<script>
- // Load tests if they have not been loaded
- // This is in a different script tag to ensure that
- // jQuery is on the page when the testrunner executes
- // QUnit.config is populated from QUnit.urlParams but only at the beginning
- // of the test run. We need to read both.
- var esmodules = QUnit.config.esmodules || QUnit.urlParams.esmodules;
+ ( function () {
+ // Load tests if they have not been loaded
+ // This is in a different script tag to ensure that
+ // jQuery is on the page when the testrunner executes
+ // QUnit.config is populated from QUnit.urlParams,
+ // but only at the beginning of the test run.
+ // We need to read both.
+ var esmodules = QUnit.config.esmodules || QUnit.urlParams.esmodules;
- // Workaround: Remove call to `window.__karma__.loaded()`
- // in favor of calling `window.__karma__.start()` from `loadTests()`
- // because tests such as unit/ready.js should run after document ready.
- if ( !esmodules ) {
- loadTests();
- }
+ // `loadTests()` will call `QUnit.load()` because tests
+ // such as unit/ready.js should run after document ready.
+ if ( !esmodules ) {
+ loadTests();
+ }
+ } )();
</script>
</head>