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

Unified Diff: third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-getLayoutTreeNodes-expected.txt

Issue 2346853002: Add a DOM.getLayoutTreeNodes devtools command (Closed)
Patch Set: Make it work with iframes 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-getLayoutTreeNodes-expected.txt
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-getLayoutTreeNodes-expected.txt b/third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-getLayoutTreeNodes-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..17424a12585fc2343f95a687cc2c06c9fc960693
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/inspector-protocol/dom/dom-getLayoutTreeNodes-expected.txt
@@ -0,0 +1,593 @@
+Some Text
+And More Text
+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.
+
+Lets have a span
+Rotated text!
+
+
+LayoutTreeNodes result:
+{
+ "layoutTreeNodes": [
+ {
+ "backendNodeId": 1,
+ "boundingBox": {
+ "x": 0,
+ "y": 0,
+ "width": 785,
+ "height": 600
+ }
+ },
+ {
+ "backendNodeId": 2,
+ "boundingBox": {
+ "x": 0,
+ "y": 0,
+ "width": 785,
+ "height": 860
+ }
+ },
+ {
+ "backendNodeId": 3,
+ "boundingBox": {
+ "x": 8,
+ "y": 8,
+ "width": 769,
+ "height": 844
+ }
+ },
+ {
+ "backendNodeId": 4,
+ "boundingBox": {
+ "x": 8,
+ "y": 8,
+ "width": 769,
+ "height": 844
+ }
+ },
+ {
+ "backendNodeId": 5,
+ "boundingBox": {
+ "x": 8,
+ "y": 836,
+ "width": 769,
+ "height": 16
+ }
+ },
+ {
+ "backendNodeId": 6,
+ "boundingBox": {
+ "x": 8,
+ "y": 836,
+ "width": 769,
+ "height": 16
+ }
+ },
+ {
+ "backendNodeId": 7,
+ "boundingBox": {
+ "x": 8,
+ "y": 836,
+ "width": 48,
+ "height": 16
+ },
+ "layoutText": "Hi!",
+ "inlineTextNodes": [
+ {
+ "boundingBox": {
+ "x": 8,
+ "y": 836,
+ "width": 48,
+ "height": 16
+ },
+ "text": "Hi!"
+ }
+ ]
+ },
+ {
+ "backendNodeId": 8,
+ "boundingBox": {
+ "x": 8,
+ "y": 632,
+ "width": 404,
+ "height": 204
+ }
+ },
+ {
+ "backendNodeId": 9,
+ "boundingBox": {
+ "x": 0,
+ "y": 0,
+ "width": 400,
+ "height": 200
+ }
+ },
+ {
+ "backendNodeId": 10,
+ "boundingBox": {
+ "x": 8,
+ "y": 8,
+ "width": 384,
+ "height": 184
+ }
+ },
+ {
+ "backendNodeId": 11,
+ "boundingBox": {
+ "x": 8,
+ "y": 8,
+ "width": 131,
+ "height": 19
+ },
+ "layoutText": "\nHello from the iframe.\n\n\n",
+ "inlineTextNodes": [
+ {
+ "boundingBox": {
+ "x": 8,
+ "y": 8,
+ "width": 131,
+ "height": 19
+ },
+ "text": "Hello from the iframe."
+ }
+ ]
+ },
+ {
+ "backendNodeId": 12,
+ "boundingBox": {
+ "x": 92,
+ "y": 516,
+ "width": 32,
+ "height": 200
+ }
+ },
+ {
+ "backendNodeId": 13,
+ "boundingBox": {
+ "x": 92,
+ "y": 516,
+ "width": 32,
+ "height": 112
+ },
+ "layoutText": "Rotated text!",
+ "inlineTextNodes": [
+ {
+ "boundingBox": {
+ "x": 108,
+ "y": 516,
+ "width": 16,
+ "height": 112
+ },
+ "text": "Rotated"
+ },
+ {
+ "boundingBox": {
+ "x": 92,
+ "y": 516,
+ "width": 16,
+ "height": 80
+ },
+ "text": "text!"
+ }
+ ]
+ },
+ {
+ "backendNodeId": 14,
+ "boundingBox": {
+ "x": 232,
+ "y": 24,
+ "width": 200,
+ "height": 576
+ }
+ },
+ {
+ "backendNodeId": 15,
+ "boundingBox": {
+ "x": 232,
+ "y": 536,
+ "width": 200,
+ "height": 48
+ }
+ },
+ {
+ "backendNodeId": 16,
+ "boundingBox": {
+ "x": 272,
+ "y": 552,
+ "width": 144,
+ "height": 32
+ }
+ },
+ {
+ "backendNodeId": 17,
+ "boundingBox": {
+ "x": 272,
+ "y": 552,
+ "width": 144,
+ "height": 32
+ },
+ "layoutText": "Lets have a span",
+ "inlineTextNodes": [
+ {
+ "boundingBox": {
+ "x": 272,
+ "y": 552,
+ "width": 144,
+ "height": 16
+ },
+ "text": "Lets have"
+ },
+ {
+ "boundingBox": {
+ "x": 272,
+ "y": 568,
+ "width": 96,
+ "height": 16
+ },
+ "text": "a span"
+ }
+ ]
+ },
+ {
+ "backendNodeId": 18,
+ "boundingBox": {
+ "x": 272,
+ "y": 536,
+ "width": 160,
+ "height": 16
+ }
+ },
+ {
+ "backendNodeId": 19,
+ "boundingBox": {
+ "x": 232,
+ "y": 40,
+ "width": 200,
+ "height": 480
+ }
+ },
+ {
+ "backendNodeId": 20,
+ "boundingBox": {
+ "x": 232,
+ "y": 40,
+ "width": 192,
+ "height": 480
+ },
+ "layoutText": "\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque sit amet est sem.\n Aenean ut neque volutpat, posuere odio at, mollis nibh. Aenean sodales nulla et\n ligula efficitur sollicitudin blandit sed lectus. Duis orci enim, sodales ac lectus sed,\n hendrerit efficitur est. Quisque gravida facilisis viverra.\n ",
+ "inlineTextNodes": [
+ {
+ "boundingBox": {
+ "x": 232,
+ "y": 40,
+ "width": 176,
+ "height": 16
+ },
+ "text": "Lorem ipsum"
+ },
+ {
+ "boundingBox": {
+ "x": 232,
+ "y": 56,
+ "width": 144,
+ "height": 16
+ },
+ "text": "dolor sit"
+ },
+ {
+ "boundingBox": {
+ "x": 232,
+ "y": 72,
+ "width": 80,
+ "height": 16
+ },
+ "text": "amet,"
+ },
+ {
+ "boundingBox": {
+ "x": 232,
+ "y": 88,
+ "width": 176,
+ "height": 16
+ },
+ "text": "consectetur"
+ },
+ {
+ "boundingBox": {
+ "x": 232,
+ "y": 104,
+ "width": 160,
+ "height": 16
+ },
+ "text": "adipiscing"
+ },
+ {
+ "boundingBox": {
+ "x": 232,
+ "y": 120,
+ "width": 80,
+ "height": 16
+ },
+ "text": "elit."
+ },
+ {
+ "boundingBox": {
+ "x": 232,
+ "y": 136,
+ "width": 192,
+ "height": 16
+ },
+ "text": "Pellentesque"
+ },
+ {
+ "boundingBox": {
+ "x": 232,
+ "y": 152,
+ "width": 192,
+ "height": 16
+ },
+ "text": "sit amet est"
+ },
+ {
+ "boundingBox": {
+ "x": 232,
+ "y": 168,
+ "width": 80,
+ "height": 16
+ },
+ "text": "sem.\n"
+ },
+ {
+ "boundingBox": {
+ "x": 312,
+ "y": 168,
+ "width": 96,
+ "height": 16
+ },
+ "text": "Aenean"
+ },
+ {
+ "boundingBox": {
+ "x": 232,
+ "y": 184,
+ "width": 128,
+ "height": 16
+ },
+ "text": "ut neque"
+ },
+ {
+ "boundingBox": {
+ "x": 232,
+ "y": 200,
+ "width": 144,
+ "height": 16
+ },
+ "text": "volutpat,"
+ },
+ {
+ "boundingBox": {
+ "x": 232,
+ "y": 216,
+ "width": 192,
+ "height": 16
+ },
+ "text": "posuere odio"
+ },
+ {
+ "boundingBox": {
+ "x": 232,
+ "y": 232,
+ "width": 160,
+ "height": 16
+ },
+ "text": "at, mollis"
+ },
+ {
+ "boundingBox": {
+ "x": 232,
+ "y": 248,
+ "width": 192,
+ "height": 16
+ },
+ "text": "nibh. Aenean"
+ },
+ {
+ "boundingBox": {
+ "x": 232,
+ "y": 264,
+ "width": 112,
+ "height": 16
+ },
+ "text": "sodales"
+ },
+ {
+ "boundingBox": {
+ "x": 232,
+ "y": 280,
+ "width": 128,
+ "height": 16
+ },
+ "text": "nulla et"
+ },
+ {
+ "boundingBox": {
+ "x": 232,
+ "y": 296,
+ "width": 96,
+ "height": 16
+ },
+ "text": "ligula"
+ },
+ {
+ "boundingBox": {
+ "x": 232,
+ "y": 312,
+ "width": 144,
+ "height": 16
+ },
+ "text": "efficitur"
+ },
+ {
+ "boundingBox": {
+ "x": 232,
+ "y": 328,
+ "width": 192,
+ "height": 16
+ },
+ "text": "sollicitudin"
+ },
+ {
+ "boundingBox": {
+ "x": 232,
+ "y": 344,
+ "width": 176,
+ "height": 16
+ },
+ "text": "blandit sed"
+ },
+ {
+ "boundingBox": {
+ "x": 232,
+ "y": 360,
+ "width": 192,
+ "height": 16
+ },
+ "text": "lectus. Duis"
+ },
+ {
+ "boundingBox": {
+ "x": 232,
+ "y": 376,
+ "width": 160,
+ "height": 16
+ },
+ "text": "orci enim,"
+ },
+ {
+ "boundingBox": {
+ "x": 232,
+ "y": 392,
+ "width": 160,
+ "height": 16
+ },
+ "text": "sodales ac"
+ },
+ {
+ "boundingBox": {
+ "x": 232,
+ "y": 408,
+ "width": 176,
+ "height": 16
+ },
+ "text": "lectus sed,"
+ },
+ {
+ "boundingBox": {
+ "x": 232,
+ "y": 424,
+ "width": 144,
+ "height": 16
+ },
+ "text": "hendrerit"
+ },
+ {
+ "boundingBox": {
+ "x": 232,
+ "y": 440,
+ "width": 144,
+ "height": 16
+ },
+ "text": "efficitur"
+ },
+ {
+ "boundingBox": {
+ "x": 232,
+ "y": 456,
+ "width": 192,
+ "height": 16
+ },
+ "text": "est. Quisque"
+ },
+ {
+ "boundingBox": {
+ "x": 232,
+ "y": 472,
+ "width": 112,
+ "height": 16
+ },
+ "text": "gravida"
+ },
+ {
+ "boundingBox": {
+ "x": 232,
+ "y": 488,
+ "width": 144,
+ "height": 16
+ },
+ "text": "facilisis"
+ },
+ {
+ "boundingBox": {
+ "x": 232,
+ "y": 504,
+ "width": 128,
+ "height": 16
+ },
+ "text": "viverra."
+ }
+ ]
+ },
+ {
+ "backendNodeId": 21,
+ "boundingBox": {
+ "x": 8,
+ "y": 568,
+ "width": 224,
+ "height": 16
+ },
+ "layoutText": " And More Text\n ",
+ "inlineTextNodes": [
+ {
+ "boundingBox": {
+ "x": 8,
+ "y": 568,
+ "width": 224,
+ "height": 16
+ },
+ "text": "And More Text\n"
+ }
+ ]
+ },
+ {
+ "backendNodeId": 22,
+ "boundingBox": {
+ "x": 8,
+ "y": 8,
+ "width": 769,
+ "height": 16
+ }
+ },
+ {
+ "backendNodeId": 23,
+ "boundingBox": {
+ "x": 8,
+ "y": 8,
+ "width": 144,
+ "height": 16
+ },
+ "layoutText": "Some Text",
+ "inlineTextNodes": [
+ {
+ "boundingBox": {
+ "x": 8,
+ "y": 8,
+ "width": 144,
+ "height": 16
+ },
+ "text": "Some Text"
+ }
+ ]
+ }
+ ]
+}
+

Powered by Google App Engine
This is Rietveld 408576698