| 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/files/file_util.h" | 10 #include "base/files/file_util.h" |
| (...skipping 788 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 799 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, | 799 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, |
| 800 AccessibilityInputDateTimeLocal) { | 800 AccessibilityInputDateTimeLocal) { |
| 801 #if defined(OS_MACOSX) | 801 #if defined(OS_MACOSX) |
| 802 // Fails on OS X 10.9 <https://crbug.com/430622>. | 802 // Fails on OS X 10.9 <https://crbug.com/430622>. |
| 803 if (base::mac::IsOSMavericks()) | 803 if (base::mac::IsOSMavericks()) |
| 804 return; | 804 return; |
| 805 #endif | 805 #endif |
| 806 RunTest(FILE_PATH_LITERAL("input-datetime-local.html")); | 806 RunTest(FILE_PATH_LITERAL("input-datetime-local.html")); |
| 807 } | 807 } |
| 808 | 808 |
| 809 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputFile) { |
| 810 RunTest(FILE_PATH_LITERAL("input-file.html")); |
| 811 } |
| 812 |
| 809 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, | 813 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, |
| 810 AccessibilityInputImageButtonInMenu) { | 814 AccessibilityInputImageButtonInMenu) { |
| 811 RunTest(FILE_PATH_LITERAL("input-image-button-in-menu.html")); | 815 RunTest(FILE_PATH_LITERAL("input-image-button-in-menu.html")); |
| 812 } | 816 } |
| 813 | 817 |
| 814 // crbug.com/423675 - AX tree is different for Win7 and Win8. | 818 // crbug.com/423675 - AX tree is different for Win7 and Win8. |
| 815 #if defined(OS_WIN) | 819 #if defined(OS_WIN) |
| 816 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, | 820 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, |
| 817 DISABLED_AccessibilityInputMonth) { | 821 DISABLED_AccessibilityInputMonth) { |
| 818 RunTest(FILE_PATH_LITERAL("input-month.html")); | 822 RunTest(FILE_PATH_LITERAL("input-month.html")); |
| 819 } | 823 } |
| 820 #else | 824 #else |
| 821 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputMonth) { | 825 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputMonth) { |
| 822 RunTest(FILE_PATH_LITERAL("input-month.html")); | 826 RunTest(FILE_PATH_LITERAL("input-month.html")); |
| 823 } | 827 } |
| 824 #endif | 828 #endif |
| 825 | 829 |
| 830 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputNumber) { |
| 831 RunTest(FILE_PATH_LITERAL("input-number.html")); |
| 832 } |
| 833 |
| 826 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputRadio) { | 834 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputRadio) { |
| 827 RunTest(FILE_PATH_LITERAL("input-radio.html")); | 835 RunTest(FILE_PATH_LITERAL("input-radio.html")); |
| 828 } | 836 } |
| 829 | 837 |
| 830 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputRange) { | 838 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputRange) { |
| 831 RunTest(FILE_PATH_LITERAL("input-range.html")); | 839 RunTest(FILE_PATH_LITERAL("input-range.html")); |
| 832 } | 840 } |
| 833 | 841 |
| 834 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputReset) { | 842 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputReset) { |
| 835 RunTest(FILE_PATH_LITERAL("input-reset.html")); | 843 RunTest(FILE_PATH_LITERAL("input-reset.html")); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 860 RunTest(FILE_PATH_LITERAL("input-text-value.html")); | 868 RunTest(FILE_PATH_LITERAL("input-text-value.html")); |
| 861 } | 869 } |
| 862 | 870 |
| 863 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputTime) { | 871 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputTime) { |
| 864 RunTest(FILE_PATH_LITERAL("input-time.html")); | 872 RunTest(FILE_PATH_LITERAL("input-time.html")); |
| 865 } | 873 } |
| 866 | 874 |
| 867 // crbug.com/98976 will cause new elements to be added to the Blink a11y tree | 875 // crbug.com/98976 will cause new elements to be added to the Blink a11y tree |
| 868 // Re-baseline after the Blink change goes in | 876 // Re-baseline after the Blink change goes in |
| 869 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, | 877 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, |
| 870 DISABLED_AccessibilityInputTypes) { | 878 AccessibilityInputTypes) { |
| 871 RunTest(FILE_PATH_LITERAL("input-types.html")); | 879 RunTest(FILE_PATH_LITERAL("input-types.html")); |
| 872 } | 880 } |
| 873 | 881 |
| 874 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputUrl) { | 882 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputUrl) { |
| 875 RunTest(FILE_PATH_LITERAL("input-url.html")); | 883 RunTest(FILE_PATH_LITERAL("input-url.html")); |
| 876 } | 884 } |
| 877 | 885 |
| 878 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputWeek) { | 886 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputWeek) { |
| 879 RunTest(FILE_PATH_LITERAL("input-week.html")); | 887 RunTest(FILE_PATH_LITERAL("input-week.html")); |
| 880 } | 888 } |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 972 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityObject) { | 980 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityObject) { |
| 973 RunTest(FILE_PATH_LITERAL("object.html")); | 981 RunTest(FILE_PATH_LITERAL("object.html")); |
| 974 } | 982 } |
| 975 | 983 |
| 976 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, | 984 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, |
| 977 AccessibilityOptionindatalist) { | 985 AccessibilityOptionindatalist) { |
| 978 RunTest(FILE_PATH_LITERAL("option-in-datalist.html")); | 986 RunTest(FILE_PATH_LITERAL("option-in-datalist.html")); |
| 979 } | 987 } |
| 980 | 988 |
| 981 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, | 989 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, |
| 982 DISABLED_AccessibilityOutput) { | 990 AccessibilityOutput) { |
| 983 RunTest(FILE_PATH_LITERAL("output.html")); | 991 RunTest(FILE_PATH_LITERAL("output.html")); |
| 984 } | 992 } |
| 985 | 993 |
| 986 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityP) { | 994 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityP) { |
| 987 RunTest(FILE_PATH_LITERAL("p.html")); | 995 RunTest(FILE_PATH_LITERAL("p.html")); |
| 988 } | 996 } |
| 989 | 997 |
| 990 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityParam) { | 998 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityParam) { |
| 991 RunTest(FILE_PATH_LITERAL("param.html")); | 999 RunTest(FILE_PATH_LITERAL("param.html")); |
| 992 } | 1000 } |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1088 | 1096 |
| 1089 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityVar) { | 1097 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityVar) { |
| 1090 RunTest(FILE_PATH_LITERAL("var.html")); | 1098 RunTest(FILE_PATH_LITERAL("var.html")); |
| 1091 } | 1099 } |
| 1092 | 1100 |
| 1093 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityWbr) { | 1101 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityWbr) { |
| 1094 RunTest(FILE_PATH_LITERAL("wbr.html")); | 1102 RunTest(FILE_PATH_LITERAL("wbr.html")); |
| 1095 } | 1103 } |
| 1096 | 1104 |
| 1097 } // namespace content | 1105 } // namespace content |
| OLD | NEW |