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

Unified Diff: LayoutTests/http/tests/websocket/tests/hybi/close-on-unload-reference-in-parent.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/close-on-unload-reference-in-parent.html
diff --git a/LayoutTests/http/tests/websocket/tests/hybi/close-on-unload-reference-in-parent.html b/LayoutTests/http/tests/websocket/tests/hybi/close-on-unload-reference-in-parent.html
deleted file mode 100644
index 5e7ddfd80e05e651832e79f136a421a0784c8ccc..0000000000000000000000000000000000000000
--- a/LayoutTests/http/tests/websocket/tests/hybi/close-on-unload-reference-in-parent.html
+++ /dev/null
@@ -1,52 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
-<html>
-<head>
-<script src="/js-test-resources/js-test.js"></script>
-</head>
-<body>
-<div id="description"></div>
-<div id="console"></div>
-<script type="text/javascript">
-description("Test that WebSocket opened in iframe is closed when the iframe is unloaded even if the WebSocket is referred by the parent frame.");
-
-window.jsTestIsAsync = true;
-
-var frameDiv;
-var closedSocket;
-var closeCode;
-document.childWebSocket = null;
-
-var ws = new WebSocket("ws://127.0.0.1:8880/close-on-unload");
-ws.onopen = function()
-{
- debug("PASS ws on master document is ready.");
- frameDiv = document.createElement("iframe");
- frameDiv.src = "resources/close-on-unload-iframe-reference-in-parent.html";
- document.body.appendChild(frameDiv);
- debug("PASS insert a iframe, where open ws called 'socket1'");
-};
-ws.onmessage = function(evt)
-{
- var messageData = JSON.parse(evt.data);
- closedSocket = messageData.message;
- closeCode = messageData.closeCode;
- ws.close();
-};
-ws.onclose = function()
-{
- shouldBe("closedSocket", '"socket1"');
- shouldBe("closeCode", '"1001"');
- shouldBe("document.childWebSocket.readyState", "3");
- finishJSTest();
-};
-
-document.iframeReady = function()
-{
- shouldBeNonNull("document.childWebSocket");
- debug("PASS 'socket1' is sent to the server. unload the iframe. expect receiving 'socket1' on ws...");
- document.body.removeChild(frameDiv);
-};
-
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698