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

Unified Diff: third_party/WebKit/LayoutTests/inspector-protocol/debugger/debugger-pause-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-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
index a4648f7cd9b0bb370dac9acee91b80cd0a60588a..35fc655af74e2fc4c8c9fc9f656a6720e2010c75 100644
--- 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
@@ -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") {

Powered by Google App Engine
This is Rietveld 408576698