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

Unified Diff: third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-getRenderTreeNodes.html

Issue 2346853002: Add a DOM.getLayoutTreeNodes devtools command (Closed)
Patch Set: Pretty print Created 4 years, 3 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/dom/dom-getRenderTreeNodes.html
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-getRenderTreeNodes.html b/third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-getRenderTreeNodes.html
new file mode 100644
index 0000000000000000000000000000000000000000..a1ba0263080bcc841f1496802de5489bb0c318f2
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-getRenderTreeNodes.html
@@ -0,0 +1,42 @@
+<html>
+<head>
+<script type="text/javascript" src="../../http/tests/inspector-protocol/inspector-protocol-test.js"></script>
+<script>
+
+function test()
+{
+ InspectorTest.sendCommand("DOM.enable", {});
+ InspectorTest.sendCommandOrDie("DOM.getRenderTreeNodes", {}, onRenderTreeNodes);
+
+ function onRenderTreeNodes(response)
+ {
+ InspectorTest.log("\nRenderTreeNodes result:");
+ InspectorTest.log(JSON.stringify(response, null, 2));
+ InspectorTest.completeTest();
+ }
+}
+
+</script>
+</head>
+<body class="body-class">
+<div class="class1">Some Text</div> And More Text
+<div style="display:inline-block; width: 200px">
+ <p>
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque sit amet est sem.
+ Aenean ut neque volutpat, posuere odio at, mollis nibh. Aenean sodales nulla et
+ ligula efficitur sollicitudin blandit sed lectus. Duis orci enim, sodales ac lectus sed,
+ hendrerit efficitur est. Quisque gravida facilisis viverra.
+ </p>
+ <ul class="class3">
+ <li class="class4"></li>
+ <span>Lets have a span</span>
+ </ul>
+</div>
+<div class="class5 class6"></div>
+<div id="shadow-host"></div>
+<script type="text/javascript">
+ runTest();
+</script>
+
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698