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