Bug 1776680 [wpt PR 34603] - [@container] Test invalidation of font-relative units...
[gecko.git] / dom / events / test / test_bug1003432.html
blobd74aefb886acafc39ac63d717285cf74593ff351
1 <!DOCTYPE HTML>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=1003432
5 -->
6 <head>
7 <title>Test for Bug 1003432</title>
8 <script src="/tests/SimpleTest/SimpleTest.js"></script>
9 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
10 </head>
11 <body>
12 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1003432">Mozilla Bug 1003432</a>
13 <p id="display"></p>
14 <div id="content" style="display: none">
16 </div>
17 <pre id="test">
18 <script type="application/javascript">
20 /** Test for Bug 1003432 **/
21 // Test CustomEvent on worker
22 SimpleTest.waitForExplicitFinish();
23 var worker = new Worker("test_bug1003432.js");
24 ok(worker, "Should have worker!");
26 var count = 0;
27 worker.onmessage = function(evt) {
28 is(evt.data.type, "foobar", "Should get 'foobar' event!");
29 is(evt.data.detail, "test", "Detail should be 'test'.");
30 ok(evt.data.bubbles, "Event should bubble!");
31 ok(evt.data.cancelable, "Event should be cancelable.");
33 // wait for test results of constructor and initCustomEvent
34 if (++count == 2) {
35 worker.terminate();
36 SimpleTest.finish();
40 worker.postMessage("");
42 </script>
43 </pre>
44 </body>
45 </html>