Index: third_party/WebKit/LayoutTests/inspector-protocol/debugger/debugger-step-into-dedicated-worker.html |
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/debugger/debugger-step-into-dedicated-worker.html b/third_party/WebKit/LayoutTests/inspector-protocol/debugger/debugger-step-into-dedicated-worker.html |
deleted file mode 100644 |
index 6822980e32e778575da0fd1d3ddc5f949978694e..0000000000000000000000000000000000000000 |
--- a/third_party/WebKit/LayoutTests/inspector-protocol/debugger/debugger-step-into-dedicated-worker.html |
+++ /dev/null |
@@ -1,73 +0,0 @@ |
-<html> |
-<head> |
-<script type="text/javascript" src="../../http/tests/inspector-protocol/resources/inspector-protocol-test.js"></script> |
-<script> |
-var worker; |
- |
-function startWorker() |
-{ |
- worker = new Worker("resources/dedicated-worker-step-into.js"); |
- worker.onmessage = function(event) { }; |
- worker.postMessage(1); |
- log("Started worker"); |
-} |
- |
- |
-function test() |
-{ |
- |
- var workerId; |
- var workerRequestId = 1; |
- function sendCommandToWorker(method, params) |
- { |
- InspectorTest.sendCommand("Target.sendMessageToTarget", |
- { |
- "targetId": workerId, |
- "message": JSON.stringify({ "method": method, |
- "params": params, |
- "id": workerRequestId++ }) |
- }); |
- } |
- |
- function didEnableWorkerDebugging(messageObject) |
- { |
- if ("error" in messageObject) { |
- InspectorTest.log("FAIL: Couldn't enable worker debugger: " + messageObject.error.message); |
- InspectorTest.completeTest(); |
- } |
- } |
- InspectorTest.sendCommand("Target.setAutoAttach", {autoAttach: true, waitForDebuggerOnStart: true}, didEnableWorkerDebugging); |
- InspectorTest.sendCommand("Runtime.evaluate", { "expression": "startWorker()" }); |
- |
- InspectorTest.eventHandler["Target.attachedToTarget"] = function(messageObject) |
- { |
- workerId = messageObject["params"]["targetInfo"]["targetId"]; |
- InspectorTest.log("Worker created"); |
- sendCommandToWorker("Debugger.enable", {}); |
- sendCommandToWorker("Runtime.runIfWaitingForDebugger", {}); |
- } |
- |
- var pauseCount = 0; |
- InspectorTest.eventHandler["Target.receivedMessageFromTarget"] = function(messageObject) |
- { |
- var message = JSON.parse(messageObject["params"]["message"]); |
- if (message["method"] === "Debugger.paused") { |
- InspectorTest.log("SUCCESS: Worker paused"); |
- if (++pauseCount === 1) { |
- InspectorTest.log("Stepping into..."); |
- sendCommandToWorker("Debugger.stepInto", {}); |
- } else { |
- sendCommandToWorker("Debugger.disable", {}); |
- InspectorTest.completeTest(); |
- } |
- } |
- } |
- |
-} |
-</script> |
-</head> |
-<body onLoad="runTest();"> |
-<p>Tests that dedicated worker won't crash on attempt to step into.<a href="https://code.google.com/p/chromium/issues/detail?id=232392">Bug 232392.</a> |
-</p> |
-</body> |
-</html> |