dom/workers/test/test_instanceof.html

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     1 <!--
     2   Any copyright is dedicated to the Public Domain.
     3   http://creativecommons.org/publicdomain/zero/1.0/
     4 -->
     5 <!DOCTYPE HTML>
     6 <html>
     7 <!--
     8 Tests of DOM Worker JSON messages
     9 -->
    10 <head>
    11   <title>Test for DOM Worker Navigator</title>
    12   <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
    13   <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
    14 </head>
    15 <body>
    16 <p id="display"></p>
    17 <div id="content" style="display: none">
    19 </div>
    20 <pre id="test">
    21 <script src="json_worker.js" language="javascript"></script>
    22 <script class="testbody" language="javascript">
    24   var worker = new Worker("instanceof_worker.js");
    26   worker.onmessage = function(event) {
    27     ok(event.data.status, event.data.event);
    29     if (event.data.last)
    30       SimpleTest.finish();
    31   };
    33   worker.postMessage(42);
    35   SimpleTest.waitForExplicitFinish();
    37 </script>
    38 </pre>
    39 </body>
    40 </html>

mercurial