forked from marook/osm-read
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.html
40 lines (36 loc) · 1.23 KB
/
test.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
<!DOCTYPE html>
<html>
<head>
<title>Browser test suite</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="node_modules/mocha/mocha.css" />
</head>
<body>
<div id="mocha"></div>
<script src="node_modules/mocha/mocha.js"></script>
<script src="node_modules/should/should.js"></script>
<script>mocha.setup('bdd')</script>
<script src="node_modules/bytebuffer/dist/bytebuffer.js"></script>
<script src="node_modules/zlibjs/bin/zlib.min.js"></script>
<script src="osm-read-pbf.js" crossorigin="anonymous"></script>
<script>
function require(module) {
var fakeModules = {
"should": window.Should,
"../lib/main": {
"createPbfParser": pbfParser.createParser,
"parse": pbfParser.parse
}
}
return fakeModules[module];
}
</script>
<script src="test/zlibBrowserTest.js"></script>
<script src="test/manyNodesTest.js"></script>
<script src="test/pbfTest.js"></script>
<script>
mocha.run();
</script>
</body>
</html>