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

Unified Diff: chrome/browser/apps/guest_view/web_view_browsertest.cc

Issue 2262773002: Fix two race conditions in web view accessibility (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/frame_host/render_frame_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/apps/guest_view/web_view_browsertest.cc
diff --git a/chrome/browser/apps/guest_view/web_view_browsertest.cc b/chrome/browser/apps/guest_view/web_view_browsertest.cc
index 9dcc054c765c341d2c1db2c9a40aec40fe94383d..fd244bd4934b84fc7d3b2e324ac23dac55fcc8b3 100644
--- a/chrome/browser/apps/guest_view/web_view_browsertest.cc
+++ b/chrome/browser/apps/guest_view/web_view_browsertest.cc
@@ -3238,6 +3238,16 @@ IN_PROC_BROWSER_TEST_P(WebViewTest, LoadWebviewAccessibleResource) {
"web_view/load_webview_accessible_resource", NEEDS_TEST_SERVER);
}
+IN_PROC_BROWSER_TEST_P(WebViewAccessibilityTest, LoadWebViewAccessibility) {
+ LoadAppWithGuest("web_view/focus_accessibility");
+ content::WebContents* web_contents = GetFirstAppWindowWebContents();
+ content::EnableAccessibilityForWebContents(web_contents);
+ content::WebContents* guest_web_contents = GetGuestWebContents();
+ content::EnableAccessibilityForWebContents(guest_web_contents);
+ content::WaitForAccessibilityTreeToContainNodeWithName(web_contents,
+ "Guest button");
+}
+
IN_PROC_BROWSER_TEST_P(WebViewAccessibilityTest, FocusAccessibility) {
LoadAppWithGuest("web_view/focus_accessibility");
content::WebContents* web_contents = GetFirstAppWindowWebContents();
« no previous file with comments | « no previous file | content/browser/frame_host/render_frame_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698