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

Unified Diff: LayoutTests/inspector-protocol/accessibility/accessibility-ignoredNodes-expected.txt

Issue 1076453004: Show reasons why nodes are ignored in accessibility sidebar (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add a catch-all return to ignoredReasonName Created 5 years, 8 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: LayoutTests/inspector-protocol/accessibility/accessibility-ignoredNodes-expected.txt
diff --git a/LayoutTests/inspector-protocol/accessibility/accessibility-ignoredNodes-expected.txt b/LayoutTests/inspector-protocol/accessibility/accessibility-ignoredNodes-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..50c12941ba9dd6bf8dc7a6352e328809074e1b2b
--- /dev/null
+++ b/LayoutTests/inspector-protocol/accessibility/accessibility-ignoredNodes-expected.txt
@@ -0,0 +1,354 @@
+Non-hidden div for comparison
+non-hidden treeitem
+hidden non-treeitem
+ Buttons are leaf nodes
+Descendant of aria-hidden node
+
+List item also presentational
+Div in list isn't presentational
+Content within label refers to label container
+#_1: {
+ "id": "<int>",
+ "result": {
+ "accessibilityNode": {
+ "nodeId": "<string>",
+ "ignored": false,
+ "role": {
+ "type": "internalRole",
+ "value": "Div"
+ },
+ "properties": []
+ }
+ }
+}
+#_2: {
+ "id": "<int>",
+ "result": {
+ "accessibilityNode": {
+ "nodeId": "<string>",
+ "ignored": false,
+ "role": {
+ "type": "role",
+ "value": "treeitem"
+ },
+ "properties": [
+ {
+ "name": "level",
+ "value": {
+ "type": "integer",
+ "value": 1
+ }
+ },
+ {
+ "name": "checked",
+ "value": {
+ "type": "tristate",
+ "value": "false"
+ }
+ },
+ {
+ "name": "selected",
+ "value": {
+ "type": "boolean",
+ "value": false
+ }
+ }
+ ]
+ }
+ }
+}
+#_3: {
+ "id": "<int>",
+ "result": {
+ "accessibilityNode": {
+ "nodeId": "<string>",
+ "ignored": true,
+ "role": {
+ "type": "internalRole",
+ "value": "Div"
+ },
+ "ignoredReasons": [
+ {
+ "name": "ancestorDisallowsChild",
+ "value": {
+ "type": "idref",
+ "relatedNodeValue": {
+ "backendNodeId": "<string>"
+ }
+ }
+ }
+ ]
+ }
+ }
+}
+#_4: {
+ "id": "<int>",
+ "result": {
+ "accessibilityNode": {
+ "nodeId": "<string>",
+ "ignored": true,
+ "role": {
+ "type": "internalRole",
+ "value": "SVGRoot"
+ },
+ "ignoredReasons": [
+ {
+ "name": "ancestorDisallowsChild",
+ "value": {
+ "type": "idref",
+ "relatedNodeValue": {
+ "backendNodeId": "<string>"
+ }
+ }
+ }
+ ]
+ }
+ }
+}
+#_5: {
+ "id": "<int>",
+ "result": {
+ "accessibilityNode": {
+ "nodeId": "<string>",
+ "ignored": true,
+ "role": {
+ "type": "internalRole",
+ "value": "Unknown"
+ },
+ "ignoredReasons": [
+ {
+ "name": "ancestorIsLeafNode",
+ "value": {
+ "type": "idref",
+ "relatedNodeValue": {
+ "backendNodeId": "<string>"
+ }
+ }
+ }
+ ]
+ }
+ }
+}
+#_6: {
+ "id": "<int>",
+ "result": {
+ "accessibilityNode": {
+ "nodeId": "<string>",
+ "ignored": true,
+ "role": {
+ "type": "internalRole",
+ "value": "Div"
+ },
+ "ignoredReasons": [
+ {
+ "name": "ariaHidden",
+ "value": {
+ "type": "boolean",
+ "value": true
+ }
+ }
+ ]
+ }
+ }
+}
+#_7: {
+ "id": "<int>",
+ "result": {
+ "accessibilityNode": {
+ "nodeId": "<string>",
+ "ignored": true,
+ "role": {
+ "type": "internalRole",
+ "value": "Div"
+ },
+ "ignoredReasons": [
+ {
+ "name": "ariaHiddenRoot",
+ "value": {
+ "type": "idref",
+ "relatedNodeValue": {
+ "backendNodeId": "<string>",
+ "idref": "_6"
+ }
+ }
+ }
+ ]
+ }
+ }
+}
+#_8: {
+ "id": "<int>",
+ "result": {
+ "accessibilityNode": {
+ "nodeId": "<string>",
+ "ignored": false,
+ "role": {
+ "type": "role",
+ "value": "img"
+ },
+ "properties": []
+ }
+ }
+}
+#_9: {
+ "id": "<int>",
+ "result": {
+ "accessibilityNode": {
+ "nodeId": "<string>",
+ "ignored": true,
+ "role": {
+ "type": "role",
+ "value": "none"
+ },
+ "ignoredReasons": [
+ {
+ "name": "presentationalRole",
+ "value": {
+ "type": "boolean",
+ "value": true
+ }
+ }
+ ]
+ }
+ }
+}
+#_10: {
+ "id": "<int>",
+ "result": {
+ "accessibilityNode": {
+ "nodeId": "<string>",
+ "ignored": true,
+ "role": {
+ "type": "role",
+ "value": "listitem"
+ },
+ "ignoredReasons": [
+ {
+ "name": "inheritsPresentation",
+ "value": {
+ "type": "idref",
+ "relatedNodeValue": {
+ "backendNodeId": "<string>",
+ "idref": "_9"
+ }
+ }
+ }
+ ]
+ }
+ }
+}
+#_11: {
+ "id": "<int>",
+ "result": {
+ "accessibilityNode": {
+ "nodeId": "<string>",
+ "ignored": false,
+ "role": {
+ "type": "internalRole",
+ "value": "Div"
+ },
+ "properties": []
+ }
+ }
+}
+#_12: {
+ "id": "<int>",
+ "result": {
+ "accessibilityNode": {
+ "nodeId": "<string>",
+ "ignored": true,
+ "role": {
+ "type": "internalRole",
+ "value": "Label"
+ },
+ "ignoredReasons": [
+ {
+ "name": "labelFor",
+ "value": {
+ "type": "idref",
+ "relatedNodeValue": {
+ "backendNodeId": "<string>",
+ "idref": "checkbox"
+ }
+ }
+ }
+ ]
+ }
+ }
+}
+#_13: {
+ "id": "<int>",
+ "result": {
+ "accessibilityNode": {
+ "nodeId": "<string>",
+ "ignored": true,
+ "role": {
+ "type": "internalRole",
+ "value": "Unknown"
+ },
+ "ignoredReasons": [
+ {
+ "name": "labelContainer",
+ "value": {
+ "type": "idref",
+ "relatedNodeValue": {
+ "backendNodeId": "<string>",
+ "idref": "_12"
+ }
+ }
+ },
+ {
+ "name": "labelFor",
+ "value": {
+ "type": "idref",
+ "relatedNodeValue": {
+ "backendNodeId": "<string>",
+ "idref": "checkbox"
+ }
+ }
+ }
+ ]
+ }
+ }
+}
+#_14: {
+ "id": "<int>",
+ "result": {
+ "accessibilityNode": {
+ "nodeId": "<string>",
+ "ignored": true,
+ "ignoredReasons": [
+ {
+ "name": "notRendered",
+ "value": {
+ "type": "boolean",
+ "value": true
+ }
+ }
+ ]
+ }
+ }
+}
+#_15: {
+ "id": "<int>",
+ "result": {
+ "accessibilityNode": {
+ "nodeId": "<string>",
+ "ignored": true,
+ "role": {
+ "type": "internalRole",
+ "value": "Canvas"
+ },
+ "ignoredReasons": [
+ {
+ "name": "probablyPresentational",
+ "value": {
+ "type": "boolean",
+ "value": true
+ }
+ }
+ ]
+ }
+ }
+}
+

Powered by Google App Engine
This is Rietveld 408576698