test_bug1278777.html (764B)
1 <!DOCTYPE HTML> 2 <html> 3 <!-- 4 https://bugzilla.mozilla.org/show_bug.cgi?id=1278777 5 --> 6 <head> 7 <meta charset="utf-8"> 8 <title>Test for Bug 1278777</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 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1278777">Mozilla Bug 1278777</a> 14 <script type="application/javascript"> 15 16 SimpleTest.waitForExplicitFinish(); 17 18 var worker = new Worker('worker_bug1278777.js'); 19 worker.onerror = function() { 20 ok(false, "We should not see any error."); 21 SimpleTest.finish(); 22 } 23 24 worker.onmessage = function(e) { 25 ok(e.data, "Everything seems ok."); 26 SimpleTest.finish(); 27 } 28 29 </script> 30 </body> 31 </html>