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

Unified Diff: LayoutTests/inspector/elements/styles/styles-new-API.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/inspector/elements/styles/styles-new-API.html
diff --git a/LayoutTests/inspector/elements/styles/styles-new-API.html b/LayoutTests/inspector/elements/styles/styles-new-API.html
index 1ae65d12a350c96c57b5d55d7f371eec8a617872..9b099ae37a1a812935680d1ca8332fd1578a0079 100644
--- a/LayoutTests/inspector/elements/styles/styles-new-API.html
+++ b/LayoutTests/inspector/elements/styles/styles-new-API.html
@@ -228,7 +228,7 @@ function test()
function setRuleSelector(rule)
{
- var orm = WebInspector.CSSRule.parsePayload(WebInspector.cssModel, rule);
+ var orm = WebInspector.CSSRule.parsePayload(InspectorTest.cssModel, rule);
InspectorTest.CSSAgent.setRuleSelector(orm.styleSheetId, orm.selectorRange, "html *, body[foo=\"bar\"]", didSetSelector);
}
@@ -327,7 +327,7 @@ function test()
InspectorTest.CSSAgent.addRule(styleSheetId, "body {}", range, ruleAdded);
}
- var frameId = WebInspector.resourceTreeModel.mainFrame.id;
+ var frameId = InspectorTest.resourceTreeModel.mainFrame.id;
InspectorTest.CSSAgent.createStyleSheet(frameId, viaInspectorStyleSheetCreated.bind(this));
},
@@ -361,7 +361,7 @@ function test()
InspectorTest.completeTest();
return;
}
- callback(WebInspector.CSSStyleDeclaration.parsePayload(WebInspector.cssModel, payload));
+ callback(WebInspector.CSSStyleDeclaration.parsePayload(InspectorTest.cssModel, payload));
}
function stylesCallback(error, matchedCSSRules)
@@ -380,7 +380,7 @@ function test()
// border-width: 0px;
// padding-top: 1px; [d]
- var orm = WebInspector.CSSStyleDeclaration.parsePayload(WebInspector.cssModel, matchedCSSRules[1].rule.style);
+ var orm = WebInspector.CSSStyleDeclaration.parsePayload(InspectorTest.cssModel, matchedCSSRules[1].rule.style);
orm.propertyAt(0).setDisabled(true, step1);
function step1(orm)
« no previous file with comments | « LayoutTests/inspector/elements/styles/styles-history.html ('k') | LayoutTests/inspector/elements/styles/styles-test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698