JS Test Harness: Remove successfullyParsed from more tests
[WebKit-https.git] / LayoutTests / http / tests / websocket / tests / hybi / workers / receive-arraybuffer.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../../../../js-test-resources/js-test-pre.js"></script>
5 </head>
6 <body>
7 <div id="description"></div>
8 <div id="console"></div>
9 <script type="text/javascript">
10 description("WebSocket: Receive ArrayBuffers in Web Workers.");
11
12 window.jsTestIsAsync = true;
13 if (window.layoutTestController)
14     layoutTestController.overridePreference("WebKitHixie76WebSocketProtocolEnabled", 0);
15
16 function startsWith(str, prefix)
17 {
18     return str.indexOf(prefix) == 0;
19 }
20
21 var worker = new Worker("resources/receive-arraybuffer.js");
22 worker.onmessage = function (event)
23 {
24     var message = event.data;
25     if (startsWith(message, "PASS"))
26         testPassed(message);
27     else if (startsWith(message, "FAIL"))
28         testFailed(message)
29     else
30         debug(message);
31     if (message === "DONE")
32         finishJSTest();
33 };
34
35 </script>
36 <script src="../../../../../js-test-resources/js-test-post.js"></script>
37 </body>
38 </html>