OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "content/public/test/browser_test_utils.h" | 7 #include "content/public/test/browser_test_utils.h" |
8 #include "content/public/test/test_utils.h" | 8 #include "content/public/test/test_utils.h" |
9 #include "extensions/browser/app_window/app_window.h" | 9 #include "extensions/browser/app_window/app_window.h" |
10 #include "extensions/browser/app_window/app_window_registry.h" | 10 #include "extensions/browser/app_window/app_window_registry.h" |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 | 115 |
116 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestExecuteScript) { | 116 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestExecuteScript) { |
117 RunTest("testExecuteScript", "web_view/apitest"); | 117 RunTest("testExecuteScript", "web_view/apitest"); |
118 } | 118 } |
119 | 119 |
120 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestExecuteScriptFail) { | 120 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestExecuteScriptFail) { |
121 RunTest("testExecuteScriptFail", "web_view/apitest"); | 121 RunTest("testExecuteScriptFail", "web_view/apitest"); |
122 } | 122 } |
123 | 123 |
124 IN_PROC_BROWSER_TEST_F(WebViewAPITest, | 124 IN_PROC_BROWSER_TEST_F(WebViewAPITest, |
| 125 TestExecuteScriptIsAbortedWhenWebViewSourceIsChanged) { |
| 126 RunTest("testExecuteScriptIsAbortedWhenWebViewSourceIsChanged", |
| 127 "web_view/apitest"); |
| 128 } |
| 129 |
| 130 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestFindAPI) { |
| 131 RunTest("testFindAPI", "web_view/apitest"); |
| 132 } |
| 133 |
| 134 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestFindAPI_findupdate) { |
| 135 RunTest("testFindAPI_findupdate", "web_view/apitest"); |
| 136 } |
| 137 |
| 138 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestGetProcessId) { |
| 139 RunTest("testGetProcessId", "web_view/apitest"); |
| 140 } |
| 141 |
| 142 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestHiddenBeforeNavigation) { |
| 143 RunTest("testHiddenBeforeNavigation", "web_view/apitest"); |
| 144 } |
| 145 |
| 146 IN_PROC_BROWSER_TEST_F(WebViewAPITest, |
| 147 TestInlineScriptFromAccessibleResources) { |
| 148 RunTest("testInlineScriptFromAccessibleResources", "web_view/apitest"); |
| 149 } |
| 150 |
| 151 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestInvalidChromeExtensionURL) { |
| 152 RunTest("testInvalidChromeExtensionURL", "web_view/apitest"); |
| 153 } |
| 154 |
| 155 IN_PROC_BROWSER_TEST_F(WebViewAPITest, |
125 TestLoadAbortChromeExtensionURLWrongPartition) { | 156 TestLoadAbortChromeExtensionURLWrongPartition) { |
126 RunTest("testLoadAbortChromeExtensionURLWrongPartition", "web_view/apitest"); | 157 RunTest("testLoadAbortChromeExtensionURLWrongPartition", "web_view/apitest"); |
127 } | 158 } |
128 | 159 |
129 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestLoadAbortIllegalChromeURL) { | 160 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestLoadAbortIllegalChromeURL) { |
130 RunTest("testLoadAbortIllegalChromeURL", "web_view/apitest"); | 161 RunTest("testLoadAbortIllegalChromeURL", "web_view/apitest"); |
131 } | 162 } |
132 | 163 |
133 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestLoadAbortIllegalFileURL) { | 164 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestLoadAbortIllegalFileURL) { |
134 RunTest("testLoadAbortIllegalFileURL", "web_view/apitest"); | 165 RunTest("testLoadAbortIllegalFileURL", "web_view/apitest"); |
135 } | 166 } |
136 | 167 |
137 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestLoadAbortIllegalJavaScriptURL) { | 168 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestLoadAbortIllegalJavaScriptURL) { |
138 RunTest("testLoadAbortIllegalJavaScriptURL", "web_view/apitest"); | 169 RunTest("testLoadAbortIllegalJavaScriptURL", "web_view/apitest"); |
139 } | 170 } |
140 | 171 |
141 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestLoadAbortInvalidNavigation) { | 172 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestLoadAbortInvalidNavigation) { |
142 RunTest("testLoadAbortInvalidNavigation", "web_view/apitest"); | 173 RunTest("testLoadAbortInvalidNavigation", "web_view/apitest"); |
143 } | 174 } |
144 | 175 |
145 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestLoadAbortNonWebSafeScheme) { | 176 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestLoadAbortNonWebSafeScheme) { |
146 RunTest("testLoadAbortNonWebSafeScheme", "web_view/apitest"); | 177 RunTest("testLoadAbortNonWebSafeScheme", "web_view/apitest"); |
147 } | 178 } |
148 | 179 |
149 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestLoadProgressEvent) { | 180 IN_PROC_BROWSER_TEST_F(WebViewAPITest, TestLoadProgressEvent) { |
150 RunTest("testLoadProgressEvent", "web_view/apitest"); | 181 RunTest("testLoadProgressEvent", "web_view/apitest"); |
151 } | 182 } |
152 | 183 |
153 } // namespace extensions | 184 } // namespace extensions |
OLD | NEW |