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

Unified Diff: chrome/browser/apps/web_view_browsertest.cc

Issue 618823002: GuestView: Move lifetime management out of content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added comment Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/renderer/resources/extensions/app_view.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/apps/web_view_browsertest.cc
diff --git a/chrome/browser/apps/web_view_browsertest.cc b/chrome/browser/apps/web_view_browsertest.cc
index 0a39ca9a563b771a1fe8ef0b06d8cc0ff3091a9c..491a90b28834d3594dad403bfbe871f46d5e7cf0 100644
--- a/chrome/browser/apps/web_view_browsertest.cc
+++ b/chrome/browser/apps/web_view_browsertest.cc
@@ -819,33 +819,6 @@ IN_PROC_BROWSER_TEST_F(WebViewTest, AutoSize) {
<< message_;
}
-// Tests that a <webview> that is set to "display: none" after load and then
-// setting "display: block" re-renders the plugin properly.
-//
-// Initially after loading the <webview> and the test sets <webview> to
-// "display: none".
-// This causes the browser plugin to be destroyed, we then set the
-// style.display of the <webview> to block again and check that loadstop
-// fires properly.
-IN_PROC_BROWSER_TEST_F(WebViewTest, DisplayNoneAndBack) {
- LoadAppWithGuest("web_view/display_none_and_back");
-
- scoped_refptr<content::MessageLoopRunner> loop_runner(
- new content::MessageLoopRunner);
- WebContentsHiddenObserver observer(GetGuestWebContents(),
- loop_runner->QuitClosure());
-
- // Handled in platform_apps/web_view/display_none_and_back/main.js
- SendMessageToEmbedder("hide-guest");
- GetGuestViewManager()->WaitForGuestDeleted();
- ExtensionTestMessageListener test_passed_listener("WebViewTest.PASSED",
- false);
-
- SendMessageToEmbedder("show-guest");
- GetGuestViewManager()->WaitForGuestCreated();
- EXPECT_TRUE(test_passed_listener.WaitUntilSatisfied());
-}
-
// http://crbug.com/326332
IN_PROC_BROWSER_TEST_F(WebViewTest, DISABLED_Shim_TestAutosizeAfterNavigation) {
TestHelper("testAutosizeAfterNavigation", "web_view/shim", NO_TEST_SERVER);
« no previous file with comments | « no previous file | chrome/renderer/resources/extensions/app_view.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698