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

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

Issue 1939303002: Enable accessible name of a control to include multiple <label> elements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't modify visited set when computing aria-labelledby Created 4 years, 6 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-input-expected.txt
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/accessibility/accessibility-nameSources-input-expected.txt b/third_party/WebKit/LayoutTests/inspector-protocol/accessibility/accessibility-nameSources-input-expected.txt
index 993e7201bb3b300ec648e19f76ae96394516e556..b8a6168ec4535d92612b7856976429ab55b953da 100644
--- a/third_party/WebKit/LayoutTests/inspector-protocol/accessibility/accessibility-nameSources-input-expected.txt
+++ b/third_party/WebKit/LayoutTests/inspector-protocol/accessibility/accessibility-nameSources-input-expected.txt
@@ -769,7 +769,7 @@
},
"name": {
"type": "computedString",
- "value": "label-for-text9",
+ "value": "label-for-text9 label-wrapping-text9",
"sources": [
{
"type": "relatedElement",
@@ -783,15 +783,19 @@
"type": "relatedElement",
"value": {
"type": "computedString",
- "value": "label-for-text9"
+ "value": "label-for-text9 label-wrapping-text9"
},
- "nativeSource": "labelfor",
+ "nativeSource": "labelwrapped",
"nativeSourceValue": {
"type": "nodeList",
"relatedNodes": [
{
"backendNodeId": "<string>",
"text": "label-for-text9"
+ },
+ {
+ "backendNodeId": "<string>",
+ "text": "label-wrapping-text9"
}
]
}
@@ -861,6 +865,10 @@
{
"text": "label-for-text9",
"nodeResult": "label"
+ },
+ {
+ "text": "label-wrapping-text9",
+ "nodeResult": "label"
}
]
}
@@ -895,7 +903,7 @@
"type": "relatedElement",
"value": {
"type": "computedString",
- "value": "label-wrapping-text10"
+ "value": "label-wrapping-text10 "
},
"nativeSource": "labelwrapped",
"nativeSourceValue": {
@@ -903,7 +911,7 @@
"relatedNodes": [
{
"backendNodeId": "<string>",
- "text": "label-wrapping-text10"
+ "text": "label-wrapping-text10 "
}
]
}
@@ -971,7 +979,111 @@
"type": "nodeList",
"relatedNodes": [
{
- "text": "label-wrapping-text10",
+ "text": "label-wrapping-text10 ",
+ "nodeResult": "label"
+ }
+ ]
+ }
+ }
+ ]
+ }
+ }
+}
+{
+ "id": "<int>",
+ "result": {
+ "accessibilityNode": {
+ "nodeId": "<string>",
+ "ignored": false,
+ "role": {
+ "type": "role",
+ "value": "textbox"
+ },
+ "name": {
+ "type": "computedString",
+ "value": "first-label-for-text11 second-label-for-text11",
+ "sources": [
+ {
+ "type": "relatedElement",
+ "attribute": "aria-labelledby"
+ },
+ {
+ "type": "attribute",
+ "attribute": "aria-label"
+ },
+ {
+ "type": "relatedElement",
+ "value": {
+ "type": "computedString",
+ "value": "first-label-for-text11 second-label-for-text11"
+ },
+ "nativeSource": "labelfor",
+ "nativeSourceValue": {
+ "type": "nodeList",
+ "relatedNodes": [
+ {
+ "backendNodeId": "<string>",
+ "text": "first-label-for-text11"
+ },
+ {
+ "backendNodeId": "<string>",
+ "text": "second-label-for-text11"
+ }
+ ]
+ }
+ },
+ {
+ "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": "first-label-for-text11",
+ "nodeResult": "label"
+ },
+ {
+ "text": "second-label-for-text11",
"nodeResult": "label"
}
]

Powered by Google App Engine
This is Rietveld 408576698