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

Unified Diff: LayoutTests/http/tests/inspector/websocket/web-socket-frame.html

Issue 130863002: [WebSocket] Merge duplicated HTTP headers for devtools (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed a platform dependent test Created 6 years, 11 months 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
« no previous file with comments | « no previous file | LayoutTests/http/tests/inspector/websocket/web-socket-frame-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/http/tests/inspector/websocket/web-socket-frame.html
diff --git a/LayoutTests/http/tests/inspector/websocket/web-socket-frame.html b/LayoutTests/http/tests/inspector/websocket/web-socket-frame.html
deleted file mode 100644
index 4845e32cbdf3aa97357bd504bd6691f1d8ce9b40..0000000000000000000000000000000000000000
--- a/LayoutTests/http/tests/inspector/websocket/web-socket-frame.html
+++ /dev/null
@@ -1,39 +0,0 @@
-<html>
-<head>
-<script src="../inspector-test.js"></script>
-<script src="/js-test-resources/js-test.js"></script>
-<script>
-var ws;
-function sendMessages() {
- ws = new WebSocket("ws://localhost:8880/echo");
- ws.onopen = function()
- {
- debug("Connected.");
- ws.send("test");
- ws.send("exit");
- };
-}
-
-function test() {
- function onRequest(event)
- {
- var request = event.data;
- if (request._type._name === "websocket") {
- for (var i = 0; i < request.frames().length; i++) {
- var frame = request.frame(i);
- var result = String.sprintf("%d-%s: %s", (i + 1), frame.sent ? " sent" : " received", frame.payloadData);
- InspectorTest.addResult(result);
- if (!frame.sent && frame.payloadData === "exit")
- InspectorTest.completeTest();
- }
- }
- }
- WebInspector.networkManager.addEventListener(WebInspector.NetworkManager.EventTypes.RequestUpdated, onRequest);
- InspectorTest.evaluateInPage("sendMessages()");
-}
-</script>
-</head>
-<body onload="runTest()">
-<p>Tests that WebSocketFrames are being sent and recieved by Web Inspector.</p>
-</body>
-</html>
« no previous file with comments | « no previous file | LayoutTests/http/tests/inspector/websocket/web-socket-frame-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698