OLD | NEW |
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2014 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 <stddef.h> | 5 #include <stddef.h> |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 ASSERT_TRUE(base::PathExists(test_path)) << test_path.LossyDisplayName(); | 146 ASSERT_TRUE(base::PathExists(test_path)) << test_path.LossyDisplayName(); |
147 | 147 |
148 base::FilePath event_file = test_path.Append(base::FilePath(file_path)); | 148 base::FilePath event_file = test_path.Append(base::FilePath(file_path)); |
149 RunTest(event_file, "accessibility/event"); | 149 RunTest(event_file, "accessibility/event"); |
150 } | 150 } |
151 | 151 |
152 // TODO(dmazzoni): port these tests to run on all platforms. | 152 // TODO(dmazzoni): port these tests to run on all platforms. |
153 #if defined(OS_WIN) || defined(OS_MACOSX) | 153 #if defined(OS_WIN) || defined(OS_MACOSX) |
154 | 154 |
155 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest, | 155 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest, |
| 156 AccessibilityEventsAriaComboBoxCollapse) { |
| 157 RunEventTest(FILE_PATH_LITERAL("aria-combo-box-collapse.html")); |
| 158 } |
| 159 |
| 160 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest, |
| 161 AccessibilityEventsAriaComboBoxExpand) { |
| 162 RunEventTest(FILE_PATH_LITERAL("aria-combo-box-expand.html")); |
| 163 } |
| 164 |
| 165 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest, |
| 166 AccessibilityEventsAriaComboBoxFocus) { |
| 167 RunEventTest(FILE_PATH_LITERAL("aria-combo-box-focus.html")); |
| 168 } |
| 169 |
| 170 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest, |
| 171 AccessibilityEventsAriaComboBoxNext) { |
| 172 RunEventTest(FILE_PATH_LITERAL("aria-combo-box-next.html")); |
| 173 } |
| 174 |
| 175 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest, |
156 AccessibilityEventsAddAlert) { | 176 AccessibilityEventsAddAlert) { |
157 RunEventTest(FILE_PATH_LITERAL("add-alert.html")); | 177 RunEventTest(FILE_PATH_LITERAL("add-alert.html")); |
158 } | 178 } |
159 | 179 |
160 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest, | 180 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest, |
161 AccessibilityEventsAddChild) { | 181 AccessibilityEventsAddChild) { |
162 RunEventTest(FILE_PATH_LITERAL("add-child.html")); | 182 RunEventTest(FILE_PATH_LITERAL("add-child.html")); |
163 } | 183 } |
164 | 184 |
165 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest, | 185 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest, |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 } | 236 } |
217 | 237 |
218 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest, | 238 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest, |
219 AccessibilityEventsListboxFocus) { | 239 AccessibilityEventsListboxFocus) { |
220 RunEventTest(FILE_PATH_LITERAL("listbox-focus.html")); | 240 RunEventTest(FILE_PATH_LITERAL("listbox-focus.html")); |
221 } | 241 } |
222 | 242 |
223 // Flaky on Windows: http://crbug.com/486861 | 243 // Flaky on Windows: http://crbug.com/486861 |
224 // Flaky on Mac: http://crbug.com/588271 | 244 // Flaky on Mac: http://crbug.com/588271 |
225 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest, | 245 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest, |
226 DISABLED_AccessibilityEventsListboxNext) { | 246 AccessibilityEventsListboxNext) { |
227 RunEventTest(FILE_PATH_LITERAL("listbox-next.html")); | 247 RunEventTest(FILE_PATH_LITERAL("listbox-next.html")); |
228 } | 248 } |
229 | 249 |
230 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest, | 250 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest, |
| 251 AccessibilityEventsMenuListCollapse) { |
| 252 RunEventTest(FILE_PATH_LITERAL("menulist-collapse.html")); |
| 253 } |
| 254 |
| 255 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest, |
231 AccessibilityEventsMenuListFocus) { | 256 AccessibilityEventsMenuListFocus) { |
232 RunEventTest(FILE_PATH_LITERAL("menulist-focus.html")); | 257 RunEventTest(FILE_PATH_LITERAL("menulist-focus.html")); |
233 } | 258 } |
234 | 259 |
235 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest, | 260 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest, |
236 AccessibilityEventsMenuListNext) { | 261 AccessibilityEventsMenuListNext) { |
237 RunEventTest(FILE_PATH_LITERAL("menulist-next.html")); | 262 RunEventTest(FILE_PATH_LITERAL("menulist-next.html")); |
238 } | 263 } |
239 | 264 |
240 // Flaky on Windows: http://crbug.com/486861 | 265 // Flaky on Windows: http://crbug.com/486861 |
(...skipping 29 matching lines...) Expand all Loading... |
270 } | 295 } |
271 | 296 |
272 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest, | 297 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest, |
273 AccessibilityEventsTextChanged) { | 298 AccessibilityEventsTextChanged) { |
274 RunEventTest(FILE_PATH_LITERAL("text-changed.html")); | 299 RunEventTest(FILE_PATH_LITERAL("text-changed.html")); |
275 } | 300 } |
276 | 301 |
277 #endif // defined(OS_WIN) | 302 #endif // defined(OS_WIN) |
278 | 303 |
279 } // namespace content | 304 } // namespace content |
OLD | NEW |