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

Unified Diff: third_party/WebKit/LayoutTests/inspector-protocol/debugger/suspend-setTimeout-on-pause-in-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/suspend-setTimeout-on-pause-in-dedicated-worker.html
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/debugger/suspend-setTimeout-on-pause-in-dedicated-worker.html b/third_party/WebKit/LayoutTests/inspector-protocol/debugger/suspend-setTimeout-on-pause-in-dedicated-worker.html
index f2ae571f1069e3f51ddc2cd6bebe36b7d5b203e4..e295351e7893229ac3d547906bc919e6a284742f 100644
--- a/third_party/WebKit/LayoutTests/inspector-protocol/debugger/suspend-setTimeout-on-pause-in-dedicated-worker.html
+++ b/third_party/WebKit/LayoutTests/inspector-protocol/debugger/suspend-setTimeout-on-pause-in-dedicated-worker.html
@@ -21,9 +21,9 @@ function test()
function sendCommandToWorker(method, params)
{
var requestId = workerRequestId++;
- InspectorTest.sendCommand("Worker.sendMessageToWorker",
+ InspectorTest.sendCommand("Target.sendMessageToTarget",
{
- "workerId": workerId,
+ "targetId": workerId,
"message": JSON.stringify({ "method": method,
"params": params,
"id": requestId })
@@ -38,13 +38,12 @@ 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", {});
@@ -52,7 +51,7 @@ function test()
var pauseCount = 0;
var evalRequestId;
- 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