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

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

Issue 1140173003: Allow whitelisted content scripts to be injected in WebViews. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@document_has_focus
Patch Set: Don't assume extensions_->GetByID will succeed Created 5 years, 7 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 | chrome/browser/guest_view/web_view/chrome_web_view_guest_delegate.h » ('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 3b3d7bf75b35ecc43db3ebd478f036f6dd37e195..331cc1e2e74b9e3b2053aa3d6bcaf774a8e7f65a 100644
--- a/chrome/browser/apps/guest_view/web_view_browsertest.cc
+++ b/chrome/browser/apps/guest_view/web_view_browsertest.cc
@@ -2212,17 +2212,17 @@ IN_PROC_BROWSER_TEST_F(WebViewTest, ChromeVoxInjection) {
EXPECT_FALSE(
chromeos::AccessibilityManager::Get()->IsSpokenFeedbackEnabled());
+ chromeos::SpeechMonitor monitor;
+ chromeos::AccessibilityManager::Get()->EnableSpokenFeedback(
+ true, ui::A11Y_NOTIFICATION_NONE);
+ EXPECT_TRUE(monitor.SkipChromeVoxEnabledMessage());
+
ASSERT_TRUE(StartEmbeddedTestServer());
content::WebContents* guest_web_contents = LoadGuest(
"/extensions/platform_apps/web_view/chromevox_injection/guest.html",
"web_view/chromevox_injection");
ASSERT_TRUE(guest_web_contents);
- chromeos::SpeechMonitor monitor;
- chromeos::AccessibilityManager::Get()->EnableSpokenFeedback(
- true, ui::A11Y_NOTIFICATION_NONE);
- EXPECT_TRUE(monitor.SkipChromeVoxEnabledMessage());
-
EXPECT_EQ("chrome vox test title", monitor.GetNextUtterance());
}
#endif
« no previous file with comments | « no previous file | chrome/browser/guest_view/web_view/chrome_web_view_guest_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698