speaker-calibration 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintignore +72 -0
- package/.eslintrc.json +40 -0
- package/.gitignore +78 -0
- package/.prettierignore +70 -0
- package/.prettierrc +15 -0
- package/LICENSE +20 -20
- package/README.md +133 -133
- package/__mocks__/fileMock.js +1 -0
- package/__mocks__/styleMock.js +1 -0
- package/babel.config.js +3 -0
- package/coverage/clover.xml +71 -0
- package/coverage/coverage-final.json +224 -0
- package/coverage/lcov-report/PythonServerInterface.js.html +265 -0
- package/coverage/lcov-report/base.css +354 -0
- package/coverage/lcov-report/block-navigation.js +82 -0
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +123 -0
- package/coverage/lcov-report/prettify.css +101 -0
- package/coverage/lcov-report/prettify.js +937 -0
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +189 -0
- package/coverage/lcov-report/src/index.html +121 -0
- package/coverage/lcov-report/src/server/PythonServerInterface.js.html +268 -0
- package/coverage/lcov-report/src/server/index.html +123 -0
- package/coverage/lcov-report/src/tasks/audioCalibrator.js.html +499 -0
- package/coverage/lcov-report/src/tasks/audioRecorder.js.html +412 -0
- package/coverage/lcov-report/src/tasks/index.html +143 -0
- package/coverage/lcov-report/src/tasks/volume/index.html +123 -0
- package/coverage/lcov-report/src/tasks/volume/volume.js.html +409 -0
- package/coverage/lcov-report/src/utils.js.html +172 -0
- package/coverage/lcov.info +91 -0
- package/dist/example/Queen-Bohemian_Rhapsody.wav +0 -0
- package/dist/example/Queen-Bohemian_Rhapsody_g_filtered.wav +0 -0
- package/dist/example/index.html +47 -0
- package/dist/example/listener.html +89 -0
- package/dist/example/server.js +49 -0
- package/dist/example/speaker.html +126 -0
- package/dist/example/speakerUI.js +217 -0
- package/dist/example/styles.css +40 -0
- package/dist/main.js +1 -1
- package/dist/mlsGen.js +6814 -6814
- package/dist/mlsGen.wasm +0 -0
- package/doc/AudioCalibrator.html +417 -0
- package/doc/AudioPeer.html +251 -0
- package/doc/AudioRecorder.html +195 -0
- package/doc/ImpulseResponse.html +215 -0
- package/doc/Listener.html +308 -0
- package/doc/MlsGenInterface.html +226 -0
- package/doc/MyEventEmitter.html +274 -0
- package/doc/PythonServerAPI.html +109 -0
- package/doc/Speaker-Calibration-UML-Diagram.png +0 -0
- package/doc/Speaker.html +276 -0
- package/doc/Takes%20a%20target%20element%20where%20html%20elements%20will%20be%20appended..html +128 -0
- package/doc/Takes%20the%20url%20of%20the%20current%20site%0Aand%20a%20target%20element%20where%20html%20elements%20will%20be%20appended..html +138 -0
- package/doc/Takes%20the%20url%20of%20the%20current%20site%20and%20a%20target%20element%20where%20html%20elements%20will%20be%20appended..html +137 -0
- package/doc/Volume.html +88 -0
- package/doc/audioCalibrator.js.html +179 -0
- package/doc/audioPeer.js.html +175 -0
- package/doc/audioRecorder.js.html +163 -0
- package/doc/creates%20a%20new%20AudioRecorder%20instance.%20%0ASets%20up%20the%20audio%20context%20and%20file%20reader..html +114 -0
- package/doc/fonts/OpenSans-Bold-webfont.eot +0 -0
- package/doc/fonts/OpenSans-Bold-webfont.svg +1830 -0
- package/doc/fonts/OpenSans-Bold-webfont.woff +0 -0
- package/doc/fonts/OpenSans-BoldItalic-webfont.eot +0 -0
- package/doc/fonts/OpenSans-BoldItalic-webfont.svg +1830 -0
- package/doc/fonts/OpenSans-BoldItalic-webfont.woff +0 -0
- package/doc/fonts/OpenSans-Italic-webfont.eot +0 -0
- package/doc/fonts/OpenSans-Italic-webfont.svg +1830 -0
- package/doc/fonts/OpenSans-Italic-webfont.woff +0 -0
- package/doc/fonts/OpenSans-Light-webfont.eot +0 -0
- package/doc/fonts/OpenSans-Light-webfont.svg +1831 -0
- package/doc/fonts/OpenSans-Light-webfont.woff +0 -0
- package/doc/fonts/OpenSans-LightItalic-webfont.eot +0 -0
- package/doc/fonts/OpenSans-LightItalic-webfont.svg +1835 -0
- package/doc/fonts/OpenSans-LightItalic-webfont.woff +0 -0
- package/doc/fonts/OpenSans-Regular-webfont.eot +0 -0
- package/doc/fonts/OpenSans-Regular-webfont.svg +1831 -0
- package/doc/fonts/OpenSans-Regular-webfont.woff +0 -0
- package/doc/global.html +308 -0
- package/doc/index.html +58 -0
- package/doc/listener.js.html +170 -0
- package/doc/mlsGen_mlsGenInterface.js.html +117 -0
- package/doc/myEventEmitter.js.html +124 -0
- package/doc/peer-connection_audioPeer.js.html +188 -0
- package/doc/peer-connection_listener.js.html +311 -0
- package/doc/peer-connection_speaker.js.html +381 -0
- package/doc/sc-activity-diagram.png +0 -0
- package/doc/scripts/linenumber.js +25 -0
- package/doc/scripts/prettify/Apache-License-2.0.txt +202 -0
- package/doc/scripts/prettify/lang-css.js +24 -0
- package/doc/scripts/prettify/prettify.js +640 -0
- package/doc/server_PythonServerAPI.js.html +160 -0
- package/doc/speaker.js.html +248 -0
- package/doc/styles/jsdoc-default.css +371 -0
- package/doc/styles/prettify-jsdoc.css +111 -0
- package/doc/styles/prettify-tomorrow.css +163 -0
- package/doc/tasks_audioCalibrator.js.html +207 -0
- package/doc/tasks_audioRecorder.js.html +190 -0
- package/doc/tasks_impulse-response_impulseResponse.js.html +442 -0
- package/doc/tasks_impulse-response_mlsGen_mlsGenInterface.js.html +175 -0
- package/doc/tasks_volume_volume.js.html +185 -0
- package/doc/utils.js.html +105 -0
- package/jest.config.js +173 -0
- package/netlify.toml +27 -0
- package/package.json +67 -66
- package/src/index.html +21 -0
- package/src/main.js +21 -0
- package/src/myEventEmitter.js +83 -0
- package/src/peer-connection/audioPeer.js +151 -0
- package/src/peer-connection/listener.js +251 -0
- package/src/peer-connection/peerErrors.js +25 -0
- package/src/peer-connection/speaker.js +346 -0
- package/src/server/PythonServerAPI.js +117 -0
- package/src/tasks/audioCalibrator.js +218 -0
- package/src/tasks/audioRecorder.js +148 -0
- package/src/tasks/impulse-response/impulseResponse.js +436 -0
- package/src/tasks/impulse-response/mlsGen/mlsGen.cpp +99 -0
- package/src/tasks/impulse-response/mlsGen/mlsGen.hpp +304 -0
- package/src/tasks/impulse-response/mlsGen/mlsGenInterface.js +131 -0
- package/src/tasks/impulse-response/mlsGen/mlsGenTest.cpp +181 -0
- package/src/tasks/volume/volume.cpp +3 -0
- package/src/tasks/volume/volume.hpp +23 -0
- package/src/tasks/volume/volume.js +157 -0
- package/src/utils.js +55 -0
- package/webpack.config.js +37 -0
- package/README +0 -3
|
@@ -0,0 +1,354 @@
|
|
|
1
|
+
body,
|
|
2
|
+
html {
|
|
3
|
+
margin: 0;
|
|
4
|
+
padding: 0;
|
|
5
|
+
height: 100%;
|
|
6
|
+
}
|
|
7
|
+
body {
|
|
8
|
+
font-family: Helvetica Neue, Helvetica, Arial;
|
|
9
|
+
font-size: 14px;
|
|
10
|
+
color: #333;
|
|
11
|
+
}
|
|
12
|
+
.small {
|
|
13
|
+
font-size: 12px;
|
|
14
|
+
}
|
|
15
|
+
*,
|
|
16
|
+
*:after,
|
|
17
|
+
*:before {
|
|
18
|
+
-webkit-box-sizing: border-box;
|
|
19
|
+
-moz-box-sizing: border-box;
|
|
20
|
+
box-sizing: border-box;
|
|
21
|
+
}
|
|
22
|
+
h1 {
|
|
23
|
+
font-size: 20px;
|
|
24
|
+
margin: 0;
|
|
25
|
+
}
|
|
26
|
+
h2 {
|
|
27
|
+
font-size: 14px;
|
|
28
|
+
}
|
|
29
|
+
pre {
|
|
30
|
+
font: 12px/1.4 Consolas, 'Liberation Mono', Menlo, Courier, monospace;
|
|
31
|
+
margin: 0;
|
|
32
|
+
padding: 0;
|
|
33
|
+
-moz-tab-size: 2;
|
|
34
|
+
-o-tab-size: 2;
|
|
35
|
+
tab-size: 2;
|
|
36
|
+
}
|
|
37
|
+
a {
|
|
38
|
+
color: #0074d9;
|
|
39
|
+
text-decoration: none;
|
|
40
|
+
}
|
|
41
|
+
a:hover {
|
|
42
|
+
text-decoration: underline;
|
|
43
|
+
}
|
|
44
|
+
.strong {
|
|
45
|
+
font-weight: bold;
|
|
46
|
+
}
|
|
47
|
+
.space-top1 {
|
|
48
|
+
padding: 10px 0 0 0;
|
|
49
|
+
}
|
|
50
|
+
.pad2y {
|
|
51
|
+
padding: 20px 0;
|
|
52
|
+
}
|
|
53
|
+
.pad1y {
|
|
54
|
+
padding: 10px 0;
|
|
55
|
+
}
|
|
56
|
+
.pad2x {
|
|
57
|
+
padding: 0 20px;
|
|
58
|
+
}
|
|
59
|
+
.pad2 {
|
|
60
|
+
padding: 20px;
|
|
61
|
+
}
|
|
62
|
+
.pad1 {
|
|
63
|
+
padding: 10px;
|
|
64
|
+
}
|
|
65
|
+
.space-left2 {
|
|
66
|
+
padding-left: 55px;
|
|
67
|
+
}
|
|
68
|
+
.space-right2 {
|
|
69
|
+
padding-right: 20px;
|
|
70
|
+
}
|
|
71
|
+
.center {
|
|
72
|
+
text-align: center;
|
|
73
|
+
}
|
|
74
|
+
.clearfix {
|
|
75
|
+
display: block;
|
|
76
|
+
}
|
|
77
|
+
.clearfix:after {
|
|
78
|
+
content: '';
|
|
79
|
+
display: block;
|
|
80
|
+
height: 0;
|
|
81
|
+
clear: both;
|
|
82
|
+
visibility: hidden;
|
|
83
|
+
}
|
|
84
|
+
.fl {
|
|
85
|
+
float: left;
|
|
86
|
+
}
|
|
87
|
+
@media only screen and (max-width: 640px) {
|
|
88
|
+
.col3 {
|
|
89
|
+
width: 100%;
|
|
90
|
+
max-width: 100%;
|
|
91
|
+
}
|
|
92
|
+
.hide-mobile {
|
|
93
|
+
display: none !important;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.quiet {
|
|
98
|
+
color: #7f7f7f;
|
|
99
|
+
color: rgba(0, 0, 0, 0.5);
|
|
100
|
+
}
|
|
101
|
+
.quiet a {
|
|
102
|
+
opacity: 0.7;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.fraction {
|
|
106
|
+
font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace;
|
|
107
|
+
font-size: 10px;
|
|
108
|
+
color: #555;
|
|
109
|
+
background: #e8e8e8;
|
|
110
|
+
padding: 4px 5px;
|
|
111
|
+
border-radius: 3px;
|
|
112
|
+
vertical-align: middle;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
div.path a:link,
|
|
116
|
+
div.path a:visited {
|
|
117
|
+
color: #333;
|
|
118
|
+
}
|
|
119
|
+
table.coverage {
|
|
120
|
+
border-collapse: collapse;
|
|
121
|
+
margin: 10px 0 0 0;
|
|
122
|
+
padding: 0;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
table.coverage td {
|
|
126
|
+
margin: 0;
|
|
127
|
+
padding: 0;
|
|
128
|
+
vertical-align: top;
|
|
129
|
+
}
|
|
130
|
+
table.coverage td.line-count {
|
|
131
|
+
text-align: right;
|
|
132
|
+
padding: 0 5px 0 20px;
|
|
133
|
+
}
|
|
134
|
+
table.coverage td.line-coverage {
|
|
135
|
+
text-align: right;
|
|
136
|
+
padding-right: 10px;
|
|
137
|
+
min-width: 20px;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
table.coverage td span.cline-any {
|
|
141
|
+
display: inline-block;
|
|
142
|
+
padding: 0 5px;
|
|
143
|
+
width: 100%;
|
|
144
|
+
}
|
|
145
|
+
.missing-if-branch {
|
|
146
|
+
display: inline-block;
|
|
147
|
+
margin-right: 5px;
|
|
148
|
+
border-radius: 3px;
|
|
149
|
+
position: relative;
|
|
150
|
+
padding: 0 4px;
|
|
151
|
+
background: #333;
|
|
152
|
+
color: yellow;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.skip-if-branch {
|
|
156
|
+
display: none;
|
|
157
|
+
margin-right: 10px;
|
|
158
|
+
position: relative;
|
|
159
|
+
padding: 0 4px;
|
|
160
|
+
background: #ccc;
|
|
161
|
+
color: white;
|
|
162
|
+
}
|
|
163
|
+
.missing-if-branch .typ,
|
|
164
|
+
.skip-if-branch .typ {
|
|
165
|
+
color: inherit !important;
|
|
166
|
+
}
|
|
167
|
+
.coverage-summary {
|
|
168
|
+
border-collapse: collapse;
|
|
169
|
+
width: 100%;
|
|
170
|
+
}
|
|
171
|
+
.coverage-summary tr {
|
|
172
|
+
border-bottom: 1px solid #bbb;
|
|
173
|
+
}
|
|
174
|
+
.keyline-all {
|
|
175
|
+
border: 1px solid #ddd;
|
|
176
|
+
}
|
|
177
|
+
.coverage-summary td,
|
|
178
|
+
.coverage-summary th {
|
|
179
|
+
padding: 10px;
|
|
180
|
+
}
|
|
181
|
+
.coverage-summary tbody {
|
|
182
|
+
border: 1px solid #bbb;
|
|
183
|
+
}
|
|
184
|
+
.coverage-summary td {
|
|
185
|
+
border-right: 1px solid #bbb;
|
|
186
|
+
}
|
|
187
|
+
.coverage-summary td:last-child {
|
|
188
|
+
border-right: none;
|
|
189
|
+
}
|
|
190
|
+
.coverage-summary th {
|
|
191
|
+
text-align: left;
|
|
192
|
+
font-weight: normal;
|
|
193
|
+
white-space: nowrap;
|
|
194
|
+
}
|
|
195
|
+
.coverage-summary th.file {
|
|
196
|
+
border-right: none !important;
|
|
197
|
+
}
|
|
198
|
+
.coverage-summary th.pct {
|
|
199
|
+
}
|
|
200
|
+
.coverage-summary th.pic,
|
|
201
|
+
.coverage-summary th.abs,
|
|
202
|
+
.coverage-summary td.pct,
|
|
203
|
+
.coverage-summary td.abs {
|
|
204
|
+
text-align: right;
|
|
205
|
+
}
|
|
206
|
+
.coverage-summary td.file {
|
|
207
|
+
white-space: nowrap;
|
|
208
|
+
}
|
|
209
|
+
.coverage-summary td.pic {
|
|
210
|
+
min-width: 120px !important;
|
|
211
|
+
}
|
|
212
|
+
.coverage-summary tfoot td {
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.coverage-summary .sorter {
|
|
216
|
+
height: 10px;
|
|
217
|
+
width: 7px;
|
|
218
|
+
display: inline-block;
|
|
219
|
+
margin-left: 0.5em;
|
|
220
|
+
background: url(sort-arrow-sprite.png) no-repeat scroll 0 0 transparent;
|
|
221
|
+
}
|
|
222
|
+
.coverage-summary .sorted .sorter {
|
|
223
|
+
background-position: 0 -20px;
|
|
224
|
+
}
|
|
225
|
+
.coverage-summary .sorted-desc .sorter {
|
|
226
|
+
background-position: 0 -10px;
|
|
227
|
+
}
|
|
228
|
+
.status-line {
|
|
229
|
+
height: 10px;
|
|
230
|
+
}
|
|
231
|
+
/* yellow */
|
|
232
|
+
.cbranch-no {
|
|
233
|
+
background: yellow !important;
|
|
234
|
+
color: #111;
|
|
235
|
+
}
|
|
236
|
+
/* dark red */
|
|
237
|
+
.red.solid,
|
|
238
|
+
.status-line.low,
|
|
239
|
+
.low .cover-fill {
|
|
240
|
+
background: #c21f39;
|
|
241
|
+
}
|
|
242
|
+
.low .chart {
|
|
243
|
+
border: 1px solid #c21f39;
|
|
244
|
+
}
|
|
245
|
+
.highlighted,
|
|
246
|
+
.highlighted .cstat-no,
|
|
247
|
+
.highlighted .fstat-no,
|
|
248
|
+
.highlighted .cbranch-no {
|
|
249
|
+
background: #c21f39 !important;
|
|
250
|
+
}
|
|
251
|
+
/* medium red */
|
|
252
|
+
.cstat-no,
|
|
253
|
+
.fstat-no,
|
|
254
|
+
.cbranch-no,
|
|
255
|
+
.cbranch-no {
|
|
256
|
+
background: #f6c6ce;
|
|
257
|
+
}
|
|
258
|
+
/* light red */
|
|
259
|
+
.low,
|
|
260
|
+
.cline-no {
|
|
261
|
+
background: #fce1e5;
|
|
262
|
+
}
|
|
263
|
+
/* light green */
|
|
264
|
+
.high,
|
|
265
|
+
.cline-yes {
|
|
266
|
+
background: rgb(230, 245, 208);
|
|
267
|
+
}
|
|
268
|
+
/* medium green */
|
|
269
|
+
.cstat-yes {
|
|
270
|
+
background: rgb(161, 215, 106);
|
|
271
|
+
}
|
|
272
|
+
/* dark green */
|
|
273
|
+
.status-line.high,
|
|
274
|
+
.high .cover-fill {
|
|
275
|
+
background: rgb(77, 146, 33);
|
|
276
|
+
}
|
|
277
|
+
.high .chart {
|
|
278
|
+
border: 1px solid rgb(77, 146, 33);
|
|
279
|
+
}
|
|
280
|
+
/* dark yellow (gold) */
|
|
281
|
+
.status-line.medium,
|
|
282
|
+
.medium .cover-fill {
|
|
283
|
+
background: #f9cd0b;
|
|
284
|
+
}
|
|
285
|
+
.medium .chart {
|
|
286
|
+
border: 1px solid #f9cd0b;
|
|
287
|
+
}
|
|
288
|
+
/* light yellow */
|
|
289
|
+
.medium {
|
|
290
|
+
background: #fff4c2;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.cstat-skip {
|
|
294
|
+
background: #ddd;
|
|
295
|
+
color: #111;
|
|
296
|
+
}
|
|
297
|
+
.fstat-skip {
|
|
298
|
+
background: #ddd;
|
|
299
|
+
color: #111 !important;
|
|
300
|
+
}
|
|
301
|
+
.cbranch-skip {
|
|
302
|
+
background: #ddd !important;
|
|
303
|
+
color: #111;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
span.cline-neutral {
|
|
307
|
+
background: #eaeaea;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.coverage-summary td.empty {
|
|
311
|
+
opacity: 0.5;
|
|
312
|
+
padding-top: 4px;
|
|
313
|
+
padding-bottom: 4px;
|
|
314
|
+
line-height: 1;
|
|
315
|
+
color: #888;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.cover-fill,
|
|
319
|
+
.cover-empty {
|
|
320
|
+
display: inline-block;
|
|
321
|
+
height: 12px;
|
|
322
|
+
}
|
|
323
|
+
.chart {
|
|
324
|
+
line-height: 0;
|
|
325
|
+
}
|
|
326
|
+
.cover-empty {
|
|
327
|
+
background: white;
|
|
328
|
+
}
|
|
329
|
+
.cover-full {
|
|
330
|
+
border-right: none !important;
|
|
331
|
+
}
|
|
332
|
+
pre.prettyprint {
|
|
333
|
+
border: none !important;
|
|
334
|
+
padding: 0 !important;
|
|
335
|
+
margin: 0 !important;
|
|
336
|
+
}
|
|
337
|
+
.com {
|
|
338
|
+
color: #999 !important;
|
|
339
|
+
}
|
|
340
|
+
.ignore-none {
|
|
341
|
+
color: #999;
|
|
342
|
+
font-weight: normal;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
.wrapper {
|
|
346
|
+
min-height: 100%;
|
|
347
|
+
height: auto !important;
|
|
348
|
+
height: 100%;
|
|
349
|
+
margin: 0 auto -48px;
|
|
350
|
+
}
|
|
351
|
+
.footer,
|
|
352
|
+
.push {
|
|
353
|
+
height: 48px;
|
|
354
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
var jumpToCode = (function init() {
|
|
3
|
+
// Classes of code we would like to highlight in the file view
|
|
4
|
+
var missingCoverageClasses = ['.cbranch-no', '.cstat-no', '.fstat-no'];
|
|
5
|
+
|
|
6
|
+
// Elements to highlight in the file listing view
|
|
7
|
+
var fileListingElements = ['td.pct.low'];
|
|
8
|
+
|
|
9
|
+
// We don't want to select elements that are direct descendants of another match
|
|
10
|
+
var notSelector = ':not(' + missingCoverageClasses.join('):not(') + ') > '; // becomes `:not(a):not(b) > `
|
|
11
|
+
|
|
12
|
+
// Selecter that finds elements on the page to which we can jump
|
|
13
|
+
var selector =
|
|
14
|
+
fileListingElements.join(', ') +
|
|
15
|
+
', ' +
|
|
16
|
+
notSelector +
|
|
17
|
+
missingCoverageClasses.join(', ' + notSelector); // becomes `:not(a):not(b) > a, :not(a):not(b) > b`
|
|
18
|
+
|
|
19
|
+
// The NodeList of matching elements
|
|
20
|
+
var missingCoverageElements = document.querySelectorAll(selector);
|
|
21
|
+
|
|
22
|
+
var currentIndex;
|
|
23
|
+
|
|
24
|
+
function toggleClass(index) {
|
|
25
|
+
missingCoverageElements.item(currentIndex).classList.remove('highlighted');
|
|
26
|
+
missingCoverageElements.item(index).classList.add('highlighted');
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
function makeCurrent(index) {
|
|
30
|
+
toggleClass(index);
|
|
31
|
+
currentIndex = index;
|
|
32
|
+
missingCoverageElements.item(index).scrollIntoView({
|
|
33
|
+
behavior: 'smooth',
|
|
34
|
+
block: 'center',
|
|
35
|
+
inline: 'center',
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
function goToPrevious() {
|
|
40
|
+
var nextIndex = 0;
|
|
41
|
+
if (typeof currentIndex !== 'number' || currentIndex === 0) {
|
|
42
|
+
nextIndex = missingCoverageElements.length - 1;
|
|
43
|
+
} else if (missingCoverageElements.length > 1) {
|
|
44
|
+
nextIndex = currentIndex - 1;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
makeCurrent(nextIndex);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
function goToNext() {
|
|
51
|
+
var nextIndex = 0;
|
|
52
|
+
|
|
53
|
+
if (typeof currentIndex === 'number' && currentIndex < missingCoverageElements.length - 1) {
|
|
54
|
+
nextIndex = currentIndex + 1;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
makeCurrent(nextIndex);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return function jump(event) {
|
|
61
|
+
if (
|
|
62
|
+
document.getElementById('fileSearch') === document.activeElement &&
|
|
63
|
+
document.activeElement != null
|
|
64
|
+
) {
|
|
65
|
+
// if we're currently focused on the search input, we don't want to navigate
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
switch (event.which) {
|
|
70
|
+
case 78: // n
|
|
71
|
+
case 74: // j
|
|
72
|
+
goToNext();
|
|
73
|
+
break;
|
|
74
|
+
case 66: // b
|
|
75
|
+
case 75: // k
|
|
76
|
+
case 80: // p
|
|
77
|
+
goToPrevious();
|
|
78
|
+
break;
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
})();
|
|
82
|
+
window.addEventListener('keydown', jumpToCode);
|
|
Binary file
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<title>Code coverage report for All files</title>
|
|
5
|
+
<meta charset="utf-8" />
|
|
6
|
+
<link rel="stylesheet" href="prettify.css" />
|
|
7
|
+
<link rel="stylesheet" href="base.css" />
|
|
8
|
+
<link rel="shortcut icon" type="image/x-icon" href="favicon.png" />
|
|
9
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
10
|
+
<style type="text/css">
|
|
11
|
+
.coverage-summary .sorter {
|
|
12
|
+
background-image: url(sort-arrow-sprite.png);
|
|
13
|
+
}
|
|
14
|
+
</style>
|
|
15
|
+
</head>
|
|
16
|
+
|
|
17
|
+
<body>
|
|
18
|
+
<div class="wrapper">
|
|
19
|
+
<div class="pad1">
|
|
20
|
+
<h1>All files</h1>
|
|
21
|
+
<div class="clearfix">
|
|
22
|
+
<div class="fl pad1y space-right2">
|
|
23
|
+
<span class="strong">72.58% </span>
|
|
24
|
+
<span class="quiet">Statements</span>
|
|
25
|
+
<span class="fraction">45/62</span>
|
|
26
|
+
</div>
|
|
27
|
+
|
|
28
|
+
<div class="fl pad1y space-right2">
|
|
29
|
+
<span class="strong">87.5% </span>
|
|
30
|
+
<span class="quiet">Branches</span>
|
|
31
|
+
<span class="fraction">7/8</span>
|
|
32
|
+
</div>
|
|
33
|
+
|
|
34
|
+
<div class="fl pad1y space-right2">
|
|
35
|
+
<span class="strong">100% </span>
|
|
36
|
+
<span class="quiet">Functions</span>
|
|
37
|
+
<span class="fraction">6/6</span>
|
|
38
|
+
</div>
|
|
39
|
+
|
|
40
|
+
<div class="fl pad1y space-right2">
|
|
41
|
+
<span class="strong">72.58% </span>
|
|
42
|
+
<span class="quiet">Lines</span>
|
|
43
|
+
<span class="fraction">45/62</span>
|
|
44
|
+
</div>
|
|
45
|
+
</div>
|
|
46
|
+
<p class="quiet">
|
|
47
|
+
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>,
|
|
48
|
+
<em>p</em> or <em>k</em> for the previous block.
|
|
49
|
+
</p>
|
|
50
|
+
<template id="filterTemplate">
|
|
51
|
+
<div class="quiet">
|
|
52
|
+
Filter:
|
|
53
|
+
<input oninput="onInput()" type="search" id="fileSearch" />
|
|
54
|
+
</div>
|
|
55
|
+
</template>
|
|
56
|
+
</div>
|
|
57
|
+
<div class="status-line medium"></div>
|
|
58
|
+
<div class="pad1">
|
|
59
|
+
<table class="coverage-summary">
|
|
60
|
+
<thead>
|
|
61
|
+
<tr>
|
|
62
|
+
<th data-col="file" data-fmt="html" data-html="true" class="file">File</th>
|
|
63
|
+
<th
|
|
64
|
+
data-col="pic"
|
|
65
|
+
data-type="number"
|
|
66
|
+
data-fmt="html"
|
|
67
|
+
data-html="true"
|
|
68
|
+
class="pic"
|
|
69
|
+
></th>
|
|
70
|
+
<th data-col="statements" data-type="number" data-fmt="pct" class="pct">
|
|
71
|
+
Statements
|
|
72
|
+
</th>
|
|
73
|
+
<th data-col="statements_raw" data-type="number" data-fmt="html" class="abs"></th>
|
|
74
|
+
<th data-col="branches" data-type="number" data-fmt="pct" class="pct">Branches</th>
|
|
75
|
+
<th data-col="branches_raw" data-type="number" data-fmt="html" class="abs"></th>
|
|
76
|
+
<th data-col="functions" data-type="number" data-fmt="pct" class="pct">Functions</th>
|
|
77
|
+
<th data-col="functions_raw" data-type="number" data-fmt="html" class="abs"></th>
|
|
78
|
+
<th data-col="lines" data-type="number" data-fmt="pct" class="pct">Lines</th>
|
|
79
|
+
<th data-col="lines_raw" data-type="number" data-fmt="html" class="abs"></th>
|
|
80
|
+
</tr>
|
|
81
|
+
</thead>
|
|
82
|
+
<tbody>
|
|
83
|
+
<tr>
|
|
84
|
+
<td class="file medium" data-value="PythonServerInterface.js">
|
|
85
|
+
<a href="PythonServerInterface.js.html">PythonServerInterface.js</a>
|
|
86
|
+
</td>
|
|
87
|
+
<td data-value="72.58" class="pic medium">
|
|
88
|
+
<div class="chart">
|
|
89
|
+
<div class="cover-fill" style="width: 72%"></div>
|
|
90
|
+
<div class="cover-empty" style="width: 28%"></div>
|
|
91
|
+
</div>
|
|
92
|
+
</td>
|
|
93
|
+
<td data-value="72.58" class="pct medium">72.58%</td>
|
|
94
|
+
<td data-value="62" class="abs medium">45/62</td>
|
|
95
|
+
<td data-value="87.5" class="pct high">87.5%</td>
|
|
96
|
+
<td data-value="8" class="abs high">7/8</td>
|
|
97
|
+
<td data-value="100" class="pct high">100%</td>
|
|
98
|
+
<td data-value="6" class="abs high">6/6</td>
|
|
99
|
+
<td data-value="72.58" class="pct medium">72.58%</td>
|
|
100
|
+
<td data-value="62" class="abs medium">45/62</td>
|
|
101
|
+
</tr>
|
|
102
|
+
</tbody>
|
|
103
|
+
</table>
|
|
104
|
+
</div>
|
|
105
|
+
<div class="push"></div>
|
|
106
|
+
<!-- for sticky footer -->
|
|
107
|
+
</div>
|
|
108
|
+
<!-- /wrapper -->
|
|
109
|
+
<div class="footer quiet pad2 space-top1 center small">
|
|
110
|
+
Code coverage generated by
|
|
111
|
+
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
112
|
+
at Tue Apr 26 2022 12:42:09 GMT-0400 (Eastern Daylight Time)
|
|
113
|
+
</div>
|
|
114
|
+
<script src="prettify.js"></script>
|
|
115
|
+
<script>
|
|
116
|
+
window.onload = function () {
|
|
117
|
+
prettyPrint();
|
|
118
|
+
};
|
|
119
|
+
</script>
|
|
120
|
+
<script src="sorter.js"></script>
|
|
121
|
+
<script src="block-navigation.js"></script>
|
|
122
|
+
</body>
|
|
123
|
+
</html>
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
.pln {
|
|
2
|
+
color: #000;
|
|
3
|
+
}
|
|
4
|
+
@media screen {
|
|
5
|
+
.str {
|
|
6
|
+
color: #080;
|
|
7
|
+
}
|
|
8
|
+
.kwd {
|
|
9
|
+
color: #008;
|
|
10
|
+
}
|
|
11
|
+
.com {
|
|
12
|
+
color: #800;
|
|
13
|
+
}
|
|
14
|
+
.typ {
|
|
15
|
+
color: #606;
|
|
16
|
+
}
|
|
17
|
+
.lit {
|
|
18
|
+
color: #066;
|
|
19
|
+
}
|
|
20
|
+
.pun,
|
|
21
|
+
.opn,
|
|
22
|
+
.clo {
|
|
23
|
+
color: #660;
|
|
24
|
+
}
|
|
25
|
+
.tag {
|
|
26
|
+
color: #008;
|
|
27
|
+
}
|
|
28
|
+
.atn {
|
|
29
|
+
color: #606;
|
|
30
|
+
}
|
|
31
|
+
.atv {
|
|
32
|
+
color: #080;
|
|
33
|
+
}
|
|
34
|
+
.dec,
|
|
35
|
+
.var {
|
|
36
|
+
color: #606;
|
|
37
|
+
}
|
|
38
|
+
.fun {
|
|
39
|
+
color: red;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
@media print, projection {
|
|
43
|
+
.str {
|
|
44
|
+
color: #060;
|
|
45
|
+
}
|
|
46
|
+
.kwd {
|
|
47
|
+
color: #006;
|
|
48
|
+
font-weight: bold;
|
|
49
|
+
}
|
|
50
|
+
.com {
|
|
51
|
+
color: #600;
|
|
52
|
+
font-style: italic;
|
|
53
|
+
}
|
|
54
|
+
.typ {
|
|
55
|
+
color: #404;
|
|
56
|
+
font-weight: bold;
|
|
57
|
+
}
|
|
58
|
+
.lit {
|
|
59
|
+
color: #044;
|
|
60
|
+
}
|
|
61
|
+
.pun,
|
|
62
|
+
.opn,
|
|
63
|
+
.clo {
|
|
64
|
+
color: #440;
|
|
65
|
+
}
|
|
66
|
+
.tag {
|
|
67
|
+
color: #006;
|
|
68
|
+
font-weight: bold;
|
|
69
|
+
}
|
|
70
|
+
.atn {
|
|
71
|
+
color: #404;
|
|
72
|
+
}
|
|
73
|
+
.atv {
|
|
74
|
+
color: #060;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
pre.prettyprint {
|
|
78
|
+
padding: 2px;
|
|
79
|
+
border: 1px solid #888;
|
|
80
|
+
}
|
|
81
|
+
ol.linenums {
|
|
82
|
+
margin-top: 0;
|
|
83
|
+
margin-bottom: 0;
|
|
84
|
+
}
|
|
85
|
+
li.L0,
|
|
86
|
+
li.L1,
|
|
87
|
+
li.L2,
|
|
88
|
+
li.L3,
|
|
89
|
+
li.L5,
|
|
90
|
+
li.L6,
|
|
91
|
+
li.L7,
|
|
92
|
+
li.L8 {
|
|
93
|
+
list-style-type: none;
|
|
94
|
+
}
|
|
95
|
+
li.L1,
|
|
96
|
+
li.L3,
|
|
97
|
+
li.L5,
|
|
98
|
+
li.L7,
|
|
99
|
+
li.L9 {
|
|
100
|
+
background: #eee;
|
|
101
|
+
}
|