| 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)
|
|
|