| Index: third_party/WebKit/LayoutTests/inspector-protocol/debugger/debugger-pause-dedicated-worker.html
|
| diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/debugger/debugger-pause-dedicated-worker.html b/third_party/WebKit/LayoutTests/inspector-protocol/debugger/debugger-pause-dedicated-worker.html
|
| deleted file mode 100644
|
| index 1d33b8d72041bd9f8d090b4e0390e0556248a21c..0000000000000000000000000000000000000000
|
| --- a/third_party/WebKit/LayoutTests/inspector-protocol/debugger/debugger-pause-dedicated-worker.html
|
| +++ /dev/null
|
| @@ -1,69 +0,0 @@
|
| -<html>
|
| -<head>
|
| -<script type="text/javascript" src="../../http/tests/inspector-protocol/resources/inspector-protocol-test.js"></script>
|
| -<script>
|
| -
|
| -
|
| -var worker;
|
| -
|
| -function startWorkerAndRunTest()
|
| -{
|
| - worker = new Worker("resources/dedicated-worker.js");
|
| - worker.onmessage = function(event) { };
|
| - worker.postMessage(1);
|
| - log("Started worker");
|
| - runTest();
|
| -}
|
| -
|
| -
|
| -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: false}, didEnableWorkerDebugging);
|
| -
|
| -
|
| - InspectorTest.eventHandler["Target.attachedToTarget"] = function(messageObject)
|
| - {
|
| - workerId = messageObject["params"]["targetInfo"]["targetId"];
|
| - InspectorTest.log("Worker created");
|
| - InspectorTest.log("didConnectToWorker");
|
| - sendCommandToWorker("Debugger.enable", {});
|
| - sendCommandToWorker("Debugger.pause", {});
|
| - }
|
| -
|
| - InspectorTest.eventHandler["Target.receivedMessageFromTarget"] = function(messageObject)
|
| - {
|
| - var message = JSON.parse(messageObject["params"]["message"]);
|
| - if (message["method"] === "Debugger.paused") {
|
| - InspectorTest.log("SUCCESS: Worker paused");
|
| - sendCommandToWorker("Debugger.disable", {});
|
| - InspectorTest.completeTest();
|
| - }
|
| - }
|
| -
|
| -}
|
| -</script>
|
| -</head>
|
| -<body onLoad="startWorkerAndRunTest();">
|
| -</body>
|
| -</html>
|
|
|