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/file_util.h" | 9 #include "base/file_util.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 return; | 159 return; |
160 } | 160 } |
161 | 161 |
162 // Load the page. | 162 // Load the page. |
163 string16 html_contents16; | 163 string16 html_contents16; |
164 html_contents16 = UTF8ToUTF16(html_contents); | 164 html_contents16 = UTF8ToUTF16(html_contents); |
165 GURL url = GetTestUrl("accessibility", | 165 GURL url = GetTestUrl("accessibility", |
166 html_file.BaseName().MaybeAsASCII().c_str()); | 166 html_file.BaseName().MaybeAsASCII().c_str()); |
167 AccessibilityNotificationWaiter waiter( | 167 AccessibilityNotificationWaiter waiter( |
168 shell(), AccessibilityModeComplete, | 168 shell(), AccessibilityModeComplete, |
169 WebKit::WebAXEventLoadComplete); | 169 blink::WebAXEventLoadComplete); |
170 NavigateToURL(shell(), url); | 170 NavigateToURL(shell(), url); |
171 waiter.WaitForNotification(); | 171 waiter.WaitForNotification(); |
172 | 172 |
173 RenderWidgetHostViewPort* host_view = RenderWidgetHostViewPort::FromRWHV( | 173 RenderWidgetHostViewPort* host_view = RenderWidgetHostViewPort::FromRWHV( |
174 shell()->web_contents()->GetRenderWidgetHostView()); | 174 shell()->web_contents()->GetRenderWidgetHostView()); |
175 AccessibilityTreeFormatter formatter( | 175 AccessibilityTreeFormatter formatter( |
176 host_view->GetBrowserAccessibilityManager()->GetRoot()); | 176 host_view->GetBrowserAccessibilityManager()->GetRoot()); |
177 | 177 |
178 // Parse filters in the test file. | 178 // Parse filters in the test file. |
179 std::vector<Filter> filters; | 179 std::vector<Filter> filters; |
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
451 | 451 |
452 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityUl) { | 452 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityUl) { |
453 RunTest(FILE_PATH_LITERAL("ul.html")); | 453 RunTest(FILE_PATH_LITERAL("ul.html")); |
454 } | 454 } |
455 | 455 |
456 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityWbr) { | 456 IN_PROC_BROWSER_TEST_F(DumpAccessibilityTreeTest, AccessibilityWbr) { |
457 RunTest(FILE_PATH_LITERAL("wbr.html")); | 457 RunTest(FILE_PATH_LITERAL("wbr.html")); |
458 } | 458 } |
459 | 459 |
460 } // namespace content | 460 } // namespace content |
OLD | NEW |