forked from devlynnx/systemjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test-base-href.html
48 lines (42 loc) · 1.12 KB
/
test-base-href.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
<!doctype html>
<head>
<base href="/test/fixtures/browser/">
</head>
<meta charset="utf-8">
<script>
if (typeof Promise === 'undefined')
document.write('<script src="../node_modules/bluebird/js/browser/bluebird.core.js"><\/script>');
</script>
<script>
if (typeof fetch === 'undefined')
document.write('<script src="../node_modules/whatwg-fetch/fetch.js"><\/script>');
</script>
<link rel="stylesheet" type="text/css" href="../../../../node_modules/mocha/mocha.css"/>
<script src="../../../../node_modules/mocha/mocha.js"></script>
<script type="systemjs-importmap">
{
"imports": {
"base-href-bare": "./base-href-bare.js"
}
}
</script>
<script src="../../../../dist/system.js"></script>
<script>
mocha.setup('tdd');
self.assert = {
ok: function (val) {
this.equal(!!val, true);
},
equal: function equal(a, b) {
if (a !== b)
throw new Error('Expected "' + a + '" to be "' + b + '"');
},
fail: function (msg) {
throw new Error(msg);
}
};
System.import('../../browser/base-href.js').then(function () {
mocha.run();
});
</script>
<div id="mocha"></div>