Index: content/browser/web_contents/web_contents_view_aura_browsertest.cc |
diff --git a/content/browser/web_contents/web_contents_view_aura_browsertest.cc b/content/browser/web_contents/web_contents_view_aura_browsertest.cc |
index 492ab7b49a91cc12a45f1c53c721a09b607f7f13..fd2f2fab033997682b5e57832b8a7a15e2c685ec 100644 |
--- a/content/browser/web_contents/web_contents_view_aura_browsertest.cc |
+++ b/content/browser/web_contents/web_contents_view_aura_browsertest.cc |
@@ -27,6 +27,7 @@ |
#include "content/public/test/test_renderer_host.h" |
#include "content/public/test/test_utils.h" |
#include "content/shell/browser/shell.h" |
+#include "ui/aura/client/aura_constants.h" |
#include "ui/aura/test/event_generator.h" |
#include "ui/aura/window.h" |
#include "ui/aura/window_tree_host.h" |
@@ -687,4 +688,15 @@ IN_PROC_BROWSER_TEST_F(WebContentsViewAuraTest, HideContentOnParenHide) { |
EXPECT_TRUE(web_contents->should_normally_be_visible()); |
} |
+// Verify that hiding a parent of the renderer will hide the content too. |
sky
2014/06/20 15:10:37
I don't think this test provides much value, go ah
|
+IN_PROC_BROWSER_TEST_F(WebContentsViewAuraTest, HostWindowKey) { |
+ ASSERT_NO_FATAL_FAILURE(StartTestWithPage("files/title1.html")); |
+ WebContentsImpl* web_contents = |
+ static_cast<WebContentsImpl*>(shell()->web_contents()); |
+ |
+ EXPECT_EQ(shell()->window(), |
+ web_contents->GetNativeView()->GetProperty( |
+ aura::client::kHostWindowKey)); |
+} |
+ |
} // namespace content |