5 <title>Test class static fields
</title>
6 <script src=
"/tests/SimpleTest/SimpleTest.js"></script>
7 <script type=
"application/javascript">
8 // Make sure static classes parse in regular context too:
10 static { this.x =
12; }
12 is(B.x,
12,
"static block set class value");
13 console.log(
"script");
15 SimpleTest.waitForExplicitFinish();
17 let worker = new Worker('class_static_worker.js');
19 console.log(
"message")
20 worker.onmessage = function(e) {
22 is(e.data,
12,
"correctly allocated class-static containing-class in worker");
25 worker.postMessage(
"get");
26 info(
"Messages posted");