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

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

Issue 10887033: Disabling flaky test: AccessibilityWinBrowserTest.TestNotificationActiveDescendantChanged (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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 <atlbase.h> 5 #include <atlbase.h>
6 #include <vector> 6 #include <vector>
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/stringprintf.h" 9 #include "base/stringprintf.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 ui_test_utils::NavigateToURL(browser(), GURL(chrome::kChromeUIVersionURL)); 456 ui_test_utils::NavigateToURL(browser(), GURL(chrome::kChromeUIVersionURL));
457 457
458 // Verify that the IAccessible reference still points to a valid object and 458 // Verify that the IAccessible reference still points to a valid object and
459 // that calls to its methods fail since the tree is no longer valid after 459 // that calls to its methods fail since the tree is no longer valid after
460 // the page navagation. 460 // the page navagation.
461 CComBSTR name; 461 CComBSTR name;
462 hr = document_accessible->get_accName(CreateI4Variant(CHILDID_SELF), &name); 462 hr = document_accessible->get_accName(CreateI4Variant(CHILDID_SELF), &name);
463 ASSERT_EQ(E_FAIL, hr); 463 ASSERT_EQ(E_FAIL, hr);
464 } 464 }
465 465
466 // Periodically failing. See crbug.com/145537
466 IN_PROC_BROWSER_TEST_F(AccessibilityWinBrowserTest, 467 IN_PROC_BROWSER_TEST_F(AccessibilityWinBrowserTest,
467 TestNotificationActiveDescendantChanged) { 468 DISABLED_TestNotificationActiveDescendantChanged) {
468 LoadInitialAccessibilityTreeFromHtml( 469 LoadInitialAccessibilityTreeFromHtml(
469 "<ul tabindex='-1' role='radiogroup' aria-label='ul'>" 470 "<ul tabindex='-1' role='radiogroup' aria-label='ul'>"
470 "<li id='li'>li</li></ul>"); 471 "<li id='li'>li</li></ul>");
471 472
472 // Check the browser's copy of the renderer accessibility tree. 473 // Check the browser's copy of the renderer accessibility tree.
473 AccessibleChecker list_marker_checker(L"\x2022", ROLE_SYSTEM_TEXT, L""); 474 AccessibleChecker list_marker_checker(L"\x2022", ROLE_SYSTEM_TEXT, L"");
474 AccessibleChecker static_text_checker(L"li", ROLE_SYSTEM_TEXT, L""); 475 AccessibleChecker static_text_checker(L"li", ROLE_SYSTEM_TEXT, L"");
475 AccessibleChecker list_item_checker(L"", ROLE_SYSTEM_LISTITEM, L""); 476 AccessibleChecker list_item_checker(L"", ROLE_SYSTEM_LISTITEM, L"");
476 list_item_checker.SetExpectedState( 477 list_item_checker.SetExpectedState(
477 STATE_SYSTEM_READONLY); 478 STATE_SYSTEM_READONLY);
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
829 830
830 // Check the browser's copy of the renderer accessibility tree. 831 // Check the browser's copy of the renderer accessibility tree.
831 AccessibleChecker grouping1_checker(L"", ROLE_SYSTEM_GROUPING, L""); 832 AccessibleChecker grouping1_checker(L"", ROLE_SYSTEM_GROUPING, L"");
832 AccessibleChecker grouping2_checker(L"", ROLE_SYSTEM_GROUPING, L""); 833 AccessibleChecker grouping2_checker(L"", ROLE_SYSTEM_GROUPING, L"");
833 AccessibleChecker document_checker(L"", ROLE_SYSTEM_DOCUMENT, L""); 834 AccessibleChecker document_checker(L"", ROLE_SYSTEM_DOCUMENT, L"");
834 document_checker.AppendExpectedChild(&grouping1_checker); 835 document_checker.AppendExpectedChild(&grouping1_checker);
835 document_checker.AppendExpectedChild(&grouping2_checker); 836 document_checker.AppendExpectedChild(&grouping2_checker);
836 document_checker.CheckAccessible(GetRendererAccessible()); 837 document_checker.CheckAccessible(GetRendererAccessible());
837 } 838 }
838 } // namespace. 839 } // namespace.
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698