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

Unified Diff: ui/views/mus/desktop_window_tree_host_mus_unittest.cc

Issue 2840903002: mash: Fix create fullscreen widget (Closed)
Patch Set: const Created 3 years, 8 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 | « ui/views/mus/desktop_window_tree_host_mus.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/mus/desktop_window_tree_host_mus_unittest.cc
diff --git a/ui/views/mus/desktop_window_tree_host_mus_unittest.cc b/ui/views/mus/desktop_window_tree_host_mus_unittest.cc
index 6e7cdf73b5230929eacd544c2367c7dd8a77374a..ad0db4ba5fe04a50d904bae5c76a23fce5c90d71 100644
--- a/ui/views/mus/desktop_window_tree_host_mus_unittest.cc
+++ b/ui/views/mus/desktop_window_tree_host_mus_unittest.cc
@@ -327,4 +327,22 @@ TEST_F(DesktopWindowTreeHostMusTest, NoShadow) {
wm::kShadowElevationKey));
}
+TEST_F(DesktopWindowTreeHostMusTest, CreateFullscreenWidget) {
+ const Widget::InitParams::Type kWidgetTypes[] = {
+ Widget::InitParams::TYPE_WINDOW,
+ Widget::InitParams::TYPE_WINDOW_FRAMELESS,
+ };
+
+ for (auto widget_type : kWidgetTypes) {
+ Widget widget;
+ Widget::InitParams params(widget_type);
+ params.show_state = ui::SHOW_STATE_FULLSCREEN;
+ params.ownership = Widget::InitParams::WIDGET_OWNS_NATIVE_WIDGET;
+ widget.Init(params);
+
+ EXPECT_TRUE(widget.IsFullscreen())
+ << "Fullscreen creation failed for type=" << widget_type;
+ }
+}
+
} // namespace views
« no previous file with comments | « ui/views/mus/desktop_window_tree_host_mus.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698