test_worker_xhr_doubleSend.html (747B)
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 <head> 8 <title>Test for DOM Worker Threads XHR - double send</title> 9 <script src="/tests/SimpleTest/SimpleTest.js"></script> 10 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> 11 </head> 12 <body> 13 <script class="testbody" type="text/javascript"> 14 15 var worker = new Worker("xhr_worker_doubleSend.js"); 16 17 var gotUploadLoad = false, gotLoadend = false; 18 19 worker.onmessage = function(event) { 20 is(event.target, worker, "Target is the worker"); 21 is(event.data, "OK", "All good!"); 22 SimpleTest.finish(); 23 }; 24 25 SimpleTest.waitForExplicitFinish(); 26 27 </script> 28 </pre> 29 </body> 30 </html>