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

Side by Side Diff: chrome/browser/apps/guest_view/web_view_browsertest.cc

Issue 1589623002: Keep track of accessibility focus across windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Final suggestions Created 4 years, 10 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 | « no previous file | chrome/browser/extensions/api/automation/automation_apitest.cc » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 <queue> 5 #include <queue>
6 #include <utility> 6 #include <utility>
7 7
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/path_service.h" 10 #include "base/path_service.h"
(...skipping 2015 matching lines...) Expand 10 before | Expand all | Expand 10 after
2026 chromeos::AccessibilityManager::Get()->EnableSpokenFeedback( 2026 chromeos::AccessibilityManager::Get()->EnableSpokenFeedback(
2027 true, ui::A11Y_NOTIFICATION_NONE); 2027 true, ui::A11Y_NOTIFICATION_NONE);
2028 EXPECT_TRUE(monitor.SkipChromeVoxEnabledMessage()); 2028 EXPECT_TRUE(monitor.SkipChromeVoxEnabledMessage());
2029 2029
2030 ASSERT_TRUE(StartEmbeddedTestServer()); 2030 ASSERT_TRUE(StartEmbeddedTestServer());
2031 content::WebContents* guest_web_contents = LoadGuest( 2031 content::WebContents* guest_web_contents = LoadGuest(
2032 "/extensions/platform_apps/web_view/chromevox_injection/guest.html", 2032 "/extensions/platform_apps/web_view/chromevox_injection/guest.html",
2033 "web_view/chromevox_injection"); 2033 "web_view/chromevox_injection");
2034 ASSERT_TRUE(guest_web_contents); 2034 ASSERT_TRUE(guest_web_contents);
2035 2035
2036 EXPECT_EQ("chrome vox test title", monitor.GetNextUtterance()); 2036 for (;;) {
2037 if (monitor.GetNextUtterance() == "chrome vox test title")
2038 break;
2039 }
2037 } 2040 }
2038 #endif 2041 #endif
2039 2042
2040 // Flaky on Windows. http://crbug.com/303966 2043 // Flaky on Windows. http://crbug.com/303966
2041 #if defined(OS_WIN) 2044 #if defined(OS_WIN)
2042 #define MAYBE_TearDownTest DISABLED_TearDownTest 2045 #define MAYBE_TearDownTest DISABLED_TearDownTest
2043 #else 2046 #else
2044 #define MAYBE_TearDownTest TearDownTest 2047 #define MAYBE_TearDownTest TearDownTest
2045 #endif 2048 #endif
2046 IN_PROC_BROWSER_TEST_P(WebViewTest, MAYBE_TearDownTest) { 2049 IN_PROC_BROWSER_TEST_P(WebViewTest, MAYBE_TearDownTest) {
(...skipping 1065 matching lines...) Expand 10 before | Expand all | Expand 10 after
3112 // 4 tasks expected. The order is arbitrary. 3115 // 4 tasks expected. The order is arbitrary.
3113 // Tab: about:blank, 3116 // Tab: about:blank,
3114 // Background Page: <webview> task manager test, 3117 // Background Page: <webview> task manager test,
3115 // App: <webview> task manager test, 3118 // App: <webview> task manager test,
3116 // Webview: WebViewed test content. 3119 // Webview: WebViewed test content.
3117 EXPECT_EQ(4U, task_manager.tasks().size()); 3120 EXPECT_EQ(4U, task_manager.tasks().size());
3118 EXPECT_TRUE(HasExpectedGuestTask(task_manager, guest_contents)); 3121 EXPECT_TRUE(HasExpectedGuestTask(task_manager, guest_contents));
3119 } 3122 }
3120 3123
3121 #endif // defined(ENABLE_TASK_MANAGER) 3124 #endif // defined(ENABLE_TASK_MANAGER)
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/api/automation/automation_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698