|
1 <!DOCTYPE HTML> |
|
2 <html> |
|
3 <!-- |
|
4 https://bugzilla.mozilla.org/show_bug.cgi?id=1027221 |
|
5 --> |
|
6 <head> |
|
7 <meta charset="utf-8"> |
|
8 <title>Test for Bug 1027221</title> |
|
9 <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> |
|
10 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> |
|
11 <script type="application/javascript"> |
|
12 |
|
13 /** Test for Bug 1027221 **/ |
|
14 // Set up a permanent atom |
|
15 SimpleTest.waitForExplicitFinish(); |
|
16 var x = "x"; |
|
17 // Trigger some incremental gc |
|
18 SpecialPowers.Cu.getJSTestingFunctions().gcslice(0); |
|
19 |
|
20 // Kick off a worker that uses this same atom |
|
21 var w = new Worker("data:text/plain,Promise.resolve('x').then(function() { postMessage(1); });"); |
|
22 // Maybe trigger some more incremental gc |
|
23 SpecialPowers.Cu.getJSTestingFunctions().gcslice(0); |
|
24 |
|
25 w.onmessage = function() { |
|
26 ok(true, "Got here"); |
|
27 SimpleTest.finish(); |
|
28 }; |
|
29 |
|
30 </script> |
|
31 </head> |
|
32 <body> |
|
33 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1027221">Mozilla Bug 1027221</a> |
|
34 <p id="display"></p> |
|
35 <div id="content" style="display: none"> |
|
36 |
|
37 </div> |
|
38 <pre id="test"> |
|
39 </pre> |
|
40 </body> |
|
41 </html> |