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

Unified Diff: third_party/WebKit/LayoutTests/inspector-protocol/network/websocket/initiator.html

Issue 2102003002: Revert of [Devtools] Fixed websocket initiators (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 | third_party/WebKit/LayoutTests/inspector-protocol/network/websocket/initiator-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/inspector-protocol/network/websocket/initiator.html
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/network/websocket/initiator.html b/third_party/WebKit/LayoutTests/inspector-protocol/network/websocket/initiator.html
deleted file mode 100644
index afda53004ab27c971728c191fec23c1ad6faaa3b..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/inspector-protocol/network/websocket/initiator.html
+++ /dev/null
@@ -1,67 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<script src="../../../http/tests/inspector-protocol/inspector-protocol-test.js"></script>
-<script>
-var ws;
-function createSocket()
-{
- ws = new WebSocket("ws://localhost:8080/echo");
-}
-
-function test()
-{
- InspectorTest.eventHandler["Network.webSocketCreated"] = onWebSocketCreated;
-
- function enableNetwork()
- {
- InspectorTest.log("Test started");
- InspectorTest.sendCommand("Network.enable", {}, didEnableNetwork);
- }
-
- function didEnableNetwork(messageObject)
- {
- if (messageObject.error) {
- InspectorTest.log("FAIL: Couldn't enable network agent" + messageObject.error.message);
- InspectorTest.completeTest();
- return;
- }
- InspectorTest.log("Network agent enabled");
- InspectorTest.sendCommand("Runtime.evaluate", { "expression": "createSocket()"});
- }
-
- function onWebSocketCreated(event)
- {
- var initiator = event.params.initiator;
- InspectorTest.log("");
- InspectorTest.log("Initiator Type: " + initiator.type);
- var stackTrace = initiator.stack;
- for (var i = 0; i < stackTrace.callFrames.length; ++i) {
- var frame = stackTrace.callFrames[i];
- InspectorTest.log("Stack #" + i);
- if (frame.lineNumber) {
- InspectorTest.log(" functionName: " + frame.functionName);
- InspectorTest.log(" url: " + cleanUrl(frame.url));
- InspectorTest.log(" lineNumber: " + frame.lineNumber);
-
- break;
- }
- }
- InspectorTest.completeTest();
- }
-
- function cleanUrl(url)
- {
- url = url.match(/\/[^\/]+$/);
- if (url.length)
- return url[0].substr(1);
- return url;
- }
-
- enableNetwork();
-}
-</script>
-</head>
-<body onload="runTest();">
-<p>Initiator for Websockets check fixes http://crbug.com/457811</p>
-</body>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector-protocol/network/websocket/initiator-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698