forked from theintern/intern
-
Notifications
You must be signed in to change notification settings - Fork 0
/
client.html
36 lines (35 loc) · 1.07 KB
/
client.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Browser test runner</title>
<script src="node_modules/dojo/dojo.js"></script>
<script>
(function () {
var basePath = location.pathname.replace(/\/+[^\/]*$/, '/'),
internConfig = this.__internConfig = {
// For users running client.html directly, assume that the base path
// is two levels up (the parent of node_modules); this is most common.
// Users that need something special should provide an absolute module
// path for the config module (e.g. `/path/to/intern/config`) and
// then set `baseUrl` correctly in the `loader` configuration object
// of the config module
baseUrl: basePath.slice(-10) === '/__intern/' ? basePath.slice(0, -9) : (basePath + '../../'),
packages: [
{ name: 'intern', location: basePath }
],
map: {
intern: {
dojo: 'intern/node_modules/dojo',
chai: 'intern/node_modules/chai/chai'
},
'*': {
'intern/dojo': 'intern/node_modules/dojo'
}
}
};
require(internConfig, [ 'intern/client' ]);
})();
</script>
</head>
</html>