-
-
Notifications
You must be signed in to change notification settings - Fork 72
/
index.html
36 lines (36 loc) · 1.19 KB
/
index.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>LibFont unit tests</title>
<script src="./lib/inflate.js" defer></script>
<script src="./lib/unbrotli.js" defer></script>
<script src="./lib-font.browser.js" type="module" defer></script>
<script src="./testing/browser/test.js" type="module" defer></script>
<style>
div {
white-space: pre-wrap;
border: 1px solid black;
border-bottom: none;
}
div:first-child { border-bottom: none; }
div:last-child { border-bottom: 1px solid black; }
div:nth-child(2n-1) { background-color: #EEE; }
div.pass:before { content: "✔️"; }
div.fail:before { content: "❌"; }
</style>
</head>
<body>
<h1>Test Results</h1>
<h3>Back to <a href="../index.html">index.html</a></h3>
</body>
<script>
const tests = [];
document.addEventListener(`testend`, e => {
tests.push(e.detail.test);
if (tests.length === 2) {
document.body.id = "finished";
}
});
</script>
</html>