2 Any copyright is dedicated to the Public Domain.
3 http://creativecommons.org/publicdomain/zero/1.0/
8 <title>Test for MessagePort and SharedWorkers
</title>
9 <meta http-equiv=
"content-type" content=
"text/html; charset=UTF-8">
10 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
13 <script class=
"testbody" type=
"text/javascript">
17 var sw = new SharedWorker('sharedWorker_lifetime.js');
18 sw.port.onmessage = function(event) {
19 ok(gced,
"The SW is still alive also after GC");
24 SpecialPowers.forceGC();
27 SimpleTest.waitForExplicitFinish();