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

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

Issue 2782773002: [DevTools] Remove SDKModels' fromTarget methods (Closed)
Patch Set: addressed review comments Created 3 years, 9 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/resources-test.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/resources-test.js b/third_party/WebKit/LayoutTests/http/tests/inspector/resources-test.js
index 16359f45c9594a77e76da88ab20940ce520855be..43e4d966fcb12d7d604785d832525b65ae399b13 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/resources-test.js
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/resources-test.js
@@ -79,17 +79,17 @@ InspectorTest.resourceMatchingURL = function(resourceURL)
InspectorTest.databaseModel = function()
{
- return Resources.DatabaseModel.fromTarget(InspectorTest.mainTarget);
+ return InspectorTest.mainTarget.model(Resources.DatabaseModel);
}
InspectorTest.domStorageModel = function()
{
- return Resources.DOMStorageModel.fromTarget(InspectorTest.mainTarget);
+ return InspectorTest.mainTarget.model(Resources.DOMStorageModel);
}
InspectorTest.indexedDBModel = function()
{
- return Resources.IndexedDBModel.fromTarget(InspectorTest.mainTarget);
+ return InspectorTest.mainTarget.model(Resources.IndexedDBModel);
}
}

Powered by Google App Engine
This is Rietveld 408576698