Index: chrome/browser/ui/autofill/autofill_popup_controller_interactive_uitest.cc |
diff --git a/chrome/browser/ui/autofill/autofill_popup_controller_interactive_uitest.cc b/chrome/browser/ui/autofill/autofill_popup_controller_interactive_uitest.cc |
index 977122aeb6bb19fc7745337e878d55afeabf1b5a..7ba0e02ce3a231b641bbda3b56492f496651ef41 100644 |
--- a/chrome/browser/ui/autofill/autofill_popup_controller_interactive_uitest.cc |
+++ b/chrome/browser/ui/autofill/autofill_popup_controller_interactive_uitest.cc |
@@ -96,23 +96,33 @@ class AutofillPopupControllerBrowserTest |
scoped_ptr<TestAutofillExternalDelegate> autofill_external_delegate_; |
}; |
-// Autofill UI isn't currently hidden on window move on Mac. |
-// http://crbug.com/180566 |
-#if !defined(OS_MACOSX) |
IN_PROC_BROWSER_TEST_F(AutofillPopupControllerBrowserTest, |
- HidePopupOnWindowConfiguration) { |
+ DoNotHidePopupOnWindowMove) { |
GenerateTestAutofillPopup(autofill_external_delegate_.get()); |
EXPECT_FALSE(autofill_external_delegate_->popup_hidden()); |
- // Resize the window, which should cause the popup to hide. |
+ // Move the window, which should not cause the popup to hide. |
gfx::Rect new_bounds = browser()->window()->GetBounds() - gfx::Vector2d(1, 1); |
browser()->window()->SetBounds(new_bounds); |
+ EXPECT_FALSE(autofill_external_delegate_->popup_hidden()); |
+} |
+ |
+IN_PROC_BROWSER_TEST_F(AutofillPopupControllerBrowserTest, |
+ HidePopupOnWindowResize) { |
+ GenerateTestAutofillPopup(autofill_external_delegate_.get()); |
+ |
+ EXPECT_FALSE(autofill_external_delegate_->popup_hidden()); |
+ |
+ // Resize the window, which should cause the popup to hide. |
+ gfx::Rect new_bounds = browser()->window()->GetBounds(); |
+ new_bounds.Inset(1, 1); |
+ browser()->window()->SetBounds(new_bounds); |
+ |
autofill_external_delegate_->WaitForPopupHidden(); |
EXPECT_TRUE(autofill_external_delegate_->popup_hidden()); |
} |
-#endif // !defined(OS_MACOSX) |
// This test checks that the browser doesn't crash if the delegate is deleted |
// before the popup is hidden. |