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

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

Issue 1864953002: ash/mash: Fix painting of status-tray bubble. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test Created 4 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/native_widget_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/native_widget_mus_unittest.cc
diff --git a/ui/views/mus/native_widget_mus_unittest.cc b/ui/views/mus/native_widget_mus_unittest.cc
index a2ff4b065e8e1677b19def6ba2520a34a8a6b8a6..8dcebbcd8015e20124e8ab3bb7c1dd944a37160b 100644
--- a/ui/views/mus/native_widget_mus_unittest.cc
+++ b/ui/views/mus/native_widget_mus_unittest.cc
@@ -12,6 +12,7 @@
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "third_party/skia/include/core/SkColor.h"
+#include "ui/aura/window.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/image/image_skia.h"
#include "ui/gfx/skia_util.h"
@@ -124,5 +125,13 @@ TEST_F(NativeWidgetMusTest, ChangeAppIcon) {
EXPECT_TRUE(gfx::BitmapsAreEqual(bitmap2, icon));
}
+TEST_F(NativeWidgetMusTest, ValidLayerTree) {
+ scoped_ptr<Widget> widget(CreateWidget(nullptr));
+ View* content = new View;
+ content->SetPaintToLayer(true);
+ widget->GetContentsView()->AddChildView(content);
+ EXPECT_TRUE(widget->GetNativeWindow()->layer()->Contains(content->layer()));
+}
+
} // namespace
} // namespace views
« no previous file with comments | « ui/views/mus/native_widget_mus.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698