| Index: third_party/WebKit/LayoutTests/inspector-protocol/debugger/debugger-terminate-dedicated-worker-while-paused.html
|
| diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/debugger/debugger-terminate-dedicated-worker-while-paused.html b/third_party/WebKit/LayoutTests/inspector-protocol/debugger/debugger-terminate-dedicated-worker-while-paused.html
|
| index d5f83d469b68e7a49a6c752939633d0af1376774..14503679a91e966f8676c6f1a5a6d33cc7905092 100644
|
| --- a/third_party/WebKit/LayoutTests/inspector-protocol/debugger/debugger-terminate-dedicated-worker-while-paused.html
|
| +++ b/third_party/WebKit/LayoutTests/inspector-protocol/debugger/debugger-terminate-dedicated-worker-while-paused.html
|
| @@ -23,9 +23,9 @@ function test()
|
| var workerRequestId = 1;
|
| function sendCommandToWorker(method, params)
|
| {
|
| - InspectorTest.sendCommand("Worker.sendMessageToWorker",
|
| + InspectorTest.sendCommand("Target.sendMessageToTarget",
|
| {
|
| - "workerId": workerId,
|
| + "targetId": workerId,
|
| "message": JSON.stringify({ "method": method,
|
| "params": params,
|
| "id": workerRequestId++ })
|
| @@ -39,24 +39,19 @@ function test()
|
| InspectorTest.completeTest();
|
| }
|
| }
|
| - InspectorTest.sendCommand("Worker.enable", {}, didEnableWorkerDebugging);
|
| + InspectorTest.sendCommand("Target.setAutoAttach", {autoAttach: true, waitForDebuggerOnStart: false}, didEnableWorkerDebugging);
|
|
|
|
|
| - InspectorTest.eventHandler["Worker.workerCreated"] = function(messageObject)
|
| + InspectorTest.eventHandler["Target.attachedToTarget"] = function(messageObject)
|
| {
|
| - workerId = messageObject["params"]["workerId"];
|
| + workerId = messageObject["params"]["targetInfo"]["targetId"];
|
| InspectorTest.log("Worker created");
|
| - InspectorTest.sendCommand("Worker.connectToWorker", { "workerId": workerId }, didConnectToWorker);
|
| -
|
| - function didConnectToWorker(messageObject)
|
| - {
|
| - InspectorTest.log("didConnectToWorker");
|
| - sendCommandToWorker("Debugger.enable", {});
|
| - sendCommandToWorker("Debugger.pause", {});
|
| - }
|
| + InspectorTest.log("didConnectToWorker");
|
| + sendCommandToWorker("Debugger.enable", {});
|
| + sendCommandToWorker("Debugger.pause", {});
|
| }
|
|
|
| - InspectorTest.eventHandler["Worker.dispatchMessageFromWorker"] = function(messageObject)
|
| + InspectorTest.eventHandler["Target.receivedMessageFromTarget"] = function(messageObject)
|
| {
|
| var message = JSON.parse(messageObject["params"]["message"]);
|
| if (message["method"] === "Debugger.paused") {
|
|
|