Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(247)

Unified Diff: LayoutTests/http/tests/websocket/tests/hybi/send-blob-onmessage-origin.html

Issue 101143002: Remove hybi sub directory for WebSocket layout tests (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: LayoutTests/http/tests/websocket/tests/hybi/send-blob-onmessage-origin.html
diff --git a/LayoutTests/http/tests/websocket/tests/hybi/send-blob-onmessage-origin.html b/LayoutTests/http/tests/websocket/tests/hybi/send-blob-onmessage-origin.html
deleted file mode 100644
index 09c34392f4167baebdfa3f58c5e52699827d4177..0000000000000000000000000000000000000000
--- a/LayoutTests/http/tests/websocket/tests/hybi/send-blob-onmessage-origin.html
+++ /dev/null
@@ -1,68 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<script src="/js-test-resources/js-test.js"></script>
-</head>
-<body>
-<script>
-description("WebSocket message event origin attribute test (Blob message)");
-
-window.jsTestIsAsync = true;
-var data = "";
-var origin = "";
-
-function startsWith(target, prefix)
-{
- return target.indexOf(prefix) === 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/check-binary-messages";
-var ws = new WebSocket(url);
-var closeEvent;
-
-ws.onopen = function()
-{
- ws.send(createBlobContainingHelloWorld());
- ws.send(createEmptyBlob());
- ws.send(createBlobContainingAllDistinctBytes());
-};
-
-ws.onmessage = function(event)
-{
- var message = event.data;
- if (startsWith(message, "PASS"))
- testPassed(message);
- else
- testFailed(message);
- origin = event.origin;
- shouldBeEqualToString("origin", "ws://127.0.0.1:8880");
-};
-
-ws.onclose = function(event)
-{
- closeEvent = event;
- shouldBeTrue("closeEvent.wasClean");
- finishJSTest();
-};
-
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698