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

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

Issue 2693823004: aura-mus: Implement DesktopWindowTreeHostMus::SetOpacity(). (Closed)
Patch Set: Removed the comments in WindowPortMus::SetOpacityFromServer Created 3 years, 10 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 f4976aab0eb75b8ab04914db827eecae3da20508..4c72bb57e38d7336851c0773601d48488a47bf17 100644
--- a/ui/views/mus/desktop_window_tree_host_mus_unittest.cc
+++ b/ui/views/mus/desktop_window_tree_host_mus_unittest.cc
@@ -268,6 +268,16 @@ TEST_F(DesktopWindowTreeHostMusTest, StackAbove) {
waiter.Wait();
}
+TEST_F(DesktopWindowTreeHostMusTest, SetOpacity) {
+ std::unique_ptr<Widget> widget1(CreateWidget(nullptr));
+ widget1->Show();
+
+ aura::test::ChangeCompletionWaiter waiter(
+ MusClient::Get()->window_tree_client(), aura::ChangeType::OPACITY, true);
+ widget1->SetOpacity(0.5f);
+ waiter.Wait();
+}
+
TEST_F(DesktopWindowTreeHostMusTest, TransientParentWiredToHostWindow) {
std::unique_ptr<Widget> widget1(CreateWidget());
widget1->Show();
« 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