OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE HTML> | |
2 <html> | |
3 <head> | |
4 <script src="/js-test-resources/testharness.js"></script> | |
5 <script src="/js-test-resources/testharnessreport.js"></script> | |
6 <script type="text/javascript"> | |
7 | |
8 var test = async_test("Test that an error is shown on the console when close() i s called on a WebSocket synchronously right after it's constructed."); | |
9 test.step(function() | |
10 { | |
11 var worker = new Worker("resources/close-before-open.js"); | |
12 worker.onmessage = test.step_func(function(evt) | |
13 { | |
14 assert_equals(evt.data, "DONE", "evt.data"); | |
15 test.done(); | |
16 }); | |
17 }); | |
18 | |
19 </script> | |
20 </head> | |
21 <body> | |
22 </body> | |
23 </html> | |
OLD | NEW |