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

Unified Diff: third_party/WebKit/LayoutTests/inspector/schema-get-domains-matches-agents.html

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/inspector/schema-get-domains-matches-agents.html
diff --git a/third_party/WebKit/LayoutTests/inspector/schema-get-domains-matches-agents.html b/third_party/WebKit/LayoutTests/inspector/schema-get-domains-matches-agents.html
index a2c0da89ba682899dcdc85b2e7eb404d5c644ad7..562bf9704fcade7148b896401d103f9f6f025359 100644
--- a/third_party/WebKit/LayoutTests/inspector/schema-get-domains-matches-agents.html
+++ b/third_party/WebKit/LayoutTests/inspector/schema-get-domains-matches-agents.html
@@ -5,7 +5,7 @@
function test()
{
var target = InspectorTest.mainTarget;
- target.schemaAgent().getDomains(gotDomains);
+ target._dispatcher.schemaAgent().getDomains(gotDomains);
function gotDomains(error, domains)
{
@@ -15,7 +15,7 @@ function test()
return;
}
var domainNames = domains.map(domain => domain.name).sort();
- var agentNames = Object.keys(target._agents).sort();
+ var agentNames = Object.keys(target._dispatcher._agents).sort();
for (var domain of domainNames) {
if (agentNames.indexOf(domain) === -1)
InspectorTest.addResult("agent " + domain + " is missing from target");

Powered by Google App Engine
This is Rietveld 408576698