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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 | 260 |
261 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaForm) { | 261 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaForm) { |
262 RunAriaTest(FILE_PATH_LITERAL("aria-form.html")); | 262 RunAriaTest(FILE_PATH_LITERAL("aria-form.html")); |
263 } | 263 } |
264 | 264 |
265 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, | 265 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, |
266 DISABLED_AccessibilityAriaGrabbed) { | 266 DISABLED_AccessibilityAriaGrabbed) { |
267 RunAriaTest(FILE_PATH_LITERAL("aria-grabbed.html")); | 267 RunAriaTest(FILE_PATH_LITERAL("aria-grabbed.html")); |
268 } | 268 } |
269 | 269 |
| 270 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaGrid) { |
| 271 RunAriaTest(FILE_PATH_LITERAL("aria-grid.html")); |
| 272 } |
| 273 |
| 274 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaGridCell) { |
| 275 RunAriaTest(FILE_PATH_LITERAL("aria-gridcell.html")); |
| 276 } |
| 277 |
| 278 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaGroup) { |
| 279 RunAriaTest(FILE_PATH_LITERAL("aria-group.html")); |
| 280 } |
| 281 |
270 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaImg) { | 282 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaImg) { |
271 RunAriaTest(FILE_PATH_LITERAL("aria-img.html")); | 283 RunAriaTest(FILE_PATH_LITERAL("aria-img.html")); |
272 } | 284 } |
273 | 285 |
274 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaInvalid) { | 286 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaInvalid) { |
275 RunAriaTest(FILE_PATH_LITERAL("aria-invalid.html")); | 287 RunAriaTest(FILE_PATH_LITERAL("aria-invalid.html")); |
276 } | 288 } |
277 | 289 |
278 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaLabel) { | 290 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaLabel) { |
279 RunAriaTest(FILE_PATH_LITERAL("aria-label.html")); | 291 RunAriaTest(FILE_PATH_LITERAL("aria-label.html")); |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
495 } | 507 } |
496 | 508 |
497 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaTab) { | 509 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaTab) { |
498 RunAriaTest(FILE_PATH_LITERAL("aria-tab.html")); | 510 RunAriaTest(FILE_PATH_LITERAL("aria-tab.html")); |
499 } | 511 } |
500 | 512 |
501 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaTabList) { | 513 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaTabList) { |
502 RunAriaTest(FILE_PATH_LITERAL("aria-tablist.html")); | 514 RunAriaTest(FILE_PATH_LITERAL("aria-tablist.html")); |
503 } | 515 } |
504 | 516 |
| 517 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaTabPanel) { |
| 518 RunAriaTest(FILE_PATH_LITERAL("aria-tabpanel.html")); |
| 519 } |
| 520 |
505 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaTextbox) { | 521 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaTextbox) { |
506 RunAriaTest(FILE_PATH_LITERAL("aria-textbox.html")); | 522 RunAriaTest(FILE_PATH_LITERAL("aria-textbox.html")); |
507 } | 523 } |
508 | 524 |
509 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaTimer) { | 525 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaTimer) { |
510 RunAriaTest(FILE_PATH_LITERAL("aria-timer.html")); | 526 RunAriaTest(FILE_PATH_LITERAL("aria-timer.html")); |
511 } | 527 } |
512 | 528 |
513 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, | 529 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, |
514 AccessibilityAriaToggleButton) { | 530 AccessibilityAriaToggleButton) { |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
556 } | 572 } |
557 | 573 |
558 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAudio) { | 574 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAudio) { |
559 RunHtmlTest(FILE_PATH_LITERAL("audio.html")); | 575 RunHtmlTest(FILE_PATH_LITERAL("audio.html")); |
560 } | 576 } |
561 | 577 |
562 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAWithImg) { | 578 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAWithImg) { |
563 RunHtmlTest(FILE_PATH_LITERAL("a-with-img.html")); | 579 RunHtmlTest(FILE_PATH_LITERAL("a-with-img.html")); |
564 } | 580 } |
565 | 581 |
| 582 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityB) { |
| 583 RunHtmlTest(FILE_PATH_LITERAL("b.html")); |
| 584 } |
| 585 |
| 586 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityBase) { |
| 587 RunHtmlTest(FILE_PATH_LITERAL("base.html")); |
| 588 } |
| 589 |
566 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityBdo) { | 590 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityBdo) { |
567 RunHtmlTest(FILE_PATH_LITERAL("bdo.html")); | 591 RunHtmlTest(FILE_PATH_LITERAL("bdo.html")); |
568 } | 592 } |
569 | 593 |
570 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityBlockquote) { | 594 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityBlockquote) { |
571 RunHtmlTest(FILE_PATH_LITERAL("blockquote.html")); | 595 RunHtmlTest(FILE_PATH_LITERAL("blockquote.html")); |
572 } | 596 } |
573 | 597 |
574 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityBody) { | 598 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityBody) { |
575 RunHtmlTest(FILE_PATH_LITERAL("body.html")); | 599 RunHtmlTest(FILE_PATH_LITERAL("body.html")); |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
776 } | 800 } |
777 | 801 |
778 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputEmail) { | 802 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputEmail) { |
779 RunHtmlTest(FILE_PATH_LITERAL("input-email.html")); | 803 RunHtmlTest(FILE_PATH_LITERAL("input-email.html")); |
780 } | 804 } |
781 | 805 |
782 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputFile) { | 806 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputFile) { |
783 RunHtmlTest(FILE_PATH_LITERAL("input-file.html")); | 807 RunHtmlTest(FILE_PATH_LITERAL("input-file.html")); |
784 } | 808 } |
785 | 809 |
| 810 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputHidden) { |
| 811 RunHtmlTest(FILE_PATH_LITERAL("input-hidden.html")); |
| 812 } |
| 813 |
786 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputImage) { | 814 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputImage) { |
787 RunHtmlTest(FILE_PATH_LITERAL("input-image.html")); | 815 RunHtmlTest(FILE_PATH_LITERAL("input-image.html")); |
788 } | 816 } |
789 | 817 |
790 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, | 818 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, |
791 AccessibilityInputImageButtonInMenu) { | 819 AccessibilityInputImageButtonInMenu) { |
792 RunHtmlTest(FILE_PATH_LITERAL("input-image-button-in-menu.html")); | 820 RunHtmlTest(FILE_PATH_LITERAL("input-image-button-in-menu.html")); |
793 } | 821 } |
794 | 822 |
795 // crbug.com/423675 - AX tree is different for Win7 and Win8. | 823 // crbug.com/423675 - AX tree is different for Win7 and Win8. |
796 #if defined(OS_WIN) | 824 #if defined(OS_WIN) |
797 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, | 825 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, |
798 DISABLED_AccessibilityInputMonth) { | 826 DISABLED_AccessibilityInputMonth) { |
799 RunHtmlTest(FILE_PATH_LITERAL("input-month.html")); | 827 RunHtmlTest(FILE_PATH_LITERAL("input-month.html")); |
800 } | 828 } |
801 #else | 829 #else |
802 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputMonth) { | 830 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputMonth) { |
803 RunHtmlTest(FILE_PATH_LITERAL("input-month.html")); | 831 RunHtmlTest(FILE_PATH_LITERAL("input-month.html")); |
804 } | 832 } |
805 #endif | 833 #endif |
806 | 834 |
| 835 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputPassword) { |
| 836 RunHtmlTest(FILE_PATH_LITERAL("input-password.html")); |
| 837 } |
| 838 |
807 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputRadio) { | 839 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputRadio) { |
808 RunHtmlTest(FILE_PATH_LITERAL("input-radio.html")); | 840 RunHtmlTest(FILE_PATH_LITERAL("input-radio.html")); |
809 } | 841 } |
810 | 842 |
811 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, | 843 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, |
812 AccessibilityInputRadioInMenu) { | 844 AccessibilityInputRadioInMenu) { |
813 RunHtmlTest(FILE_PATH_LITERAL("input-radio-in-menu.html")); | 845 RunHtmlTest(FILE_PATH_LITERAL("input-radio-in-menu.html")); |
814 } | 846 } |
815 | 847 |
816 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputRange) { | 848 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputRange) { |
817 RunHtmlTest(FILE_PATH_LITERAL("input-range.html")); | 849 RunHtmlTest(FILE_PATH_LITERAL("input-range.html")); |
818 } | 850 } |
819 | 851 |
820 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputReset) { | 852 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputReset) { |
821 RunHtmlTest(FILE_PATH_LITERAL("input-reset.html")); | 853 RunHtmlTest(FILE_PATH_LITERAL("input-reset.html")); |
822 } | 854 } |
823 | 855 |
824 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputSearch) { | 856 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputSearch) { |
825 RunHtmlTest(FILE_PATH_LITERAL("input-search.html")); | 857 RunHtmlTest(FILE_PATH_LITERAL("input-search.html")); |
826 } | 858 } |
827 | 859 |
| 860 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilitySmall) { |
| 861 RunHtmlTest(FILE_PATH_LITERAL("small.html")); |
| 862 } |
| 863 |
828 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputSubmit) { | 864 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputSubmit) { |
829 RunHtmlTest(FILE_PATH_LITERAL("input-submit.html")); | 865 RunHtmlTest(FILE_PATH_LITERAL("input-submit.html")); |
830 } | 866 } |
831 | 867 |
832 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, | 868 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, |
833 AccessibilityInputSuggestionsSourceElement) { | 869 AccessibilityInputSuggestionsSourceElement) { |
834 RunHtmlTest(FILE_PATH_LITERAL("input-suggestions-source-element.html")); | 870 RunHtmlTest(FILE_PATH_LITERAL("input-suggestions-source-element.html")); |
835 } | 871 } |
836 | 872 |
837 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputTel) { | 873 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputTel) { |
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1112 // crbug.com/281952 | 1148 // crbug.com/281952 |
1113 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, DISABLED_AccessibilityVideo) { | 1149 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, DISABLED_AccessibilityVideo) { |
1114 RunHtmlTest(FILE_PATH_LITERAL("video.html")); | 1150 RunHtmlTest(FILE_PATH_LITERAL("video.html")); |
1115 } | 1151 } |
1116 | 1152 |
1117 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityWbr) { | 1153 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityWbr) { |
1118 RunHtmlTest(FILE_PATH_LITERAL("wbr.html")); | 1154 RunHtmlTest(FILE_PATH_LITERAL("wbr.html")); |
1119 } | 1155 } |
1120 | 1156 |
1121 } // namespace content | 1157 } // namespace content |
OLD | NEW |