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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 } | 241 } |
222 | 242 |
223 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest, | 243 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest, |
224 AccessibilityEventsListboxFocus) { | 244 AccessibilityEventsListboxFocus) { |
225 RunEventTest(FILE_PATH_LITERAL("listbox-focus.html")); | 245 RunEventTest(FILE_PATH_LITERAL("listbox-focus.html")); |
226 } | 246 } |
227 | 247 |
228 // Flaky on Windows: http://crbug.com/486861 | 248 // Flaky on Windows: http://crbug.com/486861 |
229 // Flaky on Mac: http://crbug.com/588271 | 249 // Flaky on Mac: http://crbug.com/588271 |
230 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest, | 250 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest, |
231 DISABLED_AccessibilityEventsListboxNext) { | 251 AccessibilityEventsListboxNext) { |
232 RunEventTest(FILE_PATH_LITERAL("listbox-next.html")); | 252 RunEventTest(FILE_PATH_LITERAL("listbox-next.html")); |
233 } | 253 } |
234 | 254 |
235 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest, | 255 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest, |
| 256 AccessibilityEventsMenuListCollapse) { |
| 257 RunEventTest(FILE_PATH_LITERAL("menulist-collapse.html")); |
| 258 } |
| 259 |
| 260 #if defined(OS_MACOSX) |
| 261 // Crashes on Mac. |
| 262 #define MAYBE_AccessibilityEventsMenuListExpand \ |
| 263 DISABLED_AccessibilityEventsMenuListExpand |
| 264 #else |
| 265 #define MAYBE_AccessibilityEventsMenuListExpand \ |
| 266 AccessibilityEventsMenuListExpand |
| 267 #endif |
| 268 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest, |
| 269 MAYBE_AccessibilityEventsMenuListExpand) { |
| 270 RunEventTest(FILE_PATH_LITERAL("menulist-expand.html")); |
| 271 } |
| 272 |
| 273 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest, |
236 AccessibilityEventsMenuListFocus) { | 274 AccessibilityEventsMenuListFocus) { |
237 RunEventTest(FILE_PATH_LITERAL("menulist-focus.html")); | 275 RunEventTest(FILE_PATH_LITERAL("menulist-focus.html")); |
238 } | 276 } |
239 | 277 |
| 278 #if defined(OS_MACOSX) |
| 279 // Crashes on Mac. |
| 280 #define MAYBE_AccessibilityEventsMenuListNext \ |
| 281 DISABLED_AccessibilityEventsMenuListNext |
| 282 #else |
| 283 #define MAYBE_AccessibilityEventsMenuListNext AccessibilityEventsMenuListNext |
| 284 #endif |
240 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest, | 285 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest, |
241 AccessibilityEventsMenuListNext) { | 286 MAYBE_AccessibilityEventsMenuListNext) { |
242 RunEventTest(FILE_PATH_LITERAL("menulist-next.html")); | 287 RunEventTest(FILE_PATH_LITERAL("menulist-next.html")); |
243 } | 288 } |
244 | 289 |
245 // Flaky on Windows: http://crbug.com/486861 | 290 // Flaky on Windows: http://crbug.com/486861 |
246 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest, | 291 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest, |
247 DISABLED_AccessibilityEventsMenuListPopup) { | 292 DISABLED_AccessibilityEventsMenuListPopup) { |
248 RunEventTest(FILE_PATH_LITERAL("menulist-popup.html")); | 293 RunEventTest(FILE_PATH_LITERAL("menulist-popup.html")); |
249 } | 294 } |
250 | 295 |
251 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest, | 296 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest, |
(...skipping 23 matching lines...) Expand all Loading... |
275 } | 320 } |
276 | 321 |
277 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest, | 322 IN_PROC_BROWSER_TEST_F(DumpAccessibilityEventsTest, |
278 AccessibilityEventsTextChanged) { | 323 AccessibilityEventsTextChanged) { |
279 RunEventTest(FILE_PATH_LITERAL("text-changed.html")); | 324 RunEventTest(FILE_PATH_LITERAL("text-changed.html")); |
280 } | 325 } |
281 | 326 |
282 #endif // defined(OS_WIN) | 327 #endif // defined(OS_WIN) |
283 | 328 |
284 } // namespace content | 329 } // namespace content |
OLD | NEW |