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

Unified Diff: LayoutTests/inspector-protocol/css/css-shadow-host-content-selector.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
Index: LayoutTests/inspector-protocol/css/css-shadow-host-content-selector.html
diff --git a/LayoutTests/inspector-protocol/css/css-shadow-host-content-selector.html b/LayoutTests/inspector-protocol/css/css-shadow-host-content-selector.html
index d720ad21c282d49ae337c288bc1019446c885310..9b60ed33b266e3b7a5057533f646e9e249f75315 100644
--- a/LayoutTests/inspector-protocol/css/css-shadow-host-content-selector.html
+++ b/LayoutTests/inspector-protocol/css/css-shadow-host-content-selector.html
@@ -6,11 +6,18 @@
<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-content", onNodeReceived);
+ InspectorTest.requestNodeId(documentNodeId, "#shadow-content", onNodeReceived);
}
function onNodeReceived(nodeId)

Powered by Google App Engine
This is Rietveld 408576698