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/worker/exception-from-worker-contains-stack.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/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();

Powered by Google App Engine
This is Rietveld 408576698