Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(544)

Side by Side Diff: content/browser/accessibility/dump_accessibility_tree_browsertest.cc

Issue 616473002: Expose IA and IA2 role and state for HTML input type attributes related to date and time. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: DISABLE AX test for input type month for WIN Platform Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 607 matching lines...) Expand 10 before | Expand all | Expand 10 after
618 } 618 }
619 619
620 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputCheckBox) { 620 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputCheckBox) {
621 RunTest(FILE_PATH_LITERAL("input-checkbox.html")); 621 RunTest(FILE_PATH_LITERAL("input-checkbox.html"));
622 } 622 }
623 623
624 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputColor) { 624 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputColor) {
625 RunTest(FILE_PATH_LITERAL("input-color.html")); 625 RunTest(FILE_PATH_LITERAL("input-color.html"));
626 } 626 }
627 627
628 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputDate) {
629 RunTest(FILE_PATH_LITERAL("input-date.html"));
630 }
631
632 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputDateTime) {
633 RunTest(FILE_PATH_LITERAL("input-datetime.html"));
634 }
635
636 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
637 AccessibilityInputDateTimeLocal) {
638 RunTest(FILE_PATH_LITERAL("input-datetime-local.html"));
639 }
640
628 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, 641 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
629 AccessibilityInputImageButtonInMenu) { 642 AccessibilityInputImageButtonInMenu) {
630 RunTest(FILE_PATH_LITERAL("input-image-button-in-menu.html")); 643 RunTest(FILE_PATH_LITERAL("input-image-button-in-menu.html"));
631 } 644 }
632 645
646 // crbug.com/423675 - AX tree is different for Win7 and Win8.
647 #if defined(OS_WIN)
648 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
649 DISABLED_AccessibilityInputMonth) {
650 RunTest(FILE_PATH_LITERAL("input-month.html"));
651 }
652 #else
653 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputMonth) {
654 RunTest(FILE_PATH_LITERAL("input-month.html"));
655 }
656 #endif
657
633 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputRadio) { 658 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputRadio) {
634 RunTest(FILE_PATH_LITERAL("input-radio.html")); 659 RunTest(FILE_PATH_LITERAL("input-radio.html"));
635 } 660 }
636 661
637 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputRange) { 662 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputRange) {
638 RunTest(FILE_PATH_LITERAL("input-range.html")); 663 RunTest(FILE_PATH_LITERAL("input-range.html"));
639 } 664 }
640 665
641 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputSearch) { 666 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputSearch) {
642 RunTest(FILE_PATH_LITERAL("input-search.html")); 667 RunTest(FILE_PATH_LITERAL("input-search.html"));
643 } 668 }
644 669
645 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, 670 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
646 AccessibilityInputTextNameCalc) { 671 AccessibilityInputTextNameCalc) {
647 RunTest(FILE_PATH_LITERAL("input-text-name-calc.html")); 672 RunTest(FILE_PATH_LITERAL("input-text-name-calc.html"));
648 } 673 }
649 674
650 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputTime) { 675 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputTime) {
651 RunTest(FILE_PATH_LITERAL("input-time.html")); 676 RunTest(FILE_PATH_LITERAL("input-time.html"));
652 } 677 }
653 678
654 // crbug.com/98976 will cause new elements to be added to the Blink a11y tree 679 // crbug.com/98976 will cause new elements to be added to the Blink a11y tree
655 // Re-baseline after the Blink change goes in 680 // Re-baseline after the Blink change goes in
656 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, 681 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest,
657 AccessibilityInputTypes) { 682 AccessibilityInputTypes) {
658 RunTest(FILE_PATH_LITERAL("input-types.html")); 683 RunTest(FILE_PATH_LITERAL("input-types.html"));
659 } 684 }
660 685
686 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityInputWeek) {
687 RunTest(FILE_PATH_LITERAL("input-week.html"));
688 }
689
661 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityIns) { 690 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityIns) {
662 RunTest(FILE_PATH_LITERAL("ins.html")); 691 RunTest(FILE_PATH_LITERAL("ins.html"));
663 } 692 }
664 693
665 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityLabel) { 694 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityLabel) {
666 RunTest(FILE_PATH_LITERAL("label.html")); 695 RunTest(FILE_PATH_LITERAL("label.html"));
667 } 696 }
668 697
669 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityLandmark) { 698 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityLandmark) {
670 RunTest(FILE_PATH_LITERAL("landmark.html")); 699 RunTest(FILE_PATH_LITERAL("landmark.html"));
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
793 822
794 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityUl) { 823 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityUl) {
795 RunTest(FILE_PATH_LITERAL("ul.html")); 824 RunTest(FILE_PATH_LITERAL("ul.html"));
796 } 825 }
797 826
798 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityWbr) { 827 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityWbr) {
799 RunTest(FILE_PATH_LITERAL("wbr.html")); 828 RunTest(FILE_PATH_LITERAL("wbr.html"));
800 } 829 }
801 830
802 } // namespace content 831 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/accessibility/browser_accessibility_win.cc ('k') | content/renderer/accessibility/blink_ax_enum_conversion.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698