dom/xhr/tests/test_worker_xhr2.html
author moz-wptsync-bot <wptsync@mozilla.com>
Mon, 16 Apr 2018 18:38:41 +0000
changeset 1486024 3a644abd5eaa108f67471c0aae4fb4a424ea41bf
parent 788483 55a63a62c0dd798ba7ea9c5ab08d49a48588a0d4
child 1702735 dd3558a8f7ae3211ac8a9ad5f87196d6a00e7a95
child 1950293 c01a4a3db245ee68350ffc7452652b24628eeb1a
child 1956438 d21b163ecec8705dd2097069bf25639a790dbdc0
child 1957860 9cf37a1eedc110deeae12043409d09f6a2c15815
permissions -rw-r--r--
Bug 1454380 [wpt PR 8508] - Update wpt metadata, a=testonly wpt-pr: 8508 wpt-type: metadata

<!--
  Any copyright is dedicated to the Public Domain.
  http://creativecommons.org/publicdomain/zero/1.0/
-->
<!DOCTYPE HTML>
<html>
<!--
Tests of DOM Worker Threads XHR(Bug 450452 )
-->
<head>
  <title>Test for DOM Worker Threads XHR (Bug 450452 )</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=450452">DOM Worker Threads XHR (Bug 450452)</a>
<p id="display"></p>
<div id="content" style="display: none">

</div>
<pre id="test">
<script class="testbody" type="text/javascript">

  var worker = new Worker("xhr2_worker.js");

  worker.onmessage = function(event) {
    is(event.data, "done", "Got correct result");
    SimpleTest.finish();
  }
  worker.postMessage("worker_testXHR.txt");

  SimpleTest.waitForExplicitFinish();

</script>
</pre>
</body>
</html>