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" |
} |
] |