-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathtestrunner.html
37 lines (37 loc) · 1.25 KB
/
testrunner.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Browser test runner</title>
<script src="http://localhost:35729/livereload.js"></script>
<script src="node_modules/intern/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 === '/__intern/' ? '/' : (basePath + '../../'),
packages: [
{ name: 'intern', location: basePath + 'node_modules/intern' }
],
map: {
intern: {
dojo: basePath + 'node_modules/intern/node_modules/dojo',
chai: basePath + 'node_modules/intern/node_modules/chai/chai'
},
'*': {
'intern/dojo': basePath + 'node_modules/intern/node_modules/dojo'
}
}
};
console.debug(internConfig);
require(internConfig, [ 'intern/client' ]);
})();
</script>
</head>
</html>