Index: ash/system/web_notification/ash_popup_alignment_delegate_unittest.cc |
diff --git a/ash/system/web_notification/ash_popup_alignment_delegate_unittest.cc b/ash/system/web_notification/ash_popup_alignment_delegate_unittest.cc |
index 2622b1dbc85e3ea145e41985ddf7abd5a32c8ca8..b56cc47a21780393eb98846bfe2e0e62577cbffc 100644 |
--- a/ash/system/web_notification/ash_popup_alignment_delegate_unittest.cc |
+++ b/ash/system/web_notification/ash_popup_alignment_delegate_unittest.cc |
@@ -170,6 +170,19 @@ TEST_F(AshPopupAlignmentDelegateTest, DockedWindow) { |
kShellWindowId_DockedContainer); |
docked_container->AddChild(window.get()); |
+ // Left-side dock should not affect popup alignment |
+ EXPECT_EQ(origin_x, alignment_delegate()->GetToastOriginX(toast_size)); |
+ EXPECT_EQ(baseline, alignment_delegate()->GetBaseLine()); |
+ EXPECT_FALSE(alignment_delegate()->IsTopDown()); |
+ EXPECT_FALSE(alignment_delegate()->IsFromLeft()); |
+ |
+ // Force dock to right-side |
+ Shell::GetInstance()->SetShelfAlignment(SHELF_ALIGNMENT_LEFT, |
+ Shell::GetPrimaryRootWindow()); |
+ Shell::GetInstance()->SetShelfAlignment(SHELF_ALIGNMENT_BOTTOM, |
+ Shell::GetPrimaryRootWindow()); |
+ |
+ // Right-side dock should not affect popup alignment |
EXPECT_EQ(origin_x, alignment_delegate()->GetToastOriginX(toast_size)); |
EXPECT_EQ(baseline, alignment_delegate()->GetBaseLine()); |
EXPECT_FALSE(alignment_delegate()->IsTopDown()); |