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 <queue> | 5 #include <queue> |
6 #include <set> | 6 #include <set> |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/callback_helpers.h" | 9 #include "base/callback_helpers.h" |
10 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
(...skipping 3221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3232 } | 3232 } |
3233 | 3233 |
3234 // Tests that a renderer navigation from an unattached guest that results in a | 3234 // Tests that a renderer navigation from an unattached guest that results in a |
3235 // server redirect works properly. | 3235 // server redirect works properly. |
3236 IN_PROC_BROWSER_TEST_P(WebViewTest, | 3236 IN_PROC_BROWSER_TEST_P(WebViewTest, |
3237 Shim_TestRendererNavigationRedirectWhileUnattached) { | 3237 Shim_TestRendererNavigationRedirectWhileUnattached) { |
3238 TestHelper("testRendererNavigationRedirectWhileUnattached", | 3238 TestHelper("testRendererNavigationRedirectWhileUnattached", |
3239 "web_view/shim", NEEDS_TEST_SERVER); | 3239 "web_view/shim", NEEDS_TEST_SERVER); |
3240 } | 3240 } |
3241 | 3241 |
| 3242 // Tests that the embedder can create a blob URL and navigate a WebView to it. |
| 3243 // See https://crbug.com/652077. |
| 3244 IN_PROC_BROWSER_TEST_P(WebViewTest, Shim_TestBlobURL) { |
| 3245 TestHelper("testBlobURL", "web_view/shim", NEEDS_TEST_SERVER); |
| 3246 } |
| 3247 |
3242 // Tests that a WebView accessible resource can actually be loaded from a | 3248 // Tests that a WebView accessible resource can actually be loaded from a |
3243 // webpage in a WebView. | 3249 // webpage in a WebView. |
3244 IN_PROC_BROWSER_TEST_P(WebViewTest, LoadWebviewAccessibleResource) { | 3250 IN_PROC_BROWSER_TEST_P(WebViewTest, LoadWebviewAccessibleResource) { |
3245 TestHelper("testLoadWebviewAccessibleResource", | 3251 TestHelper("testLoadWebviewAccessibleResource", |
3246 "web_view/load_webview_accessible_resource", NEEDS_TEST_SERVER); | 3252 "web_view/load_webview_accessible_resource", NEEDS_TEST_SERVER); |
3247 } | 3253 } |
3248 | 3254 |
3249 IN_PROC_BROWSER_TEST_P(WebViewAccessibilityTest, LoadWebViewAccessibility) { | 3255 IN_PROC_BROWSER_TEST_P(WebViewAccessibilityTest, LoadWebViewAccessibility) { |
3250 LoadAppWithGuest("web_view/focus_accessibility"); | 3256 LoadAppWithGuest("web_view/focus_accessibility"); |
3251 content::WebContents* web_contents = GetFirstAppWindowWebContents(); | 3257 content::WebContents* web_contents = GetFirstAppWindowWebContents(); |
(...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3834 gfx::Point embedder_origin = | 3840 gfx::Point embedder_origin = |
3835 GetEmbedderWebContents()->GetContainerBounds().origin(); | 3841 GetEmbedderWebContents()->GetContainerBounds().origin(); |
3836 guest_rect.Offset(-embedder_origin.x(), -embedder_origin.y()); | 3842 guest_rect.Offset(-embedder_origin.x(), -embedder_origin.y()); |
3837 | 3843 |
3838 // Generate and send synthetic touch event. | 3844 // Generate and send synthetic touch event. |
3839 content::SimulateTouchPressAt(GetEmbedderWebContents(), | 3845 content::SimulateTouchPressAt(GetEmbedderWebContents(), |
3840 guest_rect.CenterPoint()); | 3846 guest_rect.CenterPoint()); |
3841 EXPECT_TRUE(aura_webview->HasFocus()); | 3847 EXPECT_TRUE(aura_webview->HasFocus()); |
3842 } | 3848 } |
3843 #endif | 3849 #endif |
OLD | NEW |