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

Side by Side Diff: chrome/browser/ui/webui/bookmarks_ui_browsertest.cc

Issue 1447693002: [a11y] Bring accessibility-audit up to date: v2.10.0 release. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes per dbeam@'s comment. Created 5 years 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 | « no previous file | chrome/browser/ui/webui/downloads_ui_browsertest.js » ('j') | 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 "base/test/test_timeouts.h" 5 #include "base/test/test_timeouts.h"
6 #include "chrome/browser/ui/browser.h" 6 #include "chrome/browser/ui/browser.h"
7 #include "chrome/browser/ui/chrome_pages.h" 7 #include "chrome/browser/ui/chrome_pages.h"
8 #include "chrome/browser/ui/tabs/tab_strip_model.h" 8 #include "chrome/browser/ui/tabs/tab_strip_model.h"
9 #include "chrome/common/url_constants.h" 9 #include "chrome/common/url_constants.h"
10 #include "chrome/test/base/in_process_browser_test.h" 10 #include "chrome/test/base/in_process_browser_test.h"
11 #include "chrome/test/base/ui_test_utils.h" 11 #include "chrome/test/base/ui_test_utils.h"
12 #include "content/public/browser/notification_service.h" 12 #include "content/public/browser/notification_service.h"
13 #include "content/public/browser/web_contents.h" 13 #include "content/public/browser/web_contents.h"
14 #include "content/public/test/browser_test_utils.h" 14 #include "content/public/test/browser_test_utils.h"
15 #include "content/public/test/test_navigation_observer.h" 15 #include "content/public/test/test_navigation_observer.h"
16 16
17 class BookmarksTest : public InProcessBrowserTest { 17 class BookmarksTest : public InProcessBrowserTest {
18 public: 18 public:
19 BookmarksTest() {} 19 BookmarksTest() {}
20 20
21 void SetUpOnMainThread() override { 21 void SetUpOnMainThread() override {
22 InProcessBrowserTest::SetUpOnMainThread(); 22 InProcessBrowserTest::SetUpOnMainThread();
23 EnableAccessibilityChecksForTestCase(true); 23
24 // Re-enable accessibility checks when audit failures are resolved.
25 // AX_TEXT_01: http://crbug.com/559201
26 // AX_ARIA_08: http://crbug.com/559202
27 // EnableAccessibilityChecksForTestCase(true);
24 } 28 }
25 29
26 void OpenBookmarksManager() { 30 void OpenBookmarksManager() {
27 content::TestNavigationObserver navigation_observer( 31 content::TestNavigationObserver navigation_observer(
28 browser()->tab_strip_model()->GetActiveWebContents(), 2); 32 browser()->tab_strip_model()->GetActiveWebContents(), 2);
29 navigation_observer.StartWatchingNewWebContents(); 33 navigation_observer.StartWatchingNewWebContents();
30 34
31 // Bring up the bookmarks manager tab. 35 // Bring up the bookmarks manager tab.
32 chrome::ShowBookmarkManager(browser()); 36 chrome::ShowBookmarkManager(browser());
33 navigation_observer.Wait(); 37 navigation_observer.Wait();
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 navigation_observer.Wait(); 107 navigation_observer.Wait();
104 108
105 ASSERT_EQ(1, browser()->tab_strip_model()->count()); 109 ASSERT_EQ(1, browser()->tab_strip_model()->count());
106 } 110 }
107 111
108 IN_PROC_BROWSER_TEST_F(BookmarksTest, BookmarksLoaded) { 112 IN_PROC_BROWSER_TEST_F(BookmarksTest, BookmarksLoaded) {
109 ui_test_utils::NavigateToURL(browser(), GURL(chrome::kChromeUIBookmarksURL)); 113 ui_test_utils::NavigateToURL(browser(), GURL(chrome::kChromeUIBookmarksURL));
110 ASSERT_EQ(1, browser()->tab_strip_model()->count()); 114 ASSERT_EQ(1, browser()->tab_strip_model()->count());
111 AssertIsBookmarksPage(browser()->tab_strip_model()->GetActiveWebContents()); 115 AssertIsBookmarksPage(browser()->tab_strip_model()->GetActiveWebContents());
112 } 116 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/webui/downloads_ui_browsertest.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698