OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <set> | 5 #include <set> |
6 #include <string> | 6 #include <string> |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/path_service.h" | 10 #include "base/path_service.h" |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, | 136 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, |
137 AccessibilityAriaActivedescendant) { | 137 AccessibilityAriaActivedescendant) { |
138 RunAriaTest(FILE_PATH_LITERAL("aria-activedescendant.html")); | 138 RunAriaTest(FILE_PATH_LITERAL("aria-activedescendant.html")); |
139 } | 139 } |
140 | 140 |
141 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaAlert) { | 141 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaAlert) { |
142 RunAriaTest(FILE_PATH_LITERAL("aria-alert.html")); | 142 RunAriaTest(FILE_PATH_LITERAL("aria-alert.html")); |
143 } | 143 } |
144 | 144 |
145 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, | 145 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, |
| 146 AccessibilityAriaAlertDialog) { |
| 147 RunAriaTest(FILE_PATH_LITERAL("aria-alertdialog.html")); |
| 148 } |
| 149 |
| 150 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, |
146 AccessibilityAriaApplication) { | 151 AccessibilityAriaApplication) { |
147 RunAriaTest(FILE_PATH_LITERAL("aria-application.html")); | 152 RunAriaTest(FILE_PATH_LITERAL("aria-application.html")); |
148 } | 153 } |
149 | 154 |
150 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaArticle) { | 155 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaArticle) { |
151 RunAriaTest(FILE_PATH_LITERAL("aria-article.html")); | 156 RunAriaTest(FILE_PATH_LITERAL("aria-article.html")); |
152 } | 157 } |
153 | 158 |
154 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaAtomic) { | 159 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaAtomic) { |
155 RunAriaTest(FILE_PATH_LITERAL("aria-atomic.html")); | 160 RunAriaTest(FILE_PATH_LITERAL("aria-atomic.html")); |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 } | 208 } |
204 | 209 |
205 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaControls) { | 210 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaControls) { |
206 RunAriaTest(FILE_PATH_LITERAL("aria-controls.html")); | 211 RunAriaTest(FILE_PATH_LITERAL("aria-controls.html")); |
207 } | 212 } |
208 | 213 |
209 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaDefinition) { | 214 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaDefinition) { |
210 RunAriaTest(FILE_PATH_LITERAL("aria-definition.html")); | 215 RunAriaTest(FILE_PATH_LITERAL("aria-definition.html")); |
211 } | 216 } |
212 | 217 |
| 218 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, |
| 219 AccessibilityAriaDescribedBy) { |
| 220 RunAriaTest(FILE_PATH_LITERAL("aria-describedby.html")); |
| 221 } |
| 222 |
213 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaDialog) { | 223 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaDialog) { |
214 RunAriaTest(FILE_PATH_LITERAL("aria-dialog.html")); | 224 RunAriaTest(FILE_PATH_LITERAL("aria-dialog.html")); |
215 } | 225 } |
216 | 226 |
217 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaDirectory) { | 227 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaDirectory) { |
218 RunAriaTest(FILE_PATH_LITERAL("aria-directory.html")); | 228 RunAriaTest(FILE_PATH_LITERAL("aria-directory.html")); |
219 } | 229 } |
220 | 230 |
221 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaDisabled) { | 231 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaDisabled) { |
222 RunAriaTest(FILE_PATH_LITERAL("aria-disabled.html")); | 232 RunAriaTest(FILE_PATH_LITERAL("aria-disabled.html")); |
(...skipping 29 matching lines...) Expand all Loading... |
252 } | 262 } |
253 | 263 |
254 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaImg) { | 264 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaImg) { |
255 RunAriaTest(FILE_PATH_LITERAL("aria-img.html")); | 265 RunAriaTest(FILE_PATH_LITERAL("aria-img.html")); |
256 } | 266 } |
257 | 267 |
258 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaInvalid) { | 268 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaInvalid) { |
259 RunAriaTest(FILE_PATH_LITERAL("aria-invalid.html")); | 269 RunAriaTest(FILE_PATH_LITERAL("aria-invalid.html")); |
260 } | 270 } |
261 | 271 |
| 272 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaLabel) { |
| 273 RunAriaTest(FILE_PATH_LITERAL("aria-label.html")); |
| 274 } |
| 275 |
262 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, | 276 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, |
263 AccessibilityAriaLabelledByHeading) { | 277 AccessibilityAriaLabelledByHeading) { |
264 RunAriaTest(FILE_PATH_LITERAL("aria-labelledby-heading.html")); | 278 RunAriaTest(FILE_PATH_LITERAL("aria-labelledby-heading.html")); |
265 } | 279 } |
266 | 280 |
267 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaLevel) { | 281 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaLevel) { |
268 RunAriaTest(FILE_PATH_LITERAL("aria-level.html")); | 282 RunAriaTest(FILE_PATH_LITERAL("aria-level.html")); |
269 } | 283 } |
270 | 284 |
271 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaLink) { | 285 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaLink) { |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
370 } | 384 } |
371 | 385 |
372 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaMath) { | 386 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaMath) { |
373 RunAriaTest(FILE_PATH_LITERAL("aria-math.html")); | 387 RunAriaTest(FILE_PATH_LITERAL("aria-math.html")); |
374 } | 388 } |
375 | 389 |
376 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaNone) { | 390 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaNone) { |
377 RunAriaTest(FILE_PATH_LITERAL("aria-none.html")); | 391 RunAriaTest(FILE_PATH_LITERAL("aria-none.html")); |
378 } | 392 } |
379 | 393 |
| 394 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaOption) { |
| 395 RunAriaTest(FILE_PATH_LITERAL("aria-option.html")); |
| 396 } |
| 397 |
380 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, | 398 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, |
381 AccessibilityAriaPresentation) { | 399 AccessibilityAriaPresentation) { |
382 RunAriaTest(FILE_PATH_LITERAL("aria-presentation.html")); | 400 RunAriaTest(FILE_PATH_LITERAL("aria-presentation.html")); |
383 } | 401 } |
384 | 402 |
385 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaPressed) { | 403 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaPressed) { |
386 RunAriaTest(FILE_PATH_LITERAL("aria-pressed.html")); | 404 RunAriaTest(FILE_PATH_LITERAL("aria-pressed.html")); |
387 } | 405 } |
388 | 406 |
389 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, | 407 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
421 } | 439 } |
422 | 440 |
423 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaRowGroup) { | 441 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaRowGroup) { |
424 RunAriaTest(FILE_PATH_LITERAL("aria-rowgroup.html")); | 442 RunAriaTest(FILE_PATH_LITERAL("aria-rowgroup.html")); |
425 } | 443 } |
426 | 444 |
427 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaRowHeader) { | 445 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaRowHeader) { |
428 RunAriaTest(FILE_PATH_LITERAL("aria-rowheader.html")); | 446 RunAriaTest(FILE_PATH_LITERAL("aria-rowheader.html")); |
429 } | 447 } |
430 | 448 |
| 449 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaScrollbar) { |
| 450 RunAriaTest(FILE_PATH_LITERAL("aria-scrollbar.html")); |
| 451 } |
| 452 |
431 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaSearch) { | 453 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaSearch) { |
432 RunAriaTest(FILE_PATH_LITERAL("aria-search.html")); | 454 RunAriaTest(FILE_PATH_LITERAL("aria-search.html")); |
433 } | 455 } |
434 | 456 |
435 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaSelected) { | 457 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaSelected) { |
436 RunAriaTest(FILE_PATH_LITERAL("aria-selected.html")); | 458 RunAriaTest(FILE_PATH_LITERAL("aria-selected.html")); |
437 } | 459 } |
438 | 460 |
439 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaSeparator) { | 461 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaSeparator) { |
440 RunAriaTest(FILE_PATH_LITERAL("aria-separator.html")); | 462 RunAriaTest(FILE_PATH_LITERAL("aria-separator.html")); |
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
830 } | 852 } |
831 | 853 |
832 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputWeek) { | 854 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputWeek) { |
833 RunHtmlTest(FILE_PATH_LITERAL("input-week.html")); | 855 RunHtmlTest(FILE_PATH_LITERAL("input-week.html")); |
834 } | 856 } |
835 | 857 |
836 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityIns) { | 858 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityIns) { |
837 RunHtmlTest(FILE_PATH_LITERAL("ins.html")); | 859 RunHtmlTest(FILE_PATH_LITERAL("ins.html")); |
838 } | 860 } |
839 | 861 |
| 862 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityKeygen) { |
| 863 RunHtmlTest(FILE_PATH_LITERAL("keygen.html")); |
| 864 } |
| 865 |
840 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityLabel) { | 866 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityLabel) { |
841 RunHtmlTest(FILE_PATH_LITERAL("label.html")); | 867 RunHtmlTest(FILE_PATH_LITERAL("label.html")); |
842 } | 868 } |
843 | 869 |
844 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityLandmark) { | 870 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityLandmark) { |
845 RunHtmlTest(FILE_PATH_LITERAL("landmark.html")); | 871 RunHtmlTest(FILE_PATH_LITERAL("landmark.html")); |
846 } | 872 } |
847 | 873 |
848 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityLegend) { | 874 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityLegend) { |
849 RunHtmlTest(FILE_PATH_LITERAL("legend.html")); | 875 RunHtmlTest(FILE_PATH_LITERAL("legend.html")); |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
924 } | 950 } |
925 | 951 |
926 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityOl) { | 952 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityOl) { |
927 RunHtmlTest(FILE_PATH_LITERAL("ol.html")); | 953 RunHtmlTest(FILE_PATH_LITERAL("ol.html")); |
928 } | 954 } |
929 | 955 |
930 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityObject) { | 956 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityObject) { |
931 RunHtmlTest(FILE_PATH_LITERAL("object.html")); | 957 RunHtmlTest(FILE_PATH_LITERAL("object.html")); |
932 } | 958 } |
933 | 959 |
| 960 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityOptgroup) { |
| 961 RunHtmlTest(FILE_PATH_LITERAL("optgroup.html")); |
| 962 } |
| 963 |
934 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, | 964 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, |
935 AccessibilityOptionindatalist) { | 965 AccessibilityOptionindatalist) { |
936 RunHtmlTest(FILE_PATH_LITERAL("option-in-datalist.html")); | 966 RunHtmlTest(FILE_PATH_LITERAL("option-in-datalist.html")); |
937 } | 967 } |
938 | 968 |
939 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, | 969 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, |
940 DISABLED_AccessibilityOutput) { | 970 DISABLED_AccessibilityOutput) { |
941 RunHtmlTest(FILE_PATH_LITERAL("output.html")); | 971 RunHtmlTest(FILE_PATH_LITERAL("output.html")); |
942 } | 972 } |
943 | 973 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
990 } | 1020 } |
991 | 1021 |
992 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilitySpan) { | 1022 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilitySpan) { |
993 RunHtmlTest(FILE_PATH_LITERAL("span.html")); | 1023 RunHtmlTest(FILE_PATH_LITERAL("span.html")); |
994 } | 1024 } |
995 | 1025 |
996 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityStrong) { | 1026 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityStrong) { |
997 RunHtmlTest(FILE_PATH_LITERAL("strong.html")); | 1027 RunHtmlTest(FILE_PATH_LITERAL("strong.html")); |
998 } | 1028 } |
999 | 1029 |
| 1030 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityStyle) { |
| 1031 RunHtmlTest(FILE_PATH_LITERAL("style.html")); |
| 1032 } |
| 1033 |
1000 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilitySub) { | 1034 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilitySub) { |
1001 RunHtmlTest(FILE_PATH_LITERAL("sub.html")); | 1035 RunHtmlTest(FILE_PATH_LITERAL("sub.html")); |
1002 } | 1036 } |
1003 | 1037 |
| 1038 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilitySup) { |
| 1039 RunHtmlTest(FILE_PATH_LITERAL("sup.html")); |
| 1040 } |
| 1041 |
1004 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilitySummary) { | 1042 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilitySummary) { |
1005 RunHtmlTest(FILE_PATH_LITERAL("summary.html")); | 1043 RunHtmlTest(FILE_PATH_LITERAL("summary.html")); |
1006 } | 1044 } |
1007 | 1045 |
1008 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilitySvg) { | 1046 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilitySvg) { |
1009 RunHtmlTest(FILE_PATH_LITERAL("svg.html")); | 1047 RunHtmlTest(FILE_PATH_LITERAL("svg.html")); |
1010 } | 1048 } |
1011 | 1049 |
1012 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityTableSimple) { | 1050 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityTableSimple) { |
1013 RunHtmlTest(FILE_PATH_LITERAL("table-simple.html")); | 1051 RunHtmlTest(FILE_PATH_LITERAL("table-simple.html")); |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1054 // crbug.com/281952 | 1092 // crbug.com/281952 |
1055 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, DISABLED_AccessibilityVideo) { | 1093 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, DISABLED_AccessibilityVideo) { |
1056 RunHtmlTest(FILE_PATH_LITERAL("video.html")); | 1094 RunHtmlTest(FILE_PATH_LITERAL("video.html")); |
1057 } | 1095 } |
1058 | 1096 |
1059 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityWbr) { | 1097 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityWbr) { |
1060 RunHtmlTest(FILE_PATH_LITERAL("wbr.html")); | 1098 RunHtmlTest(FILE_PATH_LITERAL("wbr.html")); |
1061 } | 1099 } |
1062 | 1100 |
1063 } // namespace content | 1101 } // namespace content |
OLD | NEW |