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

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

Issue 2912243002: Fix todo's in AXPlatformNodeWin::get_accRole related to string results. (Closed)
Patch Set: Uppercase two more tests Created 3 years, 6 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
« no previous file with comments | « no previous file | content/test/data/accessibility/event/add-child-of-body-expected-win.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <objbase.h> 5 #include <objbase.h>
6 #include <stddef.h> 6 #include <stddef.h>
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <memory> 9 #include <memory>
10 #include <vector> 10 #include <vector>
(...skipping 692 matching lines...) Expand 10 before | Expand all | Expand 10 after
703 703
704 IN_PROC_BROWSER_TEST_F(AccessibilityWinBrowserTest, 704 IN_PROC_BROWSER_TEST_F(AccessibilityWinBrowserTest,
705 TestNotificationCheckedStateChanged) { 705 TestNotificationCheckedStateChanged) {
706 LoadInitialAccessibilityTreeFromHtml( 706 LoadInitialAccessibilityTreeFromHtml(
707 "<body><input type='checkbox' /></body>"); 707 "<body><input type='checkbox' /></body>");
708 708
709 // Check the browser's copy of the renderer accessibility tree. 709 // Check the browser's copy of the renderer accessibility tree.
710 AccessibleChecker checkbox_checker(std::wstring(), ROLE_SYSTEM_CHECKBUTTON, 710 AccessibleChecker checkbox_checker(std::wstring(), ROLE_SYSTEM_CHECKBUTTON,
711 std::wstring()); 711 std::wstring());
712 checkbox_checker.SetExpectedState(STATE_SYSTEM_FOCUSABLE); 712 checkbox_checker.SetExpectedState(STATE_SYSTEM_FOCUSABLE);
713 AccessibleChecker body_checker(std::wstring(), L"body", IA2_ROLE_SECTION, 713 AccessibleChecker body_checker(std::wstring(), L"BODY", IA2_ROLE_SECTION,
714 std::wstring()); 714 std::wstring());
715 AccessibleChecker document_checker(std::wstring(), ROLE_SYSTEM_DOCUMENT, 715 AccessibleChecker document_checker(std::wstring(), ROLE_SYSTEM_DOCUMENT,
716 std::wstring()); 716 std::wstring());
717 body_checker.AppendExpectedChild(&checkbox_checker); 717 body_checker.AppendExpectedChild(&checkbox_checker);
718 document_checker.AppendExpectedChild(&body_checker); 718 document_checker.AppendExpectedChild(&body_checker);
719 document_checker.CheckAccessible(GetRendererAccessible()); 719 document_checker.CheckAccessible(GetRendererAccessible());
720 720
721 // Check the checkbox. 721 // Check the checkbox.
722 std::unique_ptr<AccessibilityNotificationWaiter> waiter( 722 std::unique_ptr<AccessibilityNotificationWaiter> waiter(
723 new AccessibilityNotificationWaiter(shell()->web_contents(), 723 new AccessibilityNotificationWaiter(shell()->web_contents(),
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
837 837
838 IN_PROC_BROWSER_TEST_F(AccessibilityWinBrowserTest, 838 IN_PROC_BROWSER_TEST_F(AccessibilityWinBrowserTest,
839 TestNotificationValueChanged) { 839 TestNotificationValueChanged) {
840 LoadInitialAccessibilityTreeFromHtml( 840 LoadInitialAccessibilityTreeFromHtml(
841 "<body><input type='text' value='old value'/></body>"); 841 "<body><input type='text' value='old value'/></body>");
842 842
843 // Check the browser's copy of the renderer accessibility tree. 843 // Check the browser's copy of the renderer accessibility tree.
844 AccessibleChecker text_field_checker(std::wstring(), ROLE_SYSTEM_TEXT, 844 AccessibleChecker text_field_checker(std::wstring(), ROLE_SYSTEM_TEXT,
845 L"old value"); 845 L"old value");
846 text_field_checker.SetExpectedState(STATE_SYSTEM_FOCUSABLE); 846 text_field_checker.SetExpectedState(STATE_SYSTEM_FOCUSABLE);
847 AccessibleChecker body_checker(std::wstring(), L"body", IA2_ROLE_SECTION, 847 AccessibleChecker body_checker(std::wstring(), L"BODY", IA2_ROLE_SECTION,
848 std::wstring()); 848 std::wstring());
849 AccessibleChecker document_checker(std::wstring(), ROLE_SYSTEM_DOCUMENT, 849 AccessibleChecker document_checker(std::wstring(), ROLE_SYSTEM_DOCUMENT,
850 std::wstring()); 850 std::wstring());
851 body_checker.AppendExpectedChild(&text_field_checker); 851 body_checker.AppendExpectedChild(&text_field_checker);
852 document_checker.AppendExpectedChild(&body_checker); 852 document_checker.AppendExpectedChild(&body_checker);
853 document_checker.CheckAccessible(GetRendererAccessible()); 853 document_checker.CheckAccessible(GetRendererAccessible());
854 854
855 // Set the value of the text control 855 // Set the value of the text control
856 std::unique_ptr<AccessibilityNotificationWaiter> waiter( 856 std::unique_ptr<AccessibilityNotificationWaiter> waiter(
857 new AccessibilityNotificationWaiter(shell()->web_contents(), 857 new AccessibilityNotificationWaiter(shell()->web_contents(),
(...skipping 1179 matching lines...) Expand 10 before | Expand all | Expand 10 after
2037 EXPECT_HRESULT_SUCCEEDED(accessible_cell->get_rowIndex(&row_index)); 2037 EXPECT_HRESULT_SUCCEEDED(accessible_cell->get_rowIndex(&row_index));
2038 EXPECT_HRESULT_SUCCEEDED(accessible_cell->get_columnIndex(&column_index)); 2038 EXPECT_HRESULT_SUCCEEDED(accessible_cell->get_columnIndex(&column_index));
2039 EXPECT_EQ(1, row_index); 2039 EXPECT_EQ(1, row_index);
2040 EXPECT_EQ(1, column_index); 2040 EXPECT_EQ(1, column_index);
2041 variant.Reset(); 2041 variant.Reset();
2042 name.Reset(); 2042 name.Reset();
2043 accessible_cell.Reset(); 2043 accessible_cell.Reset();
2044 } 2044 }
2045 2045
2046 } // namespace content 2046 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/test/data/accessibility/event/add-child-of-body-expected-win.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698