-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtests.html
100 lines (97 loc) · 2.12 KB
/
tests.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>Tests</title>
<link rel="icon" href="city-icon-192.png">
<link rel="apple-touch-icon" href="city-icon-180.png">
<script defer src="//cdnjs.cloudflare.com/ajax/libs/js-yaml/3.14.1/js-yaml.min.js"></script>
<script type="module">
import { uiReady } from './tests.js';
uiReady();
</script>
<style>
body {
font-family: monospace;
font-size: 10pt;
}
#testOutput {
margin: 0.5em;
padding: 0;
list-style-type: none;
}
li {
list-style-type: none;
margin: 2.5pt 0;
padding: 0;
}
li.header {
margin-top: 1.25em;
font-family: sans-serif;
font-size: 12pt;
font-weight: 500;
}
li.success {
color: hsl(80, 75%, 40%);
font-weight: 600;
}
li.warn {
color: hsl(20, 88%, 50%);
}
li.trace {
font-size: 8pt;
margin-top: 2.5pt;
}
.sparkline {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
justify-content: stretch;
align-items: end;
margin: 0.5em;
padding: 0;
list-style-type: none;
outline: 1px solid blue;
background-color: blue;
height: 50px;
}
.sparkline li {
flex-grow: 1;
display: flex;
margin: 0;
padding: 0;
list-style-type: none;
background-color: white;
}
.sparkline span {
display: none;
}
.sparkblob {
empty-cells: show;
border-collapse: collapse;
}
.sparkblob td span {
display: none;
}
.sparkblob td {
border: 1px solid white;
width: 6px;
height: 6px;
background-color: #ddd;
}
.sparkblob td.highlighted {
background-color: blue;
}
canvas {
display: block;
width: 100%;
height: 100%;
}
</style>
</head>
<body>
<ul id="testOutput"></ul>
<div id="visualizations"></div>
<div id="domContainer" style="visibility: hidden;"></div>
</body>
</html>