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

Side by Side 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 unified diff | 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 »
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 "base/path_service.h" 5 #include "base/path_service.h"
6 #include "base/process/process.h" 6 #include "base/process/process.h"
7 #include "base/strings/stringprintf.h" 7 #include "base/strings/stringprintf.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "chrome/app/chrome_command_ids.h" 9 #include "chrome/app/chrome_command_ids.h"
10 #include "chrome/browser/apps/app_browsertest_util.h" 10 #include "chrome/browser/apps/app_browsertest_util.h"
(...skipping 2719 matching lines...) Expand 10 before | Expand all | Expand 10 after
2730 // http://crbug.com/403325 2730 // http://crbug.com/403325
2731 #define MAYBE_WebViewInBackgroundPage \ 2731 #define MAYBE_WebViewInBackgroundPage \
2732 DISABLED_WebViewInBackgroundPage 2732 DISABLED_WebViewInBackgroundPage
2733 #else 2733 #else
2734 #define MAYBE_WebViewInBackgroundPage WebViewInBackgroundPage 2734 #define MAYBE_WebViewInBackgroundPage WebViewInBackgroundPage
2735 #endif 2735 #endif
2736 IN_PROC_BROWSER_TEST_F(WebViewTest, MAYBE_WebViewInBackgroundPage) { 2736 IN_PROC_BROWSER_TEST_F(WebViewTest, MAYBE_WebViewInBackgroundPage) {
2737 ASSERT_TRUE(RunExtensionTest("platform_apps/web_view/background")) 2737 ASSERT_TRUE(RunExtensionTest("platform_apps/web_view/background"))
2738 << message_; 2738 << message_;
2739 } 2739 }
2740
2741 // This test verifies that the allowtransparency attribute properly propagates
2742 IN_PROC_BROWSER_TEST_F(WebViewTest, AllowTransparencyAndAllowScalingPropagate) {
2743 LoadAppWithGuest("web_view/simple");
2744
2745 ASSERT_TRUE(!!GetGuestWebContents());
2746 extensions::WebViewGuest* guest =
2747 extensions::WebViewGuest::FromWebContents(GetGuestWebContents());
2748 ASSERT_TRUE(guest->allow_transparency());
2749 ASSERT_TRUE(guest->allow_scaling());
2750 }
2751
OLDNEW
« 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