dom/asmjscache/test/test_slow.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 <!DOCTYPE HTML>
     2 <html>
     3 <!--
     4 https://bugzilla.mozilla.org/show_bug.cgi?id=854209
     5 -->
     6 <head>
     7   <meta charset="utf-8">
     8   <title>asm.js browser tests</title>
     9   <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
    10   <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
    11 </head>
    12 <body>
    13   <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=854209">asm.js browser tests</a>
    14   <p id="display"></p>
    15   <div id="content" style="display: none"></div>
    16   <pre id="test"></pre>
    18   <script>
    19   var jsFuns = SpecialPowers.Cu.getJSTestingFunctions();
    20   ok(jsFuns.isAsmJSCompilationAvailable(), "asm.js compilation is available");
    21   </script>
    23   <script src="http://mochi.test:8888/tests/dom/asmjscache/test/file_slow.js"></script>
    25   <script>
    26   var w = new Worker('http://mochi.test:8888/tests/dom/asmjscache/test/file_slow.js');
    27   w.onmessage = function(e) {
    28       ok(e.data === "ok", "Worker asm.js tests");
    29       SimpleTest.finish();
    30   }
    32   SimpleTest.waitForExplicitFinish();
    33   </script>
    35 </body>
    36 </html>

mercurial