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

Side by Side 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 unified diff | Download patch
OLDNEW
1 { 1 {
2 "id": "<int>", 2 "id": "<int>",
3 "result": { 3 "result": {
4 "accessibilityNode": { 4 "accessibilityNode": {
5 "nodeId": "<string>", 5 "nodeId": "<string>",
6 "ignored": false, 6 "ignored": false,
7 "role": { 7 "role": {
8 "type": "role", 8 "type": "role",
9 "value": "textbox" 9 "value": "textbox"
10 }, 10 },
(...skipping 751 matching lines...) Expand 10 before | Expand all | Expand 10 after
762 "result": { 762 "result": {
763 "accessibilityNode": { 763 "accessibilityNode": {
764 "nodeId": "<string>", 764 "nodeId": "<string>",
765 "ignored": false, 765 "ignored": false,
766 "role": { 766 "role": {
767 "type": "role", 767 "type": "role",
768 "value": "textbox" 768 "value": "textbox"
769 }, 769 },
770 "name": { 770 "name": {
771 "type": "computedString", 771 "type": "computedString",
772 "value": "label-for-text9", 772 "value": "label-for-text9 label-wrapping-text9",
773 "sources": [ 773 "sources": [
774 { 774 {
775 "type": "relatedElement", 775 "type": "relatedElement",
776 "attribute": "aria-labelledby" 776 "attribute": "aria-labelledby"
777 }, 777 },
778 { 778 {
779 "type": "attribute", 779 "type": "attribute",
780 "attribute": "aria-label" 780 "attribute": "aria-label"
781 }, 781 },
782 { 782 {
783 "type": "relatedElement", 783 "type": "relatedElement",
784 "value": { 784 "value": {
785 "type": "computedString", 785 "type": "computedString",
786 "value": "label-for-text9" 786 "value": "label-for-text9 label-wrapping-text9"
787 }, 787 },
788 "nativeSource": "labelfor", 788 "nativeSource": "labelwrapped",
789 "nativeSourceValue": { 789 "nativeSourceValue": {
790 "type": "nodeList", 790 "type": "nodeList",
791 "relatedNodes": [ 791 "relatedNodes": [
792 { 792 {
793 "backendNodeId": "<string>", 793 "backendNodeId": "<string>",
794 "text": "label-for-text9" 794 "text": "label-for-text9"
795 },
796 {
797 "backendNodeId": "<string>",
798 "text": "label-wrapping-text9"
795 } 799 }
796 ] 800 ]
797 } 801 }
798 }, 802 },
799 { 803 {
800 "type": "placeholder", 804 "type": "placeholder",
801 "value": { 805 "value": {
802 "type": "computedString", 806 "type": "computedString",
803 "value": "text9-placeholder" 807 "value": "text9-placeholder"
804 }, 808 },
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
854 } 858 }
855 }, 859 },
856 { 860 {
857 "name": "labelledby", 861 "name": "labelledby",
858 "value": { 862 "value": {
859 "type": "nodeList", 863 "type": "nodeList",
860 "relatedNodes": [ 864 "relatedNodes": [
861 { 865 {
862 "text": "label-for-text9", 866 "text": "label-for-text9",
863 "nodeResult": "label" 867 "nodeResult": "label"
868 },
869 {
870 "text": "label-wrapping-text9",
871 "nodeResult": "label"
864 } 872 }
865 ] 873 ]
866 } 874 }
867 } 875 }
868 ] 876 ]
869 } 877 }
870 } 878 }
871 } 879 }
872 { 880 {
873 "id": "<int>", 881 "id": "<int>",
(...skipping 14 matching lines...) Expand all
888 "attribute": "aria-labelledby" 896 "attribute": "aria-labelledby"
889 }, 897 },
890 { 898 {
891 "type": "attribute", 899 "type": "attribute",
892 "attribute": "aria-label" 900 "attribute": "aria-label"
893 }, 901 },
894 { 902 {
895 "type": "relatedElement", 903 "type": "relatedElement",
896 "value": { 904 "value": {
897 "type": "computedString", 905 "type": "computedString",
898 "value": "label-wrapping-text10" 906 "value": "label-wrapping-text10 "
899 }, 907 },
900 "nativeSource": "labelwrapped", 908 "nativeSource": "labelwrapped",
901 "nativeSourceValue": { 909 "nativeSourceValue": {
902 "type": "nodeList", 910 "type": "nodeList",
903 "relatedNodes": [ 911 "relatedNodes": [
904 { 912 {
905 "backendNodeId": "<string>", 913 "backendNodeId": "<string>",
906 "text": "label-wrapping-text10" 914 "text": "label-wrapping-text10 "
907 } 915 }
908 ] 916 ]
909 } 917 }
910 }, 918 },
911 { 919 {
912 "type": "placeholder", 920 "type": "placeholder",
913 "value": { 921 "value": {
914 "type": "computedString", 922 "type": "computedString",
915 "value": "text10-placeholder" 923 "value": "text10-placeholder"
916 }, 924 },
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
964 "type": "boolean", 972 "type": "boolean",
965 "value": false 973 "value": false
966 } 974 }
967 }, 975 },
968 { 976 {
969 "name": "labelledby", 977 "name": "labelledby",
970 "value": { 978 "value": {
971 "type": "nodeList", 979 "type": "nodeList",
972 "relatedNodes": [ 980 "relatedNodes": [
973 { 981 {
974 "text": "label-wrapping-text10", 982 "text": "label-wrapping-text10 ",
975 "nodeResult": "label" 983 "nodeResult": "label"
976 } 984 }
977 ] 985 ]
986 }
987 }
988 ]
989 }
990 }
991 }
992 {
993 "id": "<int>",
994 "result": {
995 "accessibilityNode": {
996 "nodeId": "<string>",
997 "ignored": false,
998 "role": {
999 "type": "role",
1000 "value": "textbox"
1001 },
1002 "name": {
1003 "type": "computedString",
1004 "value": "first-label-for-text11 second-label-for-text11",
1005 "sources": [
1006 {
1007 "type": "relatedElement",
1008 "attribute": "aria-labelledby"
1009 },
1010 {
1011 "type": "attribute",
1012 "attribute": "aria-label"
1013 },
1014 {
1015 "type": "relatedElement",
1016 "value": {
1017 "type": "computedString",
1018 "value": "first-label-for-text11 second-label-for-text11"
1019 },
1020 "nativeSource": "labelfor",
1021 "nativeSourceValue": {
1022 "type": "nodeList",
1023 "relatedNodes": [
1024 {
1025 "backendNodeId": "<string>",
1026 "text": "first-label-for-text11"
1027 },
1028 {
1029 "backendNodeId": "<string>",
1030 "text": "second-label-for-text11"
1031 }
1032 ]
1033 }
1034 },
1035 {
1036 "type": "placeholder",
1037 "attribute": "placeholder",
1038 "superseded": true
1039 },
1040 {
1041 "type": "attribute",
1042 "attribute": "title",
1043 "superseded": true
1044 }
1045 ]
1046 },
1047 "properties": [
1048 {
1049 "name": "invalid",
1050 "value": {
1051 "type": "token",
1052 "value": "false"
1053 }
1054 },
1055 {
1056 "name": "multiline",
1057 "value": {
1058 "type": "boolean",
1059 "value": false
1060 }
1061 },
1062 {
1063 "name": "readonly",
1064 "value": {
1065 "type": "boolean",
1066 "value": false
1067 }
1068 },
1069 {
1070 "name": "required",
1071 "value": {
1072 "type": "boolean",
1073 "value": false
1074 }
1075 },
1076 {
1077 "name": "labelledby",
1078 "value": {
1079 "type": "nodeList",
1080 "relatedNodes": [
1081 {
1082 "text": "first-label-for-text11",
1083 "nodeResult": "label"
1084 },
1085 {
1086 "text": "second-label-for-text11",
1087 "nodeResult": "label"
1088 }
1089 ]
978 } 1090 }
979 } 1091 }
980 ] 1092 ]
981 } 1093 }
982 } 1094 }
983 } 1095 }
984 1096
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698