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

Unified Diff: third_party/WebKit/LayoutTests/inspector-protocol/accessibility/accessibility-nameSources-visiblity-expected.txt

Issue 2322413003: Show ancestor hierarchy in accessibility panel (Closed)
Patch Set: Add new test for ancestors 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/accessibility/accessibility-nameSources-visiblity-expected.txt
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/accessibility/accessibility-nameSources-visiblity-expected.txt b/third_party/WebKit/LayoutTests/inspector-protocol/accessibility/accessibility-nameSources-visiblity-expected.txt
index 067176d9ebceefc2480a1eed2f6b96ef4413e7a2..fced50d66ceccd7b79ed07f3bb83bcd9df945251 100644
--- a/third_party/WebKit/LayoutTests/inspector-protocol/accessibility/accessibility-nameSources-visiblity-expected.txt
+++ b/third_party/WebKit/LayoutTests/inspector-protocol/accessibility/accessibility-nameSources-visiblity-expected.txt
@@ -1,67 +1,134 @@
{
"id": "<int>",
"result": {
- "accessibilityNode": {
- "nodeId": "<string>",
- "ignored": false,
- "role": {
- "type": "role",
- "value": "link"
- },
- "name": {
- "type": "computedString",
- "value": "1 2 7",
- "sources": [
+ "nodes": [
+ {
+ "nodeId": "<string>",
+ "ignored": false,
+ "role": {
+ "type": "role",
+ "value": "link"
+ },
+ "name": {
+ "type": "computedString",
+ "value": "1 2 7",
+ "sources": [
+ {
+ "type": "relatedElement",
+ "attribute": "aria-labelledby"
+ },
+ {
+ "type": "attribute",
+ "attribute": "aria-label"
+ },
+ {
+ "type": "contents",
+ "value": {
+ "type": "computedString",
+ "value": "1 2 7"
+ }
+ },
+ {
+ "type": "attribute",
+ "attribute": "title",
+ "superseded": true
+ }
+ ]
+ },
+ "properties": []
+ }
+ ]
+ }
+}
+{
+ "id": "<int>",
+ "result": {
+ "nodes": [
+ {
+ "nodeId": "<string>",
+ "ignored": false,
+ "role": {
+ "type": "role",
+ "value": "textbox"
+ },
+ "name": {
+ "type": "computedString",
+ "value": "1 2 7",
+ "sources": [
+ {
+ "type": "relatedElement",
+ "value": {
+ "type": "computedString",
+ "value": "1 2 7"
+ },
+ "attribute": "aria-labelledby",
+ "attributeValue": {
+ "type": "idrefList",
+ "value": "label2",
+ "relatedNodes": [
+ {
+ "idref": "label2",
+ "text": "1 2 7",
+ "nodeResult": "div#label2"
+ }
+ ]
+ }
+ },
+ {
+ "type": "attribute",
+ "attribute": "aria-label",
+ "superseded": true
+ },
+ {
+ "type": "relatedElement",
+ "superseded": true,
+ "nativeSource": "label"
+ },
+ {
+ "type": "placeholder",
+ "attribute": "placeholder",
+ "superseded": true
+ },
+ {
+ "type": "attribute",
+ "attribute": "title",
+ "superseded": true
+ }
+ ]
+ },
+ "properties": [
{
- "type": "relatedElement",
- "attribute": "aria-labelledby"
+ "name": "invalid",
+ "value": {
+ "type": "token",
+ "value": "false"
+ }
},
{
- "type": "attribute",
- "attribute": "aria-label"
+ "name": "multiline",
+ "value": {
+ "type": "boolean",
+ "value": false
+ }
},
{
- "type": "contents",
+ "name": "readonly",
"value": {
- "type": "computedString",
- "value": "1 2 7"
+ "type": "boolean",
+ "value": false
}
},
{
- "type": "attribute",
- "attribute": "title",
- "superseded": true
- }
- ]
- },
- "properties": []
- }
- }
-}
-{
- "id": "<int>",
- "result": {
- "accessibilityNode": {
- "nodeId": "<string>",
- "ignored": false,
- "role": {
- "type": "role",
- "value": "textbox"
- },
- "name": {
- "type": "computedString",
- "value": "1 2 7",
- "sources": [
+ "name": "required",
+ "value": {
+ "type": "boolean",
+ "value": false
+ }
+ },
{
- "type": "relatedElement",
+ "name": "labelledby",
"value": {
- "type": "computedString",
- "value": "1 2 7"
- },
- "attribute": "aria-labelledby",
- "attributeValue": {
- "type": "idrefList",
- "value": "label2",
+ "type": "nodeList",
"relatedNodes": [
{
"idref": "label2",
@@ -70,99 +137,131 @@
}
]
}
- },
- {
- "type": "attribute",
- "attribute": "aria-label",
- "superseded": true
- },
- {
- "type": "relatedElement",
- "superseded": true,
- "nativeSource": "label"
- },
- {
- "type": "placeholder",
- "attribute": "placeholder",
- "superseded": true
- },
- {
- "type": "attribute",
- "attribute": "title",
- "superseded": true
}
]
- },
- "properties": [
- {
- "name": "invalid",
- "value": {
- "type": "token",
- "value": "false"
- }
- },
- {
- "name": "multiline",
- "value": {
- "type": "boolean",
- "value": false
- }
- },
- {
- "name": "readonly",
- "value": {
- "type": "boolean",
- "value": false
- }
- },
- {
- "name": "required",
- "value": {
- "type": "boolean",
- "value": false
- }
- },
- {
- "name": "labelledby",
- "value": {
- "type": "nodeList",
- "relatedNodes": [
- {
- "idref": "label2",
- "text": "1 2 7",
- "nodeResult": "div#label2"
- }
- ]
- }
- }
- ]
- }
+ }
+ ]
}
}
{
"id": "<int>",
"result": {
- "accessibilityNode": {
- "nodeId": "<string>",
- "ignored": false,
- "role": {
- "type": "role",
- "value": "textbox"
- },
- "name": {
- "type": "computedString",
- "value": "1 2 3 4 6 7",
- "sources": [
+ "nodes": [
+ {
+ "nodeId": "<string>",
+ "ignored": false,
+ "role": {
+ "type": "role",
+ "value": "textbox"
+ },
+ "name": {
+ "type": "computedString",
+ "value": "1 2 3 4 6 7",
+ "sources": [
+ {
+ "type": "relatedElement",
+ "value": {
+ "type": "computedString",
+ "value": "1 2 3 4 6 7"
+ },
+ "attribute": "aria-labelledby",
+ "attributeValue": {
+ "type": "idrefList",
+ "value": "3a 3b 3c 3d 3e 3f 3g",
+ "relatedNodes": [
+ {
+ "idref": "3a",
+ "text": "1",
+ "nodeResult": "p#3a"
+ },
+ {
+ "idref": "3b",
+ "text": "2",
+ "nodeResult": "td#3b"
+ },
+ {
+ "idref": "3c",
+ "text": "3",
+ "nodeResult": "td#3c"
+ },
+ {
+ "idref": "3d",
+ "text": "4",
+ "nodeResult": "td#3d"
+ },
+ {
+ "idref": "3e",
+ "text": "",
+ "nodeResult": "tr#3e"
+ },
+ {
+ "idref": "3f",
+ "text": "6",
+ "nodeResult": "tr#3f"
+ },
+ {
+ "idref": "3g",
+ "text": "7",
+ "nodeResult": "p#3g"
+ }
+ ]
+ }
+ },
+ {
+ "type": "attribute",
+ "attribute": "aria-label",
+ "superseded": true
+ },
+ {
+ "type": "relatedElement",
+ "superseded": true,
+ "nativeSource": "label"
+ },
+ {
+ "type": "placeholder",
+ "attribute": "placeholder",
+ "superseded": true
+ },
+ {
+ "type": "attribute",
+ "attribute": "title",
+ "superseded": true
+ }
+ ]
+ },
+ "properties": [
{
- "type": "relatedElement",
+ "name": "invalid",
"value": {
- "type": "computedString",
- "value": "1 2 3 4 6 7"
- },
- "attribute": "aria-labelledby",
- "attributeValue": {
- "type": "idrefList",
- "value": "3a 3b 3c 3d 3e 3f 3g",
+ "type": "token",
+ "value": "false"
+ }
+ },
+ {
+ "name": "multiline",
+ "value": {
+ "type": "boolean",
+ "value": false
+ }
+ },
+ {
+ "name": "readonly",
+ "value": {
+ "type": "boolean",
+ "value": false
+ }
+ },
+ {
+ "name": "required",
+ "value": {
+ "type": "boolean",
+ "value": false
+ }
+ },
+ {
+ "name": "labelledby",
+ "value": {
+ "type": "nodeList",
"relatedNodes": [
{
"idref": "3a",
@@ -201,230 +300,182 @@
}
]
}
- },
- {
- "type": "attribute",
- "attribute": "aria-label",
- "superseded": true
- },
- {
- "type": "relatedElement",
- "superseded": true,
- "nativeSource": "label"
- },
- {
- "type": "placeholder",
- "attribute": "placeholder",
- "superseded": true
- },
- {
- "type": "attribute",
- "attribute": "title",
- "superseded": true
}
]
- },
- "properties": [
- {
- "name": "invalid",
- "value": {
- "type": "token",
- "value": "false"
- }
- },
- {
- "name": "multiline",
- "value": {
- "type": "boolean",
- "value": false
- }
- },
- {
- "name": "readonly",
- "value": {
- "type": "boolean",
- "value": false
- }
- },
- {
- "name": "required",
- "value": {
- "type": "boolean",
- "value": false
- }
- },
- {
- "name": "labelledby",
- "value": {
- "type": "nodeList",
- "relatedNodes": [
- {
- "idref": "3a",
- "text": "1",
- "nodeResult": "p#3a"
- },
- {
- "idref": "3b",
- "text": "2",
- "nodeResult": "td#3b"
- },
- {
- "idref": "3c",
- "text": "3",
- "nodeResult": "td#3c"
- },
- {
- "idref": "3d",
- "text": "4",
- "nodeResult": "td#3d"
- },
- {
- "idref": "3e",
- "text": "",
- "nodeResult": "tr#3e"
- },
- {
- "idref": "3f",
- "text": "6",
- "nodeResult": "tr#3f"
- },
- {
- "idref": "3g",
- "text": "7",
- "nodeResult": "p#3g"
- }
- ]
- }
- }
- ]
- }
+ }
+ ]
}
}
{
"id": "<int>",
"result": {
- "accessibilityNode": {
- "nodeId": "<string>",
- "ignored": false,
- "role": {
- "type": "role",
- "value": "textbox"
- },
- "name": {
- "type": "computedString",
- "value": "1 2 7",
- "sources": [
+ "nodes": [
+ {
+ "nodeId": "<string>",
+ "ignored": false,
+ "role": {
+ "type": "role",
+ "value": "textbox"
+ },
+ "name": {
+ "type": "computedString",
+ "value": "1 2 7",
+ "sources": [
+ {
+ "type": "relatedElement",
+ "value": {
+ "type": "computedString",
+ "value": "\n 1 \n \n 2 \n \n \n \n \n \n 7 \n "
+ },
+ "attribute": "aria-labelledby",
+ "attributeValue": {
+ "type": "idrefList",
+ "value": "label4",
+ "relatedNodes": [
+ {
+ "idref": "label4",
+ "text": "\n 1 \n \n 2 \n \n \n \n \n \n 7 \n ",
+ "nodeResult": "div#label4"
+ }
+ ]
+ }
+ },
+ {
+ "type": "attribute",
+ "attribute": "aria-label",
+ "superseded": true
+ },
+ {
+ "type": "relatedElement",
+ "superseded": true,
+ "nativeSource": "label"
+ },
+ {
+ "type": "placeholder",
+ "attribute": "placeholder",
+ "superseded": true
+ },
+ {
+ "type": "attribute",
+ "attribute": "title",
+ "superseded": true
+ }
+ ]
+ },
+ "properties": [
{
- "type": "relatedElement",
+ "name": "invalid",
"value": {
- "type": "computedString",
- "value": "\n 1 \n \n 2 \n \n \n \n \n \n 7 \n "
- },
- "attribute": "aria-labelledby",
- "attributeValue": {
- "type": "idrefList",
- "value": "label4",
- "relatedNodes": [
- {
- "idref": "label4",
- "text": "\n 1 \n \n 2 \n \n \n \n \n \n 7 \n ",
- "nodeResult": "div#label4"
- }
- ]
+ "type": "token",
+ "value": "false"
}
},
{
- "type": "attribute",
- "attribute": "aria-label",
- "superseded": true
+ "name": "multiline",
+ "value": {
+ "type": "boolean",
+ "value": false
+ }
},
{
- "type": "relatedElement",
- "superseded": true,
- "nativeSource": "label"
+ "name": "readonly",
+ "value": {
+ "type": "boolean",
+ "value": false
+ }
},
{
- "type": "placeholder",
- "attribute": "placeholder",
- "superseded": true
+ "name": "required",
+ "value": {
+ "type": "boolean",
+ "value": false
+ }
},
{
- "type": "attribute",
- "attribute": "title",
- "superseded": true
+ "name": "labelledby",
+ "value": {
+ "type": "nodeList",
+ "relatedNodes": [
+ {
+ "idref": "label4",
+ "text": "\n 1 \n \n 2 \n \n \n \n \n \n 7 \n ",
+ "nodeResult": "div#label4"
+ }
+ ]
+ }
}
]
- },
- "properties": [
- {
- "name": "invalid",
- "value": {
- "type": "token",
- "value": "false"
- }
- },
- {
- "name": "multiline",
- "value": {
- "type": "boolean",
- "value": false
- }
- },
- {
- "name": "readonly",
- "value": {
- "type": "boolean",
- "value": false
- }
- },
- {
- "name": "required",
- "value": {
- "type": "boolean",
- "value": false
- }
- },
- {
- "name": "labelledby",
- "value": {
- "type": "nodeList",
- "relatedNodes": [
- {
- "idref": "label4",
- "text": "\n 1 \n \n 2 \n \n \n \n \n \n 7 \n ",
- "nodeResult": "div#label4"
- }
- ]
- }
- }
- ]
- }
+ }
+ ]
}
}
{
"id": "<int>",
"result": {
- "accessibilityNode": {
- "nodeId": "<string>",
- "ignored": false,
- "role": {
- "type": "role",
- "value": "button"
- },
- "name": {
- "type": "computedString",
- "value": "Hidden text",
- "sources": [
+ "nodes": [
+ {
+ "nodeId": "<string>",
+ "ignored": false,
+ "role": {
+ "type": "role",
+ "value": "button"
+ },
+ "name": {
+ "type": "computedString",
+ "value": "Hidden text",
+ "sources": [
+ {
+ "type": "relatedElement",
+ "value": {
+ "type": "computedString",
+ "value": "Hidden text"
+ },
+ "attribute": "aria-labelledby",
+ "attributeValue": {
+ "type": "idrefList",
+ "value": "hidden1",
+ "relatedNodes": [
+ {
+ "idref": "hidden1",
+ "text": "Hidden text",
+ "nodeResult": "p#hidden1"
+ }
+ ]
+ }
+ },
+ {
+ "type": "attribute",
+ "attribute": "aria-label",
+ "superseded": true
+ },
+ {
+ "type": "relatedElement",
+ "superseded": true,
+ "nativeSource": "label"
+ },
+ {
+ "type": "contents",
+ "superseded": true
+ },
+ {
+ "type": "attribute",
+ "attribute": "title",
+ "superseded": true
+ }
+ ]
+ },
+ "properties": [
{
- "type": "relatedElement",
+ "name": "invalid",
"value": {
- "type": "computedString",
- "value": "Hidden text"
- },
- "attribute": "aria-labelledby",
- "attributeValue": {
- "type": "idrefList",
- "value": "hidden1",
+ "type": "token",
+ "value": "false"
+ }
+ },
+ {
+ "name": "labelledby",
+ "value": {
+ "type": "nodeList",
"relatedNodes": [
{
"idref": "hidden1",
@@ -433,77 +484,79 @@
}
]
}
- },
- {
- "type": "attribute",
- "attribute": "aria-label",
- "superseded": true
- },
- {
- "type": "relatedElement",
- "superseded": true,
- "nativeSource": "label"
- },
- {
- "type": "contents",
- "superseded": true
- },
- {
- "type": "attribute",
- "attribute": "title",
- "superseded": true
}
]
- },
- "properties": [
- {
- "name": "invalid",
- "value": {
- "type": "token",
- "value": "false"
- }
- },
- {
- "name": "labelledby",
- "value": {
- "type": "nodeList",
- "relatedNodes": [
- {
- "idref": "hidden1",
- "text": "Hidden text",
- "nodeResult": "p#hidden1"
- }
- ]
- }
- }
- ]
- }
+ }
+ ]
}
}
{
"id": "<int>",
"result": {
- "accessibilityNode": {
- "nodeId": "<string>",
- "ignored": false,
- "role": {
- "type": "role",
- "value": "button"
- },
- "name": {
- "type": "computedString",
- "value": "Before After",
- "sources": [
+ "nodes": [
+ {
+ "nodeId": "<string>",
+ "ignored": false,
+ "role": {
+ "type": "role",
+ "value": "button"
+ },
+ "name": {
+ "type": "computedString",
+ "value": "Before After",
+ "sources": [
+ {
+ "type": "relatedElement",
+ "value": {
+ "type": "computedString",
+ "value": "Before After"
+ },
+ "attribute": "aria-labelledby",
+ "attributeValue": {
+ "type": "idrefList",
+ "value": "heading2",
+ "relatedNodes": [
+ {
+ "idref": "heading2",
+ "text": "Before After",
+ "nodeResult": "h3#heading2"
+ }
+ ]
+ }
+ },
+ {
+ "type": "attribute",
+ "attribute": "aria-label",
+ "superseded": true
+ },
+ {
+ "type": "relatedElement",
+ "superseded": true,
+ "nativeSource": "label"
+ },
+ {
+ "type": "contents",
+ "superseded": true
+ },
+ {
+ "type": "attribute",
+ "attribute": "title",
+ "superseded": true
+ }
+ ]
+ },
+ "properties": [
{
- "type": "relatedElement",
+ "name": "invalid",
"value": {
- "type": "computedString",
- "value": "Before After"
- },
- "attribute": "aria-labelledby",
- "attributeValue": {
- "type": "idrefList",
- "value": "heading2",
+ "type": "token",
+ "value": "false"
+ }
+ },
+ {
+ "name": "labelledby",
+ "value": {
+ "type": "nodeList",
"relatedNodes": [
{
"idref": "heading2",
@@ -512,77 +565,79 @@
}
]
}
- },
- {
- "type": "attribute",
- "attribute": "aria-label",
- "superseded": true
- },
- {
- "type": "relatedElement",
- "superseded": true,
- "nativeSource": "label"
- },
- {
- "type": "contents",
- "superseded": true
- },
- {
- "type": "attribute",
- "attribute": "title",
- "superseded": true
}
]
- },
- "properties": [
- {
- "name": "invalid",
- "value": {
- "type": "token",
- "value": "false"
- }
- },
- {
- "name": "labelledby",
- "value": {
- "type": "nodeList",
- "relatedNodes": [
- {
- "idref": "heading2",
- "text": "Before After",
- "nodeResult": "h3#heading2"
- }
- ]
- }
- }
- ]
- }
+ }
+ ]
}
}
{
"id": "<int>",
"result": {
- "accessibilityNode": {
- "nodeId": "<string>",
- "ignored": false,
- "role": {
- "type": "role",
- "value": "button"
- },
- "name": {
- "type": "computedString",
- "value": "Text within hidden subtree",
- "sources": [
+ "nodes": [
+ {
+ "nodeId": "<string>",
+ "ignored": false,
+ "role": {
+ "type": "role",
+ "value": "button"
+ },
+ "name": {
+ "type": "computedString",
+ "value": "Text within hidden subtree",
+ "sources": [
+ {
+ "type": "relatedElement",
+ "value": {
+ "type": "computedString",
+ "value": "Text within hidden subtree"
+ },
+ "attribute": "aria-labelledby",
+ "attributeValue": {
+ "type": "idrefList",
+ "value": "hidden3",
+ "relatedNodes": [
+ {
+ "idref": "hidden3",
+ "text": "Text within hidden subtree",
+ "nodeResult": "p#hidden3"
+ }
+ ]
+ }
+ },
+ {
+ "type": "attribute",
+ "attribute": "aria-label",
+ "superseded": true
+ },
+ {
+ "type": "relatedElement",
+ "superseded": true,
+ "nativeSource": "label"
+ },
+ {
+ "type": "contents",
+ "superseded": true
+ },
+ {
+ "type": "attribute",
+ "attribute": "title",
+ "superseded": true
+ }
+ ]
+ },
+ "properties": [
{
- "type": "relatedElement",
+ "name": "invalid",
"value": {
- "type": "computedString",
- "value": "Text within hidden subtree"
- },
- "attribute": "aria-labelledby",
- "attributeValue": {
- "type": "idrefList",
- "value": "hidden3",
+ "type": "token",
+ "value": "false"
+ }
+ },
+ {
+ "name": "labelledby",
+ "value": {
+ "type": "nodeList",
"relatedNodes": [
{
"idref": "hidden3",
@@ -591,77 +646,79 @@
}
]
}
- },
- {
- "type": "attribute",
- "attribute": "aria-label",
- "superseded": true
- },
- {
- "type": "relatedElement",
- "superseded": true,
- "nativeSource": "label"
- },
- {
- "type": "contents",
- "superseded": true
- },
- {
- "type": "attribute",
- "attribute": "title",
- "superseded": true
}
]
- },
- "properties": [
- {
- "name": "invalid",
- "value": {
- "type": "token",
- "value": "false"
- }
- },
- {
- "name": "labelledby",
- "value": {
- "type": "nodeList",
- "relatedNodes": [
- {
- "idref": "hidden3",
- "text": "Text within hidden subtree",
- "nodeResult": "p#hidden3"
- }
- ]
- }
- }
- ]
- }
+ }
+ ]
}
}
{
"id": "<int>",
"result": {
- "accessibilityNode": {
- "nodeId": "<string>",
- "ignored": false,
- "role": {
- "type": "role",
- "value": "button"
- },
- "name": {
- "type": "computedString",
- "value": "Before After",
- "sources": [
+ "nodes": [
+ {
+ "nodeId": "<string>",
+ "ignored": false,
+ "role": {
+ "type": "role",
+ "value": "button"
+ },
+ "name": {
+ "type": "computedString",
+ "value": "Before After",
+ "sources": [
+ {
+ "type": "relatedElement",
+ "value": {
+ "type": "computedString",
+ "value": "Before After"
+ },
+ "attribute": "aria-labelledby",
+ "attributeValue": {
+ "type": "idrefList",
+ "value": "heading4",
+ "relatedNodes": [
+ {
+ "idref": "heading4",
+ "text": "Before After",
+ "nodeResult": "h3#heading4"
+ }
+ ]
+ }
+ },
+ {
+ "type": "attribute",
+ "attribute": "aria-label",
+ "superseded": true
+ },
+ {
+ "type": "relatedElement",
+ "superseded": true,
+ "nativeSource": "label"
+ },
+ {
+ "type": "contents",
+ "superseded": true
+ },
+ {
+ "type": "attribute",
+ "attribute": "title",
+ "superseded": true
+ }
+ ]
+ },
+ "properties": [
{
- "type": "relatedElement",
+ "name": "invalid",
"value": {
- "type": "computedString",
- "value": "Before After"
- },
- "attribute": "aria-labelledby",
- "attributeValue": {
- "type": "idrefList",
- "value": "heading4",
+ "type": "token",
+ "value": "false"
+ }
+ },
+ {
+ "name": "labelledby",
+ "value": {
+ "type": "nodeList",
"relatedNodes": [
{
"idref": "heading4",
@@ -670,147 +727,108 @@
}
]
}
- },
- {
- "type": "attribute",
- "attribute": "aria-label",
- "superseded": true
- },
- {
- "type": "relatedElement",
- "superseded": true,
- "nativeSource": "label"
- },
- {
- "type": "contents",
- "superseded": true
- },
- {
- "type": "attribute",
- "attribute": "title",
- "superseded": true
}
]
- },
- "properties": [
- {
- "name": "invalid",
- "value": {
- "type": "token",
- "value": "false"
- }
- },
- {
- "name": "labelledby",
- "value": {
- "type": "nodeList",
- "relatedNodes": [
- {
- "idref": "heading4",
- "text": "Before After",
- "nodeResult": "h3#heading4"
- }
- ]
- }
- }
- ]
- }
+ }
+ ]
}
}
{
"id": "<int>",
"result": {
- "accessibilityNode": {
- "nodeId": "<string>",
- "ignored": false,
- "role": {
- "type": "role",
- "value": "textbox"
- },
- "name": {
- "type": "computedString",
- "value": "Before After",
- "sources": [
+ "nodes": [
+ {
+ "nodeId": "<string>",
+ "ignored": false,
+ "role": {
+ "type": "role",
+ "value": "textbox"
+ },
+ "name": {
+ "type": "computedString",
+ "value": "Before After",
+ "sources": [
+ {
+ "type": "relatedElement",
+ "attribute": "aria-labelledby"
+ },
+ {
+ "type": "attribute",
+ "attribute": "aria-label"
+ },
+ {
+ "type": "relatedElement",
+ "value": {
+ "type": "computedString",
+ "value": "Before After"
+ },
+ "nativeSource": "labelfor",
+ "nativeSourceValue": {
+ "type": "nodeList",
+ "relatedNodes": [
+ {
+ "backendNodeId": "<string>",
+ "text": "Before After"
+ }
+ ]
+ }
+ },
+ {
+ "type": "placeholder",
+ "attribute": "placeholder",
+ "superseded": true
+ },
+ {
+ "type": "attribute",
+ "attribute": "title",
+ "superseded": true
+ }
+ ]
+ },
+ "properties": [
+ {
+ "name": "invalid",
+ "value": {
+ "type": "token",
+ "value": "false"
+ }
+ },
{
- "type": "relatedElement",
- "attribute": "aria-labelledby"
+ "name": "multiline",
+ "value": {
+ "type": "boolean",
+ "value": false
+ }
},
{
- "type": "attribute",
- "attribute": "aria-label"
+ "name": "readonly",
+ "value": {
+ "type": "boolean",
+ "value": false
+ }
},
{
- "type": "relatedElement",
+ "name": "required",
+ "value": {
+ "type": "boolean",
+ "value": false
+ }
+ },
+ {
+ "name": "labelledby",
"value": {
- "type": "computedString",
- "value": "Before After"
- },
- "nativeSource": "labelfor",
- "nativeSourceValue": {
"type": "nodeList",
"relatedNodes": [
{
- "backendNodeId": "<string>",
- "text": "Before After"
+ "text": "Before After",
+ "nodeResult": "label"
}
]
}
- },
- {
- "type": "placeholder",
- "attribute": "placeholder",
- "superseded": true
- },
- {
- "type": "attribute",
- "attribute": "title",
- "superseded": true
}
]
- },
- "properties": [
- {
- "name": "invalid",
- "value": {
- "type": "token",
- "value": "false"
- }
- },
- {
- "name": "multiline",
- "value": {
- "type": "boolean",
- "value": false
- }
- },
- {
- "name": "readonly",
- "value": {
- "type": "boolean",
- "value": false
- }
- },
- {
- "name": "required",
- "value": {
- "type": "boolean",
- "value": false
- }
- },
- {
- "name": "labelledby",
- "value": {
- "type": "nodeList",
- "relatedNodes": [
- {
- "text": "Before After",
- "nodeResult": "label"
- }
- ]
- }
- }
- ]
- }
+ }
+ ]
}
}

Powered by Google App Engine
This is Rietveld 408576698