| Index: third_party/WebKit/LayoutTests/inspector-protocol/worker/exception-from-worker-contains-stack.html
|
| diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/worker/exception-from-worker-contains-stack.html b/third_party/WebKit/LayoutTests/inspector-protocol/worker/exception-from-worker-contains-stack.html
|
| index 726c3a3345daf8829074d984d15d7b8ca944fddf..6d693e44e91820a04052b7921c7e82083a98a9d6 100644
|
| --- a/third_party/WebKit/LayoutTests/inspector-protocol/worker/exception-from-worker-contains-stack.html
|
| +++ b/third_party/WebKit/LayoutTests/inspector-protocol/worker/exception-from-worker-contains-stack.html
|
| @@ -18,7 +18,7 @@ function startWorkers()
|
|
|
| function test()
|
| {
|
| - InspectorTest.sendCommandOrDie("Worker.enable", {}, didEnableWorkerDebugging);
|
| + InspectorTest.sendCommandOrDie("Target.setAutoAttach", {autoAttach: true, waitForDebuggerOnStart: false}, didEnableWorkerDebugging);
|
|
|
| function didEnableWorkerDebugging(event)
|
| {
|
| @@ -28,9 +28,9 @@ function test()
|
| var workerRequestId = 1;
|
| function sendCommandToWorker(method, params, workerId)
|
| {
|
| - InspectorTest.sendCommand("Worker.sendMessageToWorker",
|
| + InspectorTest.sendCommand("Target.sendMessageToTarget",
|
| {
|
| - "workerId": workerId,
|
| + "targetId": workerId,
|
| "message": JSON.stringify({ "method": method,
|
| "params": params,
|
| "id": workerRequestId++ })
|
| @@ -38,9 +38,9 @@ function test()
|
| }
|
|
|
| var waitForWorkers = 2;
|
| - InspectorTest.eventHandler["Worker.workerCreated"] = function(messageObject)
|
| + InspectorTest.eventHandler["Target.attachedToTarget"] = function(messageObject)
|
| {
|
| - var workerId = messageObject["params"]["workerId"];
|
| + var workerId = messageObject["params"]["targetInfo"]["targetId"];
|
| InspectorTest.log("Worker created");
|
| sendCommandToWorker("Runtime.enable", {}, workerId);
|
| if (!--waitForWorkers)
|
| @@ -49,7 +49,7 @@ function test()
|
|
|
| var workerTerminated = false;
|
| var messageReceived = false;
|
| - InspectorTest.eventHandler["Worker.dispatchMessageFromWorker"] = function(messageObject)
|
| + InspectorTest.eventHandler["Target.receivedMessageFromTarget"] = function(messageObject)
|
| {
|
| var message = JSON.parse(messageObject["params"]["message"]);
|
| if (message["method"] === "Runtime.exceptionThrown") {
|
| @@ -61,9 +61,9 @@ function test()
|
| }
|
| }
|
|
|
| - InspectorTest.eventHandler["Worker.workerTerminated"] = function(messageObject)
|
| + InspectorTest.eventHandler["Target.detachedFromTarget"] = function(messageObject)
|
| {
|
| - InspectorTest.eventHandler["Worker.workerTerminated"] = undefined;
|
| + InspectorTest.eventHandler["Target.detachedFromTarget"] = undefined;
|
| workerTerminated = true;
|
| if (messageReceived && workerTerminated)
|
| InspectorTest.completeTest();
|
|
|