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/file_util.h" | 10 #include "base/file_util.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 #include "content/public/browser/web_contents.h" | 22 #include "content/public/browser/web_contents.h" |
23 #include "content/public/common/content_paths.h" | 23 #include "content/public/common/content_paths.h" |
24 #include "content/public/common/content_switches.h" | 24 #include "content/public/common/content_switches.h" |
25 #include "content/public/common/url_constants.h" | 25 #include "content/public/common/url_constants.h" |
26 #include "content/shell/browser/shell.h" | 26 #include "content/shell/browser/shell.h" |
27 #include "content/test/accessibility_browser_test_utils.h" | 27 #include "content/test/accessibility_browser_test_utils.h" |
28 #include "content/test/content_browser_test.h" | 28 #include "content/test/content_browser_test.h" |
29 #include "content/test/content_browser_test_utils.h" | 29 #include "content/test/content_browser_test_utils.h" |
30 #include "testing/gtest/include/gtest/gtest.h" | 30 #include "testing/gtest/include/gtest/gtest.h" |
31 | 31 |
32 // TODO(dmazzoni): Disabled accessibility tests on Win64. crbug.com/179717 | 32 // TODO(aboxhall): Create expectations on Android for these |
33 #if defined(OS_WIN) && defined(ARCH_CPU_X86_64) | 33 #if defined(OS_ANDROID) |
34 #define MAYBE(x) DISABLED_##x | 34 #define MAYBE(x) DISABLED_##x |
35 #else | 35 #else |
36 #define MAYBE(x) x | 36 #define MAYBE(x) x |
37 #endif | 37 #endif |
38 | 38 |
39 namespace content { | 39 namespace content { |
40 | 40 |
41 namespace { | 41 namespace { |
42 | 42 |
43 const char kCommentToken = '#'; | 43 const char kCommentToken = '#'; |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 RunTest(FILE_PATH_LITERAL("aria-autocomplete.html")); | 268 RunTest(FILE_PATH_LITERAL("aria-autocomplete.html")); |
269 } | 269 } |
270 | 270 |
271 // crbug.com/98976 will cause new elements to be added to the Blink a11y tree | 271 // crbug.com/98976 will cause new elements to be added to the Blink a11y tree |
272 // Re-baseline after the Blink change goes in | 272 // Re-baseline after the Blink change goes in |
273 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, | 273 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, |
274 DISABLED_AccessibilityAriaCombobox) { | 274 DISABLED_AccessibilityAriaCombobox) { |
275 RunTest(FILE_PATH_LITERAL("aria-combobox.html")); | 275 RunTest(FILE_PATH_LITERAL("aria-combobox.html")); |
276 } | 276 } |
277 | 277 |
| 278 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, |
| 279 MAYBE(AccessibilityAriaFlowto)) { |
| 280 RunTest(FILE_PATH_LITERAL("aria-flowto.html")); |
| 281 } |
| 282 |
278 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaInvalid) { | 283 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaInvalid) { |
279 RunTest(FILE_PATH_LITERAL("aria-invalid.html")); | 284 RunTest(FILE_PATH_LITERAL("aria-invalid.html")); |
280 } | 285 } |
281 | 286 |
282 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaLevel) { | 287 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaLevel) { |
283 RunTest(FILE_PATH_LITERAL("aria-level.html")); | 288 RunTest(FILE_PATH_LITERAL("aria-level.html")); |
284 } | 289 } |
285 | 290 |
286 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaMenu) { | 291 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityAriaMenu) { |
287 RunTest(FILE_PATH_LITERAL("aria-menu.html")); | 292 RunTest(FILE_PATH_LITERAL("aria-menu.html")); |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
505 | 510 |
506 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityUl) { | 511 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityUl) { |
507 RunTest(FILE_PATH_LITERAL("ul.html")); | 512 RunTest(FILE_PATH_LITERAL("ul.html")); |
508 } | 513 } |
509 | 514 |
510 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityWbr) { | 515 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityWbr) { |
511 RunTest(FILE_PATH_LITERAL("wbr.html")); | 516 RunTest(FILE_PATH_LITERAL("wbr.html")); |
512 } | 517 } |
513 | 518 |
514 } // namespace content | 519 } // namespace content |
OLD | NEW |