blob: 8002e07ce7f1cfea078329f0ed7a705eb830fdda (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
<!DOCTYPE html>
<title>Testing WebAssembly worker</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script type=module>
setup({ single_test: true });
const worker = new Worker("resources/worker.wasm", { type: "module" });
worker.onmessage = (msg) => {
assert_equals(msg, 42);
done();
}
</script>
|