-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Expand file tree
/
Copy pathindex.html
More file actions
87 lines (72 loc) · 2.44 KB
/
index.html
File metadata and controls
87 lines (72 loc) · 2.44 KB
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
77
78
79
80
81
82
83
84
85
86
87
<!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;
// 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;
}
QUnit.config.urlConfig.push({
id: 'OVERRIDE_DEPRECATION_VERSION',
value: ['20.0.0', '6.0.0', '5.12.0'],
label: 'Deprecation Version',
});
QUnit.config.urlConfig.push({
id: 'skip_tests_with_target_blank',
label: 'Skip tests w/ target _blank',
});
</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,gjs,gts}', {
eager: true,
});
// tests in scoped packages
import.meta.glob('./packages/*/*/tests/**/*.{js,ts,gjs,gts}', {
eager: true,
});
// tests in non-scoped packages
import.meta.glob('./packages/*/tests/**/*.{js,ts,gjs,gts}', {
eager: true,
});
// packages originally authored in glimmer-vm repo have a different test
// naming convention
import.meta.glob(
'./packages/{@glimmer,@glimmer-workspace}/*/test/**/*-test.{js,ts,gjs,gts}',
{
eager: true,
}
);
</script>
<div id="qunit"></div>
<div id="qunit-fixture"></div>
</body>
</html>