| Index: third_party/WebKit/LayoutTests/inspector-protocol/debugger/debugger-setTimeout-sourceUrl-dedicated-worker-loop.html
|
| diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/debugger/debugger-setTimeout-sourceUrl-dedicated-worker-loop.html b/third_party/WebKit/LayoutTests/inspector-protocol/debugger/debugger-setTimeout-sourceUrl-dedicated-worker-loop.html
|
| index 97055e39fc39a19f8352ac63d0f988b783b9a4d9..51abca252413565a4eb4b2692c62f8d1c3094d4d 100644
|
| --- a/third_party/WebKit/LayoutTests/inspector-protocol/debugger/debugger-setTimeout-sourceUrl-dedicated-worker-loop.html
|
| +++ b/third_party/WebKit/LayoutTests/inspector-protocol/debugger/debugger-setTimeout-sourceUrl-dedicated-worker-loop.html
|
| @@ -17,9 +17,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 })
|
| @@ -34,25 +34,20 @@ function test()
|
| InspectorTest.completeTest();
|
| }
|
| }
|
| - InspectorTest.sendCommand("Worker.enable", {}, didEnableWorkerDebugging);
|
| + InspectorTest.sendCommand("Target.setAutoAttach", {autoAttach: true, waitForDebuggerOnStart: false}, didEnableWorkerDebugging);
|
|
|
| var debuggerEnableRequestId = -1;
|
| - 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");
|
| - debuggerEnableRequestId = sendCommandToWorker("Debugger.enable", {});
|
| - }
|
| + InspectorTest.log("didConnectToWorker");
|
| + debuggerEnableRequestId = sendCommandToWorker("Debugger.enable", {});
|
| }
|
|
|
| var postMessageToWorker = false;
|
|
|
| - InspectorTest.eventHandler["Worker.dispatchMessageFromWorker"] = function(messageObject)
|
| + InspectorTest.eventHandler["Target.receivedMessageFromTarget"] = function(messageObject)
|
| {
|
| var message = JSON.parse(messageObject["params"]["message"]);
|
| if (message["id"] === debuggerEnableRequestId) {
|
|
|