Index: trunk/src/chrome/browser/ui/cocoa/tab_contents/overlayable_contents_controller_browsertest.mm |
=================================================================== |
--- trunk/src/chrome/browser/ui/cocoa/tab_contents/overlayable_contents_controller_browsertest.mm (revision 190730) |
+++ trunk/src/chrome/browser/ui/cocoa/tab_contents/overlayable_contents_controller_browsertest.mm (working copy) |
@@ -9,7 +9,7 @@ |
#include "chrome/browser/ui/browser_window.h" |
#include "chrome/browser/ui/cocoa/browser_window_controller.h" |
#include "chrome/browser/ui/cocoa/tab_contents/instant_overlay_controller_mac.h" |
-#include "chrome/browser/ui/cocoa/tab_contents/overlay_separator_view.h" |
+#include "chrome/browser/ui/cocoa/tab_contents/overlay_drop_shadow_view.h" |
#include "chrome/browser/ui/search/instant_overlay_model.h" |
#include "chrome/test/base/in_process_browser_test.h" |
#include "content/public/browser/notification_source.h" |
@@ -29,12 +29,9 @@ |
content::WebContents::CreateParams(browser()->profile()))); |
instant_overlay_model_.SetOverlayContents(web_contents_.get()); |
- BrowserWindowController* window_controller = |
- [BrowserWindowController browserWindowControllerForWindow: |
- browser()->window()->GetNativeWindow()]; |
controller_.reset([[OverlayableContentsController alloc] |
initWithBrowser:browser() |
- windowController:window_controller]); |
+ windowController:nil]); |
[[controller_ view] setFrame:NSMakeRect(0, 0, 100, 200)]; |
instant_overlay_model_.AddObserver([controller_ instantOverlayController]); |
} |
@@ -50,7 +47,6 @@ |
void VerifyOverlayFrame(CGFloat expected_height, |
InstantSizeUnits units) { |
NSRect container_bounds = [[controller_ view] bounds]; |
- container_bounds.size.height -= [OverlayTopSeparatorView preferredHeight]; |
NSRect overlay_frame = |
[web_contents_->GetView()->GetNativeView() frame]; |
@@ -117,8 +113,8 @@ |
VerifyOverlayFrame(expected_height, units); |
} |
-// Verify that a bottom border is not shown when the overlay covers the entire |
-// page or when the overlay is in NTP mode. |
+// Verify that a shadow is not shown when the overlay covers the entire page |
+// or when the overlay is in NTP mode. |
IN_PROC_BROWSER_TEST_F(OverlayableContentsControllerTest, NoShadowFullHeight) { |
chrome::search::Mode mode; |
mode.mode = chrome::search::Mode::MODE_SEARCH_SUGGESTIONS; |
@@ -144,7 +140,7 @@ |
NSRect dropShadowFrame = [[controller_ dropShadowView] frame]; |
NSRect controllerBounds = [[controller_ view] bounds]; |
EXPECT_EQ(NSWidth(controllerBounds), NSWidth(dropShadowFrame)); |
- EXPECT_EQ([OverlayBottomSeparatorView preferredHeight], |
+ EXPECT_EQ([OverlayDropShadowView preferredHeight], |
NSHeight(dropShadowFrame)); |
} |