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

Unified Diff: third_party/WebKit/LayoutTests/inspector-protocol/css/css-getLayoutTreeNodes.html

Issue 2455613002: Fix index used to join results of DOM.getDocument and CSS.getLayoutTreeAndStyles (Closed)
Patch Set: Created 4 years, 2 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: 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)
{

Powered by Google App Engine
This is Rietveld 408576698