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> |