Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/inspector-protocol/css/css-getLayoutTreeNodes.html |
| diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/css/css-getLayoutTreeNodes.html b/third_party/WebKit/LayoutTests/inspector-protocol/css/css-getLayoutTreeNodes.html |
| index 7768b34857061ec68b95bfe68797c7d8affba6e2..94d9f00a46c5ae75fe754794f67ca611065a4dd9 100644 |
| --- a/third_party/WebKit/LayoutTests/inspector-protocol/css/css-getLayoutTreeNodes.html |
| +++ b/third_party/WebKit/LayoutTests/inspector-protocol/css/css-getLayoutTreeNodes.html |
| @@ -12,8 +12,12 @@ |
| function test() |
| { |
| InspectorTest.sendCommand("DOM.enable", {}); |
| - var whitelist = ["transform", "transform-origin", "height", "width", "display", "outline-color"]; |
| - InspectorTest.sendCommandOrDie("CSS.getLayoutTreeAndStyles", {"computedStyleWhitelist": whitelist}, onLayoutTreeNodes); |
| + InspectorTest.sendCommandOrDie("DOM.getDocument", {"depth": -1}, onDocument); |
|
Sami
2016/10/26 17:15:23
nit: extra space before {"depth"...
alex clarke (OOO till 29th)
2016/10/27 10:51:11
Done.
|
| + |
| + function onDocument(response) { |
| + var whitelist = ["transform", "transform-origin", "height", "width", "display", "outline-color"]; |
| + InspectorTest.sendCommandOrDie("CSS.getLayoutTreeAndStyles", {"computedStyleWhitelist": whitelist}, onLayoutTreeNodes); |
| + } |
| function onLayoutTreeNodes(response) |
| { |