test_bug1300552.html (673B)
1 <!DOCTYPE HTML> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>Test for Bug 1300552</title> 6 <script src="/tests/SimpleTest/SimpleTest.js"></script> 7 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/> 8 </head> 9 <body> 10 <script type="application/javascript"> 11 12 var w = new Worker('worker_bug1300552.js'); 13 w.onmessage = function(e) { 14 if (e.data.type == 'info') { 15 info(e.data.msg); 16 } else if (e.data.type == 'check') { 17 ok(e.data.what, e.data.msg); 18 } else if (e.data.type == 'finish') { 19 SimpleTest.finish(); 20 } else { 21 ok(false, 'Something wrong happened'); 22 } 23 } 24 25 SimpleTest.waitForExplicitFinish(); 26 27 </script> 28 </body> 29 </html>