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

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

Issue 545863002: Fix AccessibilityModeTest.* on Win 8 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 | « content/browser/accessibility/accessibility_mode_helper_unittest.cc ('k') | no next file » | 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 <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"
11 #include "base/win/scoped_variant.h" 11 #include "base/win/scoped_variant.h"
12 #include "content/browser/accessibility/accessibility_mode_helper.h"
12 #include "content/browser/accessibility/accessibility_tree_formatter_utils_win.h " 13 #include "content/browser/accessibility/accessibility_tree_formatter_utils_win.h "
13 #include "content/browser/renderer_host/render_view_host_impl.h" 14 #include "content/browser/renderer_host/render_view_host_impl.h"
14 #include "content/public/browser/notification_service.h" 15 #include "content/public/browser/notification_service.h"
15 #include "content/public/browser/notification_types.h" 16 #include "content/public/browser/notification_types.h"
16 #include "content/public/browser/render_frame_host.h" 17 #include "content/public/browser/render_frame_host.h"
17 #include "content/public/browser/render_widget_host_view.h" 18 #include "content/public/browser/render_widget_host_view.h"
18 #include "content/public/browser/web_contents.h" 19 #include "content/public/browser/web_contents.h"
19 #include "content/public/common/url_constants.h" 20 #include "content/public/common/url_constants.h"
20 #include "content/public/test/content_browser_test.h" 21 #include "content/public/test/content_browser_test.h"
21 #include "content/public/test/content_browser_test_utils.h" 22 #include "content/public/test/content_browser_test_utils.h"
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 return base::string16(); 393 return base::string16();
393 } 394 }
394 395
395 } // namespace 396 } // namespace
396 397
397 398
398 // Tests ---------------------------------------------------------------------- 399 // Tests ----------------------------------------------------------------------
399 400
400 IN_PROC_BROWSER_TEST_F(AccessibilityWinBrowserTest, 401 IN_PROC_BROWSER_TEST_F(AccessibilityWinBrowserTest,
401 TestBusyAccessibilityTree) { 402 TestBusyAccessibilityTree) {
403 if (GetBaseAccessibilityMode() != AccessibilityModeOff)
404 return;
405
402 NavigateToURL(shell(), GURL(url::kAboutBlankURL)); 406 NavigateToURL(shell(), GURL(url::kAboutBlankURL));
403 407
404 // The initial accessible returned should have state STATE_SYSTEM_BUSY while 408 // The initial accessible returned should have state STATE_SYSTEM_BUSY while
405 // the accessibility tree is being requested from the renderer. 409 // the accessibility tree is being requested from the renderer.
406 AccessibleChecker document1_checker(std::wstring(), ROLE_SYSTEM_DOCUMENT, 410 AccessibleChecker document1_checker(std::wstring(), ROLE_SYSTEM_DOCUMENT,
407 std::wstring()); 411 std::wstring());
408 document1_checker.SetExpectedState( 412 document1_checker.SetExpectedState(
409 STATE_SYSTEM_READONLY | STATE_SYSTEM_FOCUSABLE | STATE_SYSTEM_FOCUSED | 413 STATE_SYSTEM_READONLY | STATE_SYSTEM_FOCUSABLE | STATE_SYSTEM_FOCUSED |
410 STATE_SYSTEM_BUSY); 414 STATE_SYSTEM_BUSY);
411 document1_checker.CheckAccessible(GetRendererAccessible()); 415 document1_checker.CheckAccessible(GetRendererAccessible());
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
743 AccessibleChecker grouping2_checker(std::wstring(), ROLE_SYSTEM_GROUPING, 747 AccessibleChecker grouping2_checker(std::wstring(), ROLE_SYSTEM_GROUPING,
744 std::wstring()); 748 std::wstring());
745 AccessibleChecker document_checker(std::wstring(), ROLE_SYSTEM_DOCUMENT, 749 AccessibleChecker document_checker(std::wstring(), ROLE_SYSTEM_DOCUMENT,
746 std::wstring()); 750 std::wstring());
747 document_checker.AppendExpectedChild(&grouping1_checker); 751 document_checker.AppendExpectedChild(&grouping1_checker);
748 document_checker.AppendExpectedChild(&grouping2_checker); 752 document_checker.AppendExpectedChild(&grouping2_checker);
749 document_checker.CheckAccessible(GetRendererAccessible()); 753 document_checker.CheckAccessible(GetRendererAccessible());
750 } 754 }
751 755
752 } // namespace content 756 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/accessibility/accessibility_mode_helper_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698