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/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 2406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2417 // Get an existing registered rule for the guest. | 2417 // Get an existing registered rule for the guest. |
2418 extensions::RulesRegistry* registry = | 2418 extensions::RulesRegistry* registry = |
2419 registry_service->GetRulesRegistry( | 2419 registry_service->GetRulesRegistry( |
2420 rules_registry_id, | 2420 rules_registry_id, |
2421 extensions::declarative_webrequest_constants::kOnRequest).get(); | 2421 extensions::declarative_webrequest_constants::kOnRequest).get(); |
2422 | 2422 |
2423 EXPECT_TRUE(registry); | 2423 EXPECT_TRUE(registry); |
2424 EXPECT_FALSE(registry->rules_cache_delegate_for_testing()); | 2424 EXPECT_FALSE(registry->rules_cache_delegate_for_testing()); |
2425 } | 2425 } |
2426 | 2426 |
| 2427 // This test verifies that webview.contentWindow works inside an iframe. |
| 2428 IN_PROC_BROWSER_TEST_F(WebViewTest, Shim_TestWebViewInsideFrame) { |
| 2429 LoadAppWithGuest("web_view/inside_iframe"); |
| 2430 } |
| 2431 |
2427 // <webview> screenshot capture fails with ubercomp. | 2432 // <webview> screenshot capture fails with ubercomp. |
2428 // See http://crbug.com/327035. | 2433 // See http://crbug.com/327035. |
2429 IN_PROC_BROWSER_TEST_F(WebViewCaptureTest, | 2434 IN_PROC_BROWSER_TEST_F(WebViewCaptureTest, |
2430 DISABLED_Shim_ScreenshotCapture) { | 2435 DISABLED_Shim_ScreenshotCapture) { |
2431 TestHelper("testScreenshotCapture", "web_view/shim", NO_TEST_SERVER); | 2436 TestHelper("testScreenshotCapture", "web_view/shim", NO_TEST_SERVER); |
2432 } | 2437 } |
2433 | 2438 |
2434 #if defined(OS_WIN) | 2439 #if defined(OS_WIN) |
2435 // Test is disabled on Windows because it times out often. | 2440 // Test is disabled on Windows because it times out often. |
2436 // http://crbug.com/403325 | 2441 // http://crbug.com/403325 |
2437 #define MAYBE_WebViewInBackgroundPage \ | 2442 #define MAYBE_WebViewInBackgroundPage \ |
2438 DISABLED_WebViewInBackgroundPage | 2443 DISABLED_WebViewInBackgroundPage |
2439 #else | 2444 #else |
2440 #define MAYBE_WebViewInBackgroundPage WebViewInBackgroundPage | 2445 #define MAYBE_WebViewInBackgroundPage WebViewInBackgroundPage |
2441 #endif | 2446 #endif |
2442 IN_PROC_BROWSER_TEST_F(WebViewTest, MAYBE_WebViewInBackgroundPage) { | 2447 IN_PROC_BROWSER_TEST_F(WebViewTest, MAYBE_WebViewInBackgroundPage) { |
2443 ASSERT_TRUE(RunExtensionTest("platform_apps/web_view/background")) | 2448 ASSERT_TRUE(RunExtensionTest("platform_apps/web_view/background")) |
2444 << message_; | 2449 << message_; |
2445 } | 2450 } |
OLD | NEW |