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

Unified Diff: LayoutTests/http/tests/inspector/stylesheet-source-mapping.html

Issue 881263002: DevTools: use target-based model accessors only. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 11 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: LayoutTests/http/tests/inspector/stylesheet-source-mapping.html
diff --git a/LayoutTests/http/tests/inspector/stylesheet-source-mapping.html b/LayoutTests/http/tests/inspector/stylesheet-source-mapping.html
index e688542c76cddbc68c7d87091100980ae35c1c63..8d2c82db80c25314b25cda56362043bde170090e 100644
--- a/LayoutTests/http/tests/inspector/stylesheet-source-mapping.html
+++ b/LayoutTests/http/tests/inspector/stylesheet-source-mapping.html
@@ -38,7 +38,7 @@ function test()
function createMockStyleSheetHeader(url, sourceMapURL)
{
- const frame = WebInspector.resourceTreeModel.mainFrame;
+ const frame = InspectorTest.resourceTreeModel.mainFrame;
return {
styleSheetId: styleSheetId,
frameId: frame.id,
@@ -53,8 +53,8 @@ function test()
function createMockStyleSheetResource(url, mimeType, content)
{
const documentURL = "http://localhost:8000/inspector/stylesheet-source-mapping.html";
- const frame = WebInspector.resourceTreeModel.mainFrame;
- var resource = new WebInspector.Resource(WebInspector.resourceTreeModel.target(), null, url, documentURL, frame.id, frame.loaderId, WebInspector.resourceTypes.Stylesheet, mimeType);
+ const frame = InspectorTest.resourceTreeModel.mainFrame;
+ var resource = new WebInspector.Resource(InspectorTest.resourceTreeModel.target(), null, url, documentURL, frame.id, frame.loaderId, WebInspector.resourceTypes.Stylesheet, mimeType);
resource.requestContent = function(callback)
{
callback(content, false, mimeType);

Powered by Google App Engine
This is Rietveld 408576698