2013-05-03 14:45:07 -07:00
|
|
|
<!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>
|
2013-10-22 14:16:09 -07:00
|
|
|
<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>
|
2013-05-03 14:45:07 -07:00
|
|
|
|
2013-10-22 14:16:09 -07:00
|
|
|
<script>
|
|
|
|
var jsFuns = SpecialPowers.Cu.getJSTestingFunctions();
|
|
|
|
ok(jsFuns.isAsmJSCompilationAvailable());
|
|
|
|
</script>
|
2013-05-03 14:45:07 -07:00
|
|
|
|
2013-10-22 14:16:09 -07:00
|
|
|
<script src="http://mochi.test:8888/tests/js/xpconnect/tests/mochitest/file_asmjs.js"></script>
|
2013-05-03 14:45:07 -07:00
|
|
|
|
2013-10-22 14:16:09 -07:00
|
|
|
<script>
|
|
|
|
var w = new Worker('http://mochi.test:8888/tests/js/xpconnect/tests/mochitest/file_asmjs.js');
|
|
|
|
w.onmessage = function(e) {
|
|
|
|
ok(e.data === "ok", "Worker asm.js tests");
|
|
|
|
SimpleTest.finish();
|
|
|
|
}
|
2013-05-03 14:45:07 -07:00
|
|
|
|
2013-10-22 14:16:09 -07:00
|
|
|
SimpleTest.waitForExplicitFinish();
|
|
|
|
</script>
|
2013-05-07 16:47:18 -07:00
|
|
|
|
2013-05-03 14:45:07 -07:00
|
|
|
</body>
|
|
|
|
</html>
|