-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtest.html
34 lines (34 loc) · 1 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
<html>
<head>
<meta charset="utf-8">
<!-- encoding must be set for mocha's special characters to render properly -->
<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/chai/chai.js"></script>
<script>
mocha.ui('bdd');
expect = chai.expect;
</script>
<script src="dist/prototypo.js"></script>
<script>
// Let's write this xhr manually, because we need to ignore the fact
// that for some reasons it always returns a status code of 0 :(
var xhr = new XMLHttpRequest();
xhr.onload = function() {
window.fontJSON = xhr.responseText;
};
xhr.open('GET', 'node_modules/test.ptf/dist/font.json', false);
xhr.send();
</script>
<script src="test/naive.js"></script>
<script src="test/prototypo.js"></script>
<script src="test/updateUtils.js"></script>
<script src="test/Utils.js"></script>
<script>
mocha.run();
</script>
</body>
</html>