| 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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 return; | 170 return; |
| 171 } | 171 } |
| 172 | 172 |
| 173 // Load the page. | 173 // Load the page. |
| 174 base::string16 html_contents16; | 174 base::string16 html_contents16; |
| 175 html_contents16 = base::UTF8ToUTF16(html_contents); | 175 html_contents16 = base::UTF8ToUTF16(html_contents); |
| 176 GURL url = GetTestUrl("accessibility", | 176 GURL url = GetTestUrl("accessibility", |
| 177 html_file.BaseName().MaybeAsASCII().c_str()); | 177 html_file.BaseName().MaybeAsASCII().c_str()); |
| 178 AccessibilityNotificationWaiter waiter( | 178 AccessibilityNotificationWaiter waiter( |
| 179 shell(), AccessibilityModeComplete, | 179 shell(), AccessibilityModeComplete, |
| 180 blink::WebAXEventLoadComplete); | 180 ui::AX_EVENT_LOAD_COMPLETE); |
| 181 NavigateToURL(shell(), url); | 181 NavigateToURL(shell(), url); |
| 182 waiter.WaitForNotification(); | 182 waiter.WaitForNotification(); |
| 183 | 183 |
| 184 RenderWidgetHostViewPort* host_view = RenderWidgetHostViewPort::FromRWHV( | 184 RenderWidgetHostViewPort* host_view = RenderWidgetHostViewPort::FromRWHV( |
| 185 shell()->web_contents()->GetRenderWidgetHostView()); | 185 shell()->web_contents()->GetRenderWidgetHostView()); |
| 186 AccessibilityTreeFormatter formatter( | 186 AccessibilityTreeFormatter formatter( |
| 187 host_view->GetBrowserAccessibilityManager()->GetRoot()); | 187 host_view->GetBrowserAccessibilityManager()->GetRoot()); |
| 188 | 188 |
| 189 // Parse filters in the test file. | 189 // Parse filters in the test file. |
| 190 std::vector<Filter> filters; | 190 std::vector<Filter> filters; |
| (...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 491 | 491 |
| 492 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityUl) { | 492 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityUl) { |
| 493 RunTest(FILE_PATH_LITERAL("ul.html")); | 493 RunTest(FILE_PATH_LITERAL("ul.html")); |
| 494 } | 494 } |
| 495 | 495 |
| 496 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityWbr) { | 496 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityWbr) { |
| 497 RunTest(FILE_PATH_LITERAL("wbr.html")); | 497 RunTest(FILE_PATH_LITERAL("wbr.html")); |
| 498 } | 498 } |
| 499 | 499 |
| 500 } // namespace content | 500 } // namespace content |
| OLD | NEW |