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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js

Issue 2851913002: [DevTools] Do not expose agents on Target
Patch Set: storage and tests.js Created 3 years, 8 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/inspector-test.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js b/third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js
index bee51ac19b3a880a891adbb9bef9b7380e974e15..5cce774728f506dab39a928d4ac3790ba85fc50b 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/inspector-test.js
@@ -543,7 +543,7 @@ InspectorTest.deprecatedRunAfterPendingDispatches = function(callback)
var barrier = new CallbackBarrier();
var targets = SDK.targetManager.targets();
for (var i = 0; i < targets.length; ++i)
- targets[i]._deprecatedRunAfterPendingDispatches(barrier.createCallback());
+ targets[i]._dispatcher._deprecatedRunAfterPendingDispatches(barrier.createCallback());
barrier.callWhenDone(InspectorTest.safeWrap(callback));
}
@@ -969,20 +969,20 @@ SDK.targetManager.observeTargets({
{
if (InspectorTest.CSSAgent)
return;
- InspectorTest.CSSAgent = target.cssAgent();
- InspectorTest.DeviceOrientationAgent = target.deviceOrientationAgent();
- InspectorTest.DOMAgent = target.domAgent();
- InspectorTest.DOMDebuggerAgent = target.domdebuggerAgent();
- InspectorTest.DebuggerAgent = target.debuggerAgent();
- InspectorTest.EmulationAgent = target.emulationAgent();
- InspectorTest.HeapProfilerAgent = target.heapProfilerAgent();
- InspectorTest.InspectorAgent = target.inspectorAgent();
- InspectorTest.NetworkAgent = target.networkAgent();
- InspectorTest.OverlayAgent = target.overlayAgent();
- InspectorTest.PageAgent = target.pageAgent();
- InspectorTest.ProfilerAgent = target.profilerAgent();
- InspectorTest.RuntimeAgent = target.runtimeAgent();
- InspectorTest.TargetAgent = target.targetAgent();
+ InspectorTest.CSSAgent = target._dispatcher.cssAgent();
+ InspectorTest.DeviceOrientationAgent = target._dispatcher.deviceOrientationAgent();
+ InspectorTest.DOMAgent = target._dispatcher.domAgent();
+ InspectorTest.DOMDebuggerAgent = target._dispatcher.domdebuggerAgent();
+ InspectorTest.DebuggerAgent = target._dispatcher.debuggerAgent();
+ InspectorTest.EmulationAgent = target._dispatcher.emulationAgent();
+ InspectorTest.HeapProfilerAgent = target._dispatcher.heapProfilerAgent();
+ InspectorTest.InspectorAgent = target._dispatcher.inspectorAgent();
+ InspectorTest.NetworkAgent = target._dispatcher.networkAgent();
+ InspectorTest.OverlayAgent = target._dispatcher.overlayAgent();
+ InspectorTest.PageAgent = target._dispatcher.pageAgent();
+ InspectorTest.ProfilerAgent = target._dispatcher.profilerAgent();
+ InspectorTest.RuntimeAgent = target._dispatcher.runtimeAgent();
+ InspectorTest.TargetAgent = target._dispatcher.targetAgent();
InspectorTest.networkManager = target.model(SDK.NetworkManager);
InspectorTest.securityOriginManager = target.model(SDK.SecurityOriginManager);

Powered by Google App Engine
This is Rietveld 408576698