| 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");
|
| }
|
|
|
|
|