forked from emberjs/ember.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
76 lines (63 loc) · 2.3 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Ember.js</title>
</head>
<body>
<script type="module">
import 'qunit/qunit/qunit.js';
import 'qunit/qunit/qunit.css';
window.EmberENV = {};
// Test under octane defaults
EmberENV._DEFAULT_ASYNC_OBSERVERS = true;
// Test for "hooks in EmberENV.EMBER_LOAD_HOOKS['hookName'] get executed"
EmberENV.EMBER_LOAD_HOOKS = EmberENV.EMBER_LOAD_HOOKS || {};
EmberENV.EMBER_LOAD_HOOKS.__before_ember_test_hook__ =
EmberENV.EMBER_LOAD_HOOKS.__before_ember_test_hook__ || [];
EmberENV.__test_hook_count__ = 0;
EmberENV.EMBER_LOAD_HOOKS.__before_ember_test_hook__.push(function (object) {
EmberENV.__test_hook_count__ += object;
});
// Handle testing feature flags
if (QUnit.urlParams.ENABLE_OPTIONAL_FEATURES) {
EmberENV.ENABLE_OPTIONAL_FEATURES = true;
}
EmberENV['RAISE_ON_DEPRECATION'] = QUnit.urlParams.RAISE_ON_DEPRECATION
? QUnit.urlParams.RAISE_ON_DEPRECATION === 'true'
: true;
if (QUnit.urlParams.ALL_DEPRECATIONS_ENABLED) {
EmberENV['_ALL_DEPRECATIONS_ENABLED'] = true;
}
if (QUnit.urlParams.OVERRIDE_DEPRECATION_VERSION) {
EmberENV['_OVERRIDE_DEPRECATION_VERSION'] = QUnit.urlParams.OVERRIDE_DEPRECATION_VERSION;
}
</script>
<script type="module">
import setupQUnit from './packages/internal-test-helpers/lib/ember-dev/setup-qunit.ts';
import { setTesting } from './packages/@ember/debug/index.ts';
setupQUnit();
setTesting(true);
let s = document.createElement('script');
s.src = "/testem.js";
document.body.append(s);
</script>
<script type="module">
// tests in internal packages
import.meta.glob('./packages/@ember/-internals/*/tests/**/*.{js,ts}', {
eager: true,
});
// tests in scoped packages
import.meta.glob('./packages/*/*/tests/**/*.{js,ts}', {
eager: true,
});
// tests in non-scoped packages
import.meta.glob('./packages/*/tests/**/*.{js,ts}', {
eager: true,
});
</script>
<div id="qunit"></div>
<div id="qunit-fixture"></div>
</body>
</html>