-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
Copy pathshell.js
40 lines (32 loc) · 1004 Bytes
/
shell.js
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
var variants = ["frame", "loader", "loader-lazy-no"];
function runVariant(variant) {
var IS_LOADER = !!variant.match(/^loader/);
var IS_ASYNC_LOADER = !!variant.match(/^loader$/);
var IS_SYNC_LOADER = !!variant.match(/^loader-lazy-no$/);
describe(variant, function() {
this.timeout(5000);
this.retries(3);
var sandbox;
beforeEach(function(done) {
sandbox = createSandbox(done, variant);
});
afterEach(function() {
document.body.removeChild(sandbox);
});
/**
* This part will be replaced by the test runner
*/
{{ suites/config.js }} // prettier-ignore
{{ suites/api.js }} // prettier-ignore
{{ suites/onerror.js }} // prettier-ignore
{{ suites/builtins.js }} // prettier-ignore
{{ suites/breadcrumbs.js }} // prettier-ignore
{{ suites/loader.js }} // prettier-ignore
});
}
for (var idx in variants) {
(function() {
runVariant(variants[idx]);
})();
}
{{ suites/loader-specific.js }} // prettier-ignore