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

Unified Diff: LayoutTests/inspector-protocol/css/css-protocol-test.js

Issue 317703002: DevTools: add test to verify matched styles for :host selector (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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
« no previous file with comments | « no previous file | LayoutTests/inspector-protocol/css/css-shadow-host-rule.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/inspector-protocol/css/css-protocol-test.js
diff --git a/LayoutTests/inspector-protocol/css/css-protocol-test.js b/LayoutTests/inspector-protocol/css/css-protocol-test.js
index 4f159df4ff26ba1ac9594f5e46fb1f3c445dec20..07730e1d18aa70d23478e561b7280d8529620239 100644
--- a/LayoutTests/inspector-protocol/css/css-protocol-test.js
+++ b/LayoutTests/inspector-protocol/css/css-protocol-test.js
@@ -120,14 +120,9 @@ InspectorTest.displayName = function(url)
return url.substr(url.lastIndexOf("/") + 1);
};
-InspectorTest.loadAndDumpMatchingRules = function(nodeId, callback)
+InspectorTest.loadAndDumpMatchingRulesForNode = function(nodeId, callback)
{
- InspectorTest.requestNodeId(nodeId, nodeIdLoaded);
-
- function nodeIdLoaded(nodeId)
- {
- InspectorTest.sendCommandOrDie("CSS.getMatchedStylesForNode", { "nodeId": nodeId }, matchingRulesLoaded);
- }
+ InspectorTest.sendCommandOrDie("CSS.getMatchedStylesForNode", { "nodeId": nodeId }, matchingRulesLoaded);
function matchingRulesLoaded(result)
{
@@ -144,4 +139,14 @@ InspectorTest.loadAndDumpMatchingRules = function(nodeId, callback)
}
}
+InspectorTest.loadAndDumpMatchingRules = function(selector, callback)
+{
+ InspectorTest.requestNodeId(selector, nodeIdLoaded);
+
+ function nodeIdLoaded(nodeId)
+ {
+ InspectorTest.loadAndDumpMatchingRulesForNode(nodeId, callback);
+ }
+}
+
}
« no previous file with comments | « no previous file | LayoutTests/inspector-protocol/css/css-shadow-host-rule.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698