Index: LayoutTests/http/tests/websocket/tests/hybi/workers/resources/send-blob.js |
diff --git a/LayoutTests/http/tests/websocket/tests/hybi/workers/resources/send-blob.js b/LayoutTests/http/tests/websocket/tests/hybi/workers/resources/send-blob.js |
deleted file mode 100644 |
index 6c1cc1b61aad92b5c39e79c775bf4eef9a757c95..0000000000000000000000000000000000000000 |
--- a/LayoutTests/http/tests/websocket/tests/hybi/workers/resources/send-blob.js |
+++ /dev/null |
@@ -1,41 +0,0 @@ |
-function createBlobContainingHelloWorld() |
-{ |
- return new Blob(["Hello, world!"]); |
-} |
- |
-function createEmptyBlob() |
-{ |
- return new Blob([]); |
-} |
- |
-function createBlobContainingAllDistinctBytes() |
-{ |
- var array = new Uint8Array(256); |
- for (var i = 0; i < 256; ++i) |
- array[i] = i; |
- return new Blob([array]); |
-} |
- |
-var url = "ws://127.0.0.1:8880/workers/resources/check-binary-messages"; |
-var ws = new WebSocket(url); |
- |
-ws.onopen = function() |
-{ |
- ws.send(createBlobContainingHelloWorld()); |
- ws.send(createEmptyBlob()); |
- ws.send(createBlobContainingAllDistinctBytes()); |
-}; |
- |
-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"); |
-}; |