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 8024c294d3ccaa46061f3258de6a8b5d535b8196..b2794a7e0f2cf3936c16a9ccf41725e2147afae3 100644 |
--- a/ash/system/web_notification/ash_popup_alignment_delegate_unittest.cc |
+++ b/ash/system/web_notification/ash_popup_alignment_delegate_unittest.cc |
@@ -160,6 +160,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()); |