mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
a684e6ba83
In gh-4466, we removed the `external` directory in favor of loading some files directly from `node_modules`. This works fine locally but when deploying code for tests, this makes it impossible to not deploy `node_modules` as well. To avoid the issue, this change restores usage of the `external` directory. One change is that we no longer commit this directory to the repository, its only purpose is to have clear isolation from `node_modules`. Ref gh-4466 Closess gh-4865
47 lines
1.5 KiB
HTML
47 lines
1.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en" id="html">
|
|
<head>
|
|
%X_UA_COMPATIBLE%
|
|
<title>DEBUG</title>
|
|
<meta charset="utf-8">
|
|
<!-- Karma serves this page from /context.html. Other files are served from /base -->
|
|
<link rel="stylesheet" href="/base/external/qunit/qunit/qunit.css" />
|
|
<link rel="stylesheet" href="/base/test/data/testsuite.css" />
|
|
</head>
|
|
<body id="body">
|
|
<div id="qunit"></div>
|
|
|
|
<!-- Start: jQuery Test HTML -->
|
|
<!-- 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 -->
|
|
<iframe id="loadediframe" name="loadediframe" style="display:none;" src="/base/test/data/iframe.html"></iframe>
|
|
<div id="qunit-fixture"></div>
|
|
<!-- End: jQuery Test HTML -->
|
|
|
|
<!-- Start: Karma boilerplate -->
|
|
<script src="/context.js"></script>
|
|
<script src="/debug.js"></script>
|
|
<script>
|
|
%CLIENT_CONFIG%
|
|
|
|
%MAPPINGS%
|
|
</script>
|
|
%SCRIPTS%
|
|
<!-- End: Karma boilerplate -->
|
|
|
|
<script src="/base/test/data/qunit-fixture.js"></script>
|
|
<script>
|
|
// 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,
|
|
amd = QUnit.config.amd || QUnit.urlParams.amd;
|
|
|
|
// 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 && !amd ) {
|
|
loadTests();
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|