diff options
author | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
---|---|---|
committer | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
commit | 5f8de423f190bbb79a62f804151bc24824fa32d8 (patch) | |
tree | 10027f336435511475e392454359edea8e25895d /dom/asmjscache/test/test_slow.html | |
parent | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff) | |
download | UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip |
Add m-esr52 at 52.6.0
Diffstat (limited to 'dom/asmjscache/test/test_slow.html')
-rw-r--r-- | dom/asmjscache/test/test_slow.html | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/dom/asmjscache/test/test_slow.html b/dom/asmjscache/test/test_slow.html new file mode 100644 index 000000000..2f19041b3 --- /dev/null +++ b/dom/asmjscache/test/test_slow.html @@ -0,0 +1,48 @@ +<!DOCTYPE HTML> +<html> +<!-- +https://bugzilla.mozilla.org/show_bug.cgi?id=854209 +--> +<head> + <meta charset="utf-8"> + <title>asm.js browser tests</title> + <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script> + <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> +</head> +<body> + <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=854209">asm.js browser tests</a> + <p id="display"></p> + <div id="content" style="display: none"></div> + <pre id="test"></pre> + + <script> + var jsFuns = SpecialPowers.Cu.getJSTestingFunctions(); + + var completed = 0; + function complete() { + if (++completed == 2) + SimpleTest.finish(); + } + + if (!jsFuns.isAsmJSCompilationAvailable()) { + ok(true, "isAsmJSCompilationAvailable is false, skipping this test!"); + } else { + var script = document.createElement("script"); + script.src = "http://mochi.test:8888/tests/dom/asmjscache/test/file_slow.js"; + document.body.appendChild(script); + + var w = new Worker('http://mochi.test:8888/tests/dom/asmjscache/test/file_slow.js'); + w.onmessage = function(e) { + ok(e.data === "ok", "Worker asm.js tests"); + complete(); + } + + SimpleTest.waitForExplicitFinish(); + } + </script> + + <script> + </script> + +</body> +</html> |