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 1062 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1073 NO_TEST_SERVER); | 1073 NO_TEST_SERVER); |
1074 } | 1074 } |
1075 | 1075 |
1076 IN_PROC_BROWSER_TEST_F(WebViewTest, | 1076 IN_PROC_BROWSER_TEST_F(WebViewTest, |
1077 Shim_TestPartitionRemovalAfterNavigationFails) { | 1077 Shim_TestPartitionRemovalAfterNavigationFails) { |
1078 TestHelper("testPartitionRemovalAfterNavigationFails", | 1078 TestHelper("testPartitionRemovalAfterNavigationFails", |
1079 "web_view/shim", | 1079 "web_view/shim", |
1080 NO_TEST_SERVER); | 1080 NO_TEST_SERVER); |
1081 } | 1081 } |
1082 | 1082 |
| 1083 IN_PROC_BROWSER_TEST_F(WebViewTest, Shim_TestAddContentScript) { |
| 1084 TestHelper("testAddContentScript", "web_view/shim", NEEDS_TEST_SERVER); |
| 1085 } |
| 1086 |
| 1087 IN_PROC_BROWSER_TEST_F(WebViewTest, Shim_TestAddMultipleContentScripts) { |
| 1088 TestHelper("testAddMultipleContentScripts", "web_view/shim", |
| 1089 NEEDS_TEST_SERVER); |
| 1090 } |
| 1091 |
| 1092 IN_PROC_BROWSER_TEST_F( |
| 1093 WebViewTest, |
| 1094 Shim_TestAddContentScriptWithSameNameShouldOverwriteTheExistingOne) { |
| 1095 TestHelper("testAddContentScriptWithSameNameShouldOverwriteTheExistingOne", |
| 1096 "web_view/shim", NEEDS_TEST_SERVER); |
| 1097 } |
| 1098 |
| 1099 IN_PROC_BROWSER_TEST_F( |
| 1100 WebViewTest, |
| 1101 Shim_TestAddContentScriptToOneWebViewShouldNotInjectToTheOtherWebView) { |
| 1102 TestHelper("testAddContentScriptToOneWebViewShouldNotInjectToTheOtherWebView", |
| 1103 "web_view/shim", NEEDS_TEST_SERVER); |
| 1104 } |
| 1105 |
| 1106 IN_PROC_BROWSER_TEST_F(WebViewTest, Shim_TestAddAndRemoveContentScripts) { |
| 1107 TestHelper("testAddAndRemoveContentScripts", "web_view/shim", |
| 1108 NEEDS_TEST_SERVER); |
| 1109 } |
| 1110 |
| 1111 IN_PROC_BROWSER_TEST_F(WebViewTest, |
| 1112 Shim_TestAddContentScriptsWithNewWindowAPI) { |
| 1113 TestHelper("testAddContentScriptsWithNewWindowAPI", "web_view/shim", |
| 1114 NEEDS_TEST_SERVER); |
| 1115 } |
| 1116 |
| 1117 IN_PROC_BROWSER_TEST_F( |
| 1118 WebViewTest, |
| 1119 Shim_TestContentScriptIsInjectedAfterTerminateAndReloadWebView) { |
| 1120 TestHelper("testContentScriptIsInjectedAfterTerminateAndReloadWebView", |
| 1121 "web_view/shim", NEEDS_TEST_SERVER); |
| 1122 } |
| 1123 |
| 1124 IN_PROC_BROWSER_TEST_F( |
| 1125 WebViewTest, |
| 1126 Shim_TestContentScriptExistsAsLongAsWebViewTagExists) { |
| 1127 TestHelper("testContentScriptExistsAsLongAsWebViewTagExists", |
| 1128 "web_view/shim", NEEDS_TEST_SERVER); |
| 1129 } |
| 1130 |
1083 IN_PROC_BROWSER_TEST_F(WebViewTest, Shim_TestExecuteScriptFail) { | 1131 IN_PROC_BROWSER_TEST_F(WebViewTest, Shim_TestExecuteScriptFail) { |
1084 #if defined(OS_WIN) | 1132 #if defined(OS_WIN) |
1085 // Flaky on XP bot http://crbug.com/266185 | 1133 // Flaky on XP bot http://crbug.com/266185 |
1086 if (base::win::GetVersion() <= base::win::VERSION_XP) | 1134 if (base::win::GetVersion() <= base::win::VERSION_XP) |
1087 return; | 1135 return; |
1088 #endif | 1136 #endif |
1089 | 1137 |
1090 TestHelper("testExecuteScriptFail", "web_view/shim", NEEDS_TEST_SERVER); | 1138 TestHelper("testExecuteScriptFail", "web_view/shim", NEEDS_TEST_SERVER); |
1091 } | 1139 } |
1092 | 1140 |
(...skipping 1642 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2735 IN_PROC_BROWSER_TEST_F(WebViewTest, AllowTransparencyAndAllowScalingPropagate) { | 2783 IN_PROC_BROWSER_TEST_F(WebViewTest, AllowTransparencyAndAllowScalingPropagate) { |
2736 LoadAppWithGuest("web_view/simple"); | 2784 LoadAppWithGuest("web_view/simple"); |
2737 | 2785 |
2738 ASSERT_TRUE(!!GetGuestWebContents()); | 2786 ASSERT_TRUE(!!GetGuestWebContents()); |
2739 extensions::WebViewGuest* guest = | 2787 extensions::WebViewGuest* guest = |
2740 extensions::WebViewGuest::FromWebContents(GetGuestWebContents()); | 2788 extensions::WebViewGuest::FromWebContents(GetGuestWebContents()); |
2741 ASSERT_TRUE(guest->allow_transparency()); | 2789 ASSERT_TRUE(guest->allow_transparency()); |
2742 ASSERT_TRUE(guest->allow_scaling()); | 2790 ASSERT_TRUE(guest->allow_scaling()); |
2743 } | 2791 } |
2744 | 2792 |
OLD | NEW |