Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(49)

Unified Diff: third_party/WebKit/LayoutTests/inspector-protocol/debugger/debugger-step-into-dedicated-worker.html

Issue 2442083002: [DevTools] Merge Worker domain to Target, migrate clients. (Closed)
Patch Set: rebased all tests Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
index 86d4551ccaab29a5245462f620ec7ca93008aa0e..561acdbd26f884344528f5410df44e4798c0f7c7 100644
--- 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
@@ -20,9 +20,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++ })
@@ -36,20 +36,19 @@ function test()
InspectorTest.completeTest();
}
}
- InspectorTest.sendCommand("Worker.enable", {}, didEnableWorkerDebugging);
- InspectorTest.sendCommand("Worker.setWaitForDebuggerOnStart", { "value": true });
+ InspectorTest.sendCommand("Target.setAutoAttach", {autoAttach: true, waitForDebuggerOnStart: true}, didEnableWorkerDebugging);
InspectorTest.sendCommand("Runtime.evaluate", { "expression": "startWorker()" });
- 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");
sendCommandToWorker("Debugger.enable", {});
sendCommandToWorker("Runtime.runIfWaitingForDebugger", {});
}
var pauseCount = 0;
- InspectorTest.eventHandler["Worker.dispatchMessageFromWorker"] = function(messageObject)
+ InspectorTest.eventHandler["Target.receivedMessageFromTarget"] = function(messageObject)
{
var message = JSON.parse(messageObject["params"]["message"]);
if (message["method"] === "Debugger.paused") {

Powered by Google App Engine
This is Rietveld 408576698