2 Any copyright is dedicated to the Public Domain.
3 http://creativecommons.org/publicdomain/zero/1.0/
8 <title>Test for URLSearchParams object in workers
</title>
9 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
10 <link rel=
"stylesheet" type=
"text/css" href=
"/tests/SimpleTest/test.css" />
14 <div id=
"content" style=
"display: none"></div>
16 <script class=
"testbody" type=
"text/javascript">
18 var worker = new Worker(
"urlSearchParams_worker.js");
20 worker.onmessage = function(event) {
21 is(event.target, worker);
23 if (event.data.type ==
"finish") {
25 } else if (event.data.type ==
"status") {
26 ok(event.data.status, event.data.msg);
30 worker.onerror = function(event) {
31 is(event.target, worker);
32 ok(false,
"Worker had an error: " + event.message);
36 worker.postMessage(true);
38 SimpleTest.waitForExplicitFinish();