OLD | NEW |
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 Loading... |
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 |
OLD | NEW |