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

Unified Diff: LayoutTests/inspector-protocol/css/css-shadow-host-rule.html

Issue 450533008: DevTools: fix inspector-protocol css tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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 | « LayoutTests/inspector-protocol/css/css-shadow-host-content-selector.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/inspector-protocol/css/css-shadow-host-rule.html
diff --git a/LayoutTests/inspector-protocol/css/css-shadow-host-rule.html b/LayoutTests/inspector-protocol/css/css-shadow-host-rule.html
index dc551accccffecfab1883ac5b3ab61a805e106c3..908abd022fa0ff89631bdfd7df14a953a7b4e86b 100644
--- a/LayoutTests/inspector-protocol/css/css-shadow-host-rule.html
+++ b/LayoutTests/inspector-protocol/css/css-shadow-host-rule.html
@@ -5,11 +5,19 @@
<script type="text/javascript">
function test()
{
- InspectorTest.sendCommandOrDie("CSS.enable", {}, onCSSEnabled);
+ var documentNodeId;
+
+ InspectorTest.requestDocumentNodeId(onDocumentNodeId);
+
+ function onDocumentNodeId(nodeId)
+ {
+ documentNodeId = nodeId;
+ InspectorTest.sendCommandOrDie("CSS.enable", {}, onCSSEnabled);
+ }
function onCSSEnabled()
{
- InspectorTest.requestNodeId("#shadow-host", onNodeReceived);
+ InspectorTest.requestNodeId(documentNodeId, "#shadow-host", onNodeReceived);
}
function onNodeReceived(nodeId)
« no previous file with comments | « LayoutTests/inspector-protocol/css/css-shadow-host-content-selector.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698