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

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

Issue 1065413002: <webview>: Don't reset allowtransparency and allowscaling between createGuest and attachGuest (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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/test/data/extensions/platform_apps/web_view/simple/main.js » ('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 9b829079e1039160eab408c852991ef06c9f25ae..ca6aac230dfb0eab752827e10e46503d85885ad4 100644
--- a/chrome/browser/apps/guest_view/web_view_browsertest.cc
+++ b/chrome/browser/apps/guest_view/web_view_browsertest.cc
@@ -2737,3 +2737,15 @@ IN_PROC_BROWSER_TEST_F(WebViewTest, MAYBE_WebViewInBackgroundPage) {
ASSERT_TRUE(RunExtensionTest("platform_apps/web_view/background"))
<< message_;
}
+
+// This test verifies that the allowtransparency attribute properly propagates
+IN_PROC_BROWSER_TEST_F(WebViewTest, AllowTransparencyAndAllowScalingPropagate) {
+ LoadAppWithGuest("web_view/simple");
+
+ ASSERT_TRUE(!!GetGuestWebContents());
+ extensions::WebViewGuest* guest =
+ extensions::WebViewGuest::FromWebContents(GetGuestWebContents());
+ ASSERT_TRUE(guest->allow_transparency());
+ ASSERT_TRUE(guest->allow_scaling());
+}
+
« no previous file with comments | « no previous file | chrome/test/data/extensions/platform_apps/web_view/simple/main.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698