Index: LayoutTests/http/tests/websocket/tests/hybi/workers/resources/send-arraybuffer.js |
diff --git a/LayoutTests/http/tests/websocket/tests/hybi/workers/resources/send-arraybuffer.js b/LayoutTests/http/tests/websocket/tests/hybi/workers/resources/send-arraybuffer.js |
deleted file mode 100644 |
index ac1bd8ab9fc324da75be3b3e84c2c0ecffa79256..0000000000000000000000000000000000000000 |
--- a/LayoutTests/http/tests/websocket/tests/hybi/workers/resources/send-arraybuffer.js |
+++ /dev/null |
@@ -1,45 +0,0 @@ |
-function createArrayBufferContainingHelloWorld() |
-{ |
- var hello = "Hello, world!"; |
- var array = new Uint8Array(hello.length); |
- for (var i = 0; i < hello.length; ++i) |
- array[i] = hello.charCodeAt(i); |
- return array.buffer; |
-} |
- |
-function createEmptyArrayBuffer() |
-{ |
- return new ArrayBuffer(0); |
-} |
- |
-function createArrayBufferContainingAllDistinctBytes() |
-{ |
- var array = new Uint8Array(256); |
- for (var i = 0; i < 256; ++i) |
- array[i] = i; |
- return array.buffer; |
-} |
- |
-var url = "ws://127.0.0.1:8880/workers/resources/check-binary-messages"; |
-var ws = new WebSocket(url); |
- |
-ws.onopen = function() |
-{ |
- ws.send(createArrayBufferContainingHelloWorld()); |
- ws.send(createEmptyArrayBuffer()); |
- ws.send(createArrayBufferContainingAllDistinctBytes()); |
-}; |
- |
-ws.onmessage = function(event) |
-{ |
- postMessage(event.data); |
-}; |
- |
-ws.onclose = function(closeEvent) |
-{ |
- if (closeEvent.wasClean === true) |
- postMessage("PASS: closeEvent.wasClean is true."); |
- else |
- postMessage("FAIL: closeEvent.wasClean should be true, but was: " + closeEvent.wasClean); |
- postMessage("DONE"); |
-}; |