This repository was archived by the owner on Sep 20, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 492
/
Copy pathrunner.html
89 lines (83 loc) · 2.95 KB
/
runner.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
77
78
79
80
81
82
83
84
85
86
87
88
89
<!doctype html>
<!--
@license
Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
-->
<title>All WebComponents Tests</title>
<meta charset="utf-8">
<!-- WebComponents -->
<script src="./wct-config.js"></script>
<script src="../node_modules/wct-browser-legacy/browser.js"></script>
<script>
window.suites = [
'template-and-CE.html',
'integration.html',
'integration-es5.html',
'load.html',
'force-polyfills.html',
'dev-loader.html',
'dev-loader-swizzled.html',
'promise.html',
'bundle-with-modules.html',
'loader-with-modules.html',
'loader-with-root-defined.html',
'url.html',
'symbol.html',
'bundle-after-load.html',
'loader-after-load.html',
'baseuri.html'
];
</script>
<script>
try {
// include `async loader` if `import()` function is supported.
eval('import("").catch(function(){})');
window.suites.push('async-loader-with-modules.html');
} catch (e) {} // eslint-disable-line no-empty
</script>
<script>
// Include `async-loader-no-polyfills` test only for browsers that require no polyfills.
// Feature-detection tests are from `webcomponents-loader.js`.
var polyfills = [];
if (!('attachShadow' in Element.prototype && 'getRootNode' in Element.prototype) ||
(window.ShadyDOM && window.ShadyDOM.force)) {
polyfills.push('sd');
}
if (!window.customElements || window.customElements.forcePolyfill) {
polyfills.push('ce');
}
var needsTemplate = (function() {
// no real <template> because no `content` property (IE and older browsers)
var t = document.createElement('template');
if (!('content' in t)) {
return true;
}
// broken doc fragment (older Edge)
if (!(t.content.cloneNode() instanceof DocumentFragment)) {
return true;
}
// broken <template> cloning (Edge up to at least version 17)
var t2 = document.createElement('template');
t2.content.appendChild(document.createElement('div'));
t.content.appendChild(t2);
var clone = t.cloneNode(true);
return (clone.content.childNodes.length === 0 ||
clone.content.firstChild.content.childNodes.length === 0);
})();
// NOTE: any browser that does not have template or ES6 features
// must load the full suite of polyfills.
if (!window.Promise || !Array.from || !window.URL || !window.Symbol || needsTemplate) {
polyfills = ['sd-ce-pf'];
}
if (!polyfills.length) {
window.suites.push('async-loader-no-polyfills.html');
}
</script>
<script>
WCT.loadSuites(window.suites);
</script>