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

Side by Side Diff: chrome/browser/apps/guest_view/web_view_browsertest.cc

Issue 845363004: <webview>, <appview> and <extensionoptions> can run in a detached state. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 years, 11 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/renderer/resources/extensions/extension_options.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/strings/stringprintf.h" 6 #include "base/strings/stringprintf.h"
7 #include "base/strings/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
8 #include "chrome/browser/apps/app_browsertest_util.h" 8 #include "chrome/browser/apps/app_browsertest_util.h"
9 #include "chrome/browser/chrome_content_browser_client.h" 9 #include "chrome/browser/chrome_content_browser_client.h"
10 #include "chrome/browser/prerender/prerender_link_manager.h" 10 #include "chrome/browser/prerender/prerender_link_manager.h"
(...skipping 826 matching lines...) Expand 10 before | Expand all | Expand 10 after
837 // Flaky on XP bot http://crbug.com/299507 837 // Flaky on XP bot http://crbug.com/299507
838 if (base::win::GetVersion() <= base::win::VERSION_XP) 838 if (base::win::GetVersion() <= base::win::VERSION_XP)
839 return; 839 return;
840 #endif 840 #endif
841 841
842 ASSERT_TRUE(RunPlatformAppTest("platform_apps/web_view/autosize")) 842 ASSERT_TRUE(RunPlatformAppTest("platform_apps/web_view/autosize"))
843 << message_; 843 << message_;
844 } 844 }
845 845
846 // Test for http://crbug.com/419611. 846 // Test for http://crbug.com/419611.
847 IN_PROC_BROWSER_TEST_F(WebViewTest, DISABLED_DisplayNoneSetSrc) { 847 IN_PROC_BROWSER_TEST_F(WebViewTest, DisplayNoneSetSrc) {
848 LoadAndLaunchPlatformApp("web_view/display_none_set_src", 848 LoadAndLaunchPlatformApp("web_view/display_none_set_src",
849 "WebViewTest.LAUNCHED"); 849 "WebViewTest.LAUNCHED");
850 // Navigate the guest while it's in "display: none" state. 850 // Navigate the guest while it's in "display: none" state.
851 SendMessageToEmbedder("navigate-guest"); 851 SendMessageToEmbedder("navigate-guest");
852 GetGuestViewManager()->WaitForSingleGuestCreated(); 852 GetGuestViewManager()->WaitForSingleGuestCreated();
853 853
854 // Now attempt to navigate the guest again. 854 // Now attempt to navigate the guest again.
855 SendMessageToEmbedder("navigate-guest"); 855 SendMessageToEmbedder("navigate-guest");
856 856
857 ExtensionTestMessageListener test_passed_listener("WebViewTest.PASSED", 857 ExtensionTestMessageListener test_passed_listener("WebViewTest.PASSED",
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
1082 IN_PROC_BROWSER_TEST_F(WebViewTest, Shim_TestNewWindowNoReferrerLink) { 1082 IN_PROC_BROWSER_TEST_F(WebViewTest, Shim_TestNewWindowNoReferrerLink) {
1083 TestHelper("testNewWindowNoReferrerLink", "web_view/shim", NEEDS_TEST_SERVER); 1083 TestHelper("testNewWindowNoReferrerLink", "web_view/shim", NEEDS_TEST_SERVER);
1084 } 1084 }
1085 1085
1086 IN_PROC_BROWSER_TEST_F(WebViewTest, Shim_TestContentLoadEvent) { 1086 IN_PROC_BROWSER_TEST_F(WebViewTest, Shim_TestContentLoadEvent) {
1087 TestHelper("testContentLoadEvent", "web_view/shim", NO_TEST_SERVER); 1087 TestHelper("testContentLoadEvent", "web_view/shim", NO_TEST_SERVER);
1088 } 1088 }
1089 1089
1090 // TODO(fsamuel): Enable this test once <webview> can run in a detached state. 1090 // TODO(fsamuel): Enable this test once <webview> can run in a detached state.
1091 IN_PROC_BROWSER_TEST_F(WebViewTest, 1091 IN_PROC_BROWSER_TEST_F(WebViewTest,
1092 DISABLED_Shim_TestContentLoadEventWithDisplayNone) { 1092 Shim_TestContentLoadEventWithDisplayNone) {
1093 TestHelper("testContentLoadEventWithDisplayNone", 1093 TestHelper("testContentLoadEventWithDisplayNone",
1094 "web_view/shim", 1094 "web_view/shim",
1095 NO_TEST_SERVER); 1095 NO_TEST_SERVER);
1096 } 1096 }
1097 1097
1098 IN_PROC_BROWSER_TEST_F(WebViewTest, Shim_TestDeclarativeWebRequestAPI) { 1098 IN_PROC_BROWSER_TEST_F(WebViewTest, Shim_TestDeclarativeWebRequestAPI) {
1099 TestHelper("testDeclarativeWebRequestAPI", 1099 TestHelper("testDeclarativeWebRequestAPI",
1100 "web_view/shim", 1100 "web_view/shim",
1101 NEEDS_TEST_SERVER); 1101 NEEDS_TEST_SERVER);
1102 } 1102 }
(...skipping 1376 matching lines...) Expand 10 before | Expand all | Expand 10 after
2479 // http://crbug.com/403325 2479 // http://crbug.com/403325
2480 #define MAYBE_WebViewInBackgroundPage \ 2480 #define MAYBE_WebViewInBackgroundPage \
2481 DISABLED_WebViewInBackgroundPage 2481 DISABLED_WebViewInBackgroundPage
2482 #else 2482 #else
2483 #define MAYBE_WebViewInBackgroundPage WebViewInBackgroundPage 2483 #define MAYBE_WebViewInBackgroundPage WebViewInBackgroundPage
2484 #endif 2484 #endif
2485 IN_PROC_BROWSER_TEST_F(WebViewTest, MAYBE_WebViewInBackgroundPage) { 2485 IN_PROC_BROWSER_TEST_F(WebViewTest, MAYBE_WebViewInBackgroundPage) {
2486 ASSERT_TRUE(RunExtensionTest("platform_apps/web_view/background")) 2486 ASSERT_TRUE(RunExtensionTest("platform_apps/web_view/background"))
2487 << message_; 2487 << message_;
2488 } 2488 }
OLDNEW
« no previous file with comments | « no previous file | chrome/renderer/resources/extensions/extension_options.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698