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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector-enabled/dedicated-workers-list.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/http/tests/inspector-enabled/dedicated-workers-list.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector-enabled/dedicated-workers-list.html b/third_party/WebKit/LayoutTests/http/tests/inspector-enabled/dedicated-workers-list.html
index d94a79fbe2917c3d4a6a08805236aa74e0c00348..fac49a72f47fa6bd62f78bf4cec33f88aeec9737 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector-enabled/dedicated-workers-list.html
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector-enabled/dedicated-workers-list.html
@@ -29,14 +29,13 @@ function handleLoad()
function test()
{
- InspectorTest.WorkerAgent.disable();
+ InspectorTest.TargetAgent.setAutoAttach(false, false, didDisableWorkerInspection);
// Debugger should not crash when autoconnecting is immediately followed by termination.
- InspectorTest.WorkerAgent.setWaitForDebuggerOnStart(true, didDisableWorkerInspection);
function didDisableWorkerInspection()
{
- InspectorTest.addSniffer(WebInspector.WorkerManager.prototype, "_workerCreated", workerCreated, true);
- InspectorTest.WorkerAgent.enable();
+ InspectorTest.addSniffer(WebInspector.SubTargetsManager.prototype, "_attachedToTarget", workerCreated, true);
+ InspectorTest.TargetAgent.setAutoAttach(true, true);
InspectorTest.addResult("Worker inspection enabled");
}

Powered by Google App Engine
This is Rietveld 408576698