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

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

Issue 311123002: Revert "DevTools: matched styles respect :visited/:link pseudo classes" (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 07730e1d18aa70d23478e561b7280d8529620239..4f159df4ff26ba1ac9594f5e46fb1f3c445dec20 100644
--- a/LayoutTests/inspector-protocol/css/css-protocol-test.js
+++ b/LayoutTests/inspector-protocol/css/css-protocol-test.js
@@ -120,9 +120,14 @@ InspectorTest.displayName = function(url)
return url.substr(url.lastIndexOf("/") + 1);
};
-InspectorTest.loadAndDumpMatchingRulesForNode = function(nodeId, callback)
+InspectorTest.loadAndDumpMatchingRules = function(nodeId, callback)
{
- InspectorTest.sendCommandOrDie("CSS.getMatchedStylesForNode", { "nodeId": nodeId }, matchingRulesLoaded);
+ InspectorTest.requestNodeId(nodeId, nodeIdLoaded);
+
+ function nodeIdLoaded(nodeId)
+ {
+ InspectorTest.sendCommandOrDie("CSS.getMatchedStylesForNode", { "nodeId": nodeId }, matchingRulesLoaded);
+ }
function matchingRulesLoaded(result)
{
@@ -139,14 +144,4 @@ InspectorTest.loadAndDumpMatchingRulesForNode = 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