Backed out changeset 713114c0331a (bug 1938707) by developer request CLOSED TREE
[gecko.git] / js / xpconnect / tests / mochitest / test_private_field_worker.html
blob68351000c5ca1ba8c2d578a211fe2fad18336909
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <title>Test Private Fields</title>
6 <script src="/tests/SimpleTest/SimpleTest.js"></script>
7 <script type="application/javascript">
8 function go() {
9 SimpleTest.waitForExplicitFinish();
11 let worker = new Worker('private_field_worker.js');
13 var allocated = 0;
14 worker.onmessage = function(e) {
15 is(e.data, allocated, "correctly allocated private field-containing-class");
16 SimpleTest.finish();
19 worker.postMessage("allocate"); allocated++;
20 worker.postMessage("count");
21 info("Messages posted");
23 go();
24 </script>
25 </head>
27 </html>