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 <vector> | 5 #include <vector> |
6 | 6 |
7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
9 #include "base/win/scoped_bstr.h" | 9 #include "base/win/scoped_bstr.h" |
10 #include "base/win/scoped_comptr.h" | 10 #include "base/win/scoped_comptr.h" |
(...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
633 } | 633 } |
634 | 634 |
635 // This test verifies that the web content's accessibility tree is a | 635 // This test verifies that the web content's accessibility tree is a |
636 // descendant of the main browser window's accessibility tree, so that | 636 // descendant of the main browser window's accessibility tree, so that |
637 // tools like AccExplorer32 or AccProbe can be used to examine Chrome's | 637 // tools like AccExplorer32 or AccProbe can be used to examine Chrome's |
638 // accessibility support. | 638 // accessibility support. |
639 // | 639 // |
640 // If you made a change and this test now fails, check that the NativeViewHost | 640 // If you made a change and this test now fails, check that the NativeViewHost |
641 // that wraps the tab contents returns the IAccessible implementation | 641 // that wraps the tab contents returns the IAccessible implementation |
642 // provided by RenderWidgetHostViewWin in GetNativeViewAccessible(). | 642 // provided by RenderWidgetHostViewWin in GetNativeViewAccessible(). |
| 643 // flaky: http://crbug.com/402190 |
643 IN_PROC_BROWSER_TEST_F(AccessibilityWinBrowserTest, | 644 IN_PROC_BROWSER_TEST_F(AccessibilityWinBrowserTest, |
644 ContainsRendererAccessibilityTree) { | 645 DISABLED_ContainsRendererAccessibilityTree) { |
645 LoadInitialAccessibilityTreeFromHtml( | 646 LoadInitialAccessibilityTreeFromHtml( |
646 "<html><head><title>MyDocument</title></head>" | 647 "<html><head><title>MyDocument</title></head>" |
647 "<body>Content</body></html>"); | 648 "<body>Content</body></html>"); |
648 | 649 |
649 // Get the accessibility object for the window tree host. | 650 // Get the accessibility object for the window tree host. |
650 aura::Window* window = shell()->window(); | 651 aura::Window* window = shell()->window(); |
651 CHECK(window); | 652 CHECK(window); |
652 aura::WindowTreeHost* window_tree_host = window->GetHost(); | 653 aura::WindowTreeHost* window_tree_host = window->GetHost(); |
653 CHECK(window_tree_host); | 654 CHECK(window_tree_host); |
654 HWND hwnd = window_tree_host->GetAcceleratedWidget(); | 655 HWND hwnd = window_tree_host->GetAcceleratedWidget(); |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
742 AccessibleChecker grouping2_checker(std::wstring(), ROLE_SYSTEM_GROUPING, | 743 AccessibleChecker grouping2_checker(std::wstring(), ROLE_SYSTEM_GROUPING, |
743 std::wstring()); | 744 std::wstring()); |
744 AccessibleChecker document_checker(std::wstring(), ROLE_SYSTEM_DOCUMENT, | 745 AccessibleChecker document_checker(std::wstring(), ROLE_SYSTEM_DOCUMENT, |
745 std::wstring()); | 746 std::wstring()); |
746 document_checker.AppendExpectedChild(&grouping1_checker); | 747 document_checker.AppendExpectedChild(&grouping1_checker); |
747 document_checker.AppendExpectedChild(&grouping2_checker); | 748 document_checker.AppendExpectedChild(&grouping2_checker); |
748 document_checker.CheckAccessible(GetRendererAccessible()); | 749 document_checker.CheckAccessible(GetRendererAccessible()); |
749 } | 750 } |
750 | 751 |
751 } // namespace content | 752 } // namespace content |
OLD | NEW |