2 Any copyright is dedicated to the Public Domain.
3 http://creativecommons.org/publicdomain/zero/1.0/
8 <title>Test for bug
911085</title>
9 <script type=
"text/javascript" src=
"/tests/SimpleTest/SimpleTest.js"></script>
10 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css" />
13 <script class=
"testbody" type=
"text/javascript">
15 var worker = new Worker(
"rvals_worker.js");
17 worker.onmessage = function(event) {
18 if (event.data == 'ignore') return;
20 if (event.data == 'finished') {
21 is(worker.terminate(), undefined,
"Terminate() returns 'undefined'");
26 ok(event.data,
"something good returns 'undefined' in workers");
29 is(worker.postMessage(
42), undefined,
"PostMessage() returns 'undefined' on main thread");
30 SimpleTest.waitForExplicitFinish();