OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <oleacc.h> | 5 #include <oleacc.h> |
6 | 6 |
7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
8 #include "base/win/scoped_comptr.h" | 8 #include "base/win/scoped_comptr.h" |
9 #include "chrome/browser/ui/browser.h" | 9 #include "chrome/browser/ui/browser.h" |
10 #include "chrome/browser/ui/browser_window.h" | 10 #include "chrome/browser/ui/browser_window.h" |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 // Retrieve accessibility object for browser view and verify accessibility info. | 160 // Retrieve accessibility object for browser view and verify accessibility info. |
161 IN_PROC_BROWSER_TEST_F(BrowserViewsAccessibilityTest, TestBrowserViewAccObj) { | 161 IN_PROC_BROWSER_TEST_F(BrowserViewsAccessibilityTest, TestBrowserViewAccObj) { |
162 // Verify root view MSAA name and role. | 162 // Verify root view MSAA name and role. |
163 TestViewAccessibilityObject( | 163 TestViewAccessibilityObject( |
164 GetBrowserView(), | 164 GetBrowserView(), |
165 UTF16ToWide(l10n_util::GetStringUTF16(IDS_PRODUCT_NAME)), | 165 UTF16ToWide(l10n_util::GetStringUTF16(IDS_PRODUCT_NAME)), |
166 ROLE_SYSTEM_CLIENT); | 166 ROLE_SYSTEM_CLIENT); |
167 } | 167 } |
168 | 168 |
169 // Retrieve accessibility object for toolbar view and verify accessibility info. | 169 // Retrieve accessibility object for toolbar view and verify accessibility info. |
170 IN_PROC_BROWSER_TEST_F(BrowserViewsAccessibilityTest, TestToolbarViewAccObj) { | 170 // Crashing occasionally: http://crbug.com/104132 |
| 171 IN_PROC_BROWSER_TEST_F(BrowserViewsAccessibilityTest, |
| 172 FLAKY_TestToolbarViewAccObj) { |
171 // Verify toolbar MSAA name and role. | 173 // Verify toolbar MSAA name and role. |
172 TestViewAccessibilityObject( | 174 TestViewAccessibilityObject( |
173 GetToolbarView(), | 175 GetToolbarView(), |
174 UTF16ToWide(l10n_util::GetStringUTF16(IDS_ACCNAME_TOOLBAR)), | 176 UTF16ToWide(l10n_util::GetStringUTF16(IDS_ACCNAME_TOOLBAR)), |
175 ROLE_SYSTEM_TOOLBAR); | 177 ROLE_SYSTEM_TOOLBAR); |
176 } | 178 } |
177 | 179 |
178 // Retrieve accessibility object for Back button and verify accessibility info. | 180 // Retrieve accessibility object for Back button and verify accessibility info. |
179 IN_PROC_BROWSER_TEST_F(BrowserViewsAccessibilityTest, TestBackButtonAccObj) { | 181 IN_PROC_BROWSER_TEST_F(BrowserViewsAccessibilityTest, TestBackButtonAccObj) { |
180 // Verify Back button MSAA name and role. | 182 // Verify Back button MSAA name and role. |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 ASSERT_EQ(S_OK, hr); | 264 ASSERT_EQ(S_OK, hr); |
263 ASSERT_TRUE(NULL != acc_obj); | 265 ASSERT_TRUE(NULL != acc_obj); |
264 | 266 |
265 TestAccessibilityInfo( | 267 TestAccessibilityInfo( |
266 acc_obj, | 268 acc_obj, |
267 UTF16ToWide(l10n_util::GetStringUTF16(IDS_ABOUT_CHROME_TITLE)), | 269 UTF16ToWide(l10n_util::GetStringUTF16(IDS_ABOUT_CHROME_TITLE)), |
268 ROLE_SYSTEM_DIALOG); | 270 ROLE_SYSTEM_DIALOG); |
269 | 271 |
270 acc_obj->Release(); | 272 acc_obj->Release(); |
271 } | 273 } |
OLD | NEW |