blob: e9c55b10095d11e15de86af9caa9667f208619bf (
plain)
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
|
function feedback() {
postMessage({
type: "feedback",
msg:
"executing test: " +
(current_test + 1) +
" of " +
tests.length +
" tests.",
});
}
function ok(status, msg) {
postMessage({ type: "status", status: !!status, msg });
}
function is(a, b, msg) {
ok(a === b, msg);
}
function isnot(a, b, msg) {
ok(a != b, msg);
}
function finish() {
postMessage({ type: "finish" });
}
|