Commit 72fe6d0f authored by Evan Stade's avatar Evan Stade Committed by Commit Bot

OopAsh: fix and enable some more frame-related browser tests.

Bug: 854704
Change-Id: If201f772e7afeb646d619b7917f0f1e134e9edca
Reviewed-on: https://chromium-review.googlesource.com/1149154Reviewed-by: default avatarScott Violet <sky@chromium.org>
Commit-Queue: Evan Stade <estade@chromium.org>
Cr-Commit-Position: refs/heads/master@{#577974}
parent 19d339e6
...@@ -872,20 +872,20 @@ IN_PROC_BROWSER_TEST_P(HostedAppNonClientFrameViewAshTest, FocusableViews) { ...@@ -872,20 +872,20 @@ IN_PROC_BROWSER_TEST_P(HostedAppNonClientFrameViewAshTest, FocusableViews) {
// Tests that a web app's theme color is set. // Tests that a web app's theme color is set.
IN_PROC_BROWSER_TEST_P(HostedAppNonClientFrameViewAshTest, ThemeColor) { IN_PROC_BROWSER_TEST_P(HostedAppNonClientFrameViewAshTest, ThemeColor) {
EXPECT_EQ(GetThemeColor(), frame_header_->active_frame_color_for_testing()); aura::Window* window = browser_view_->GetWidget()->GetNativeWindow();
EXPECT_EQ(GetThemeColor(), frame_header_->inactive_frame_color_for_testing()); EXPECT_EQ(GetThemeColor(),window->GetProperty(ash::kFrameActiveColorKey));
EXPECT_EQ(GetThemeColor(), window->GetProperty(ash::kFrameInactiveColorKey));
EXPECT_EQ(SK_ColorWHITE, GetActiveIconColor(hosted_app_button_container_)); EXPECT_EQ(SK_ColorWHITE, GetActiveIconColor(hosted_app_button_container_));
} }
// Make sure that for hosted apps, the height of the frame header and its // Make sure that for hosted apps, the height of the frame doesn't exceed the
// contents don't exceed the height of the caption buttons. // height of the caption buttons.
IN_PROC_BROWSER_TEST_P(HostedAppNonClientFrameViewAshTest, FrameSize) { IN_PROC_BROWSER_TEST_P(HostedAppNonClientFrameViewAshTest, FrameSize) {
EXPECT_EQ(frame_header_->GetHeaderHeight(), const int inset = GetFrameViewAsh(browser_view_)->GetTopInset(false);
EXPECT_EQ(inset,
GetAshLayoutSize(ash::AshLayoutSize::kNonBrowserCaption).height()); GetAshLayoutSize(ash::AshLayoutSize::kNonBrowserCaption).height());
EXPECT_LE(app_menu_button_->size().height(), EXPECT_GE(inset, app_menu_button_->size().height());
frame_header_->GetHeaderHeight()); EXPECT_GE(inset, hosted_app_button_container_->size().height());
EXPECT_LE(hosted_app_button_container_->size().height(),
frame_header_->GetHeaderHeight());
} }
// Test that the HostedAppButtonContainer is the designated toolbar button // Test that the HostedAppButtonContainer is the designated toolbar button
......
...@@ -40,8 +40,6 @@ BrowserNonClientFrameViewAshTest.ImmersiveFullscreen* ...@@ -40,8 +40,6 @@ BrowserNonClientFrameViewAshTest.ImmersiveFullscreen*
BrowserNonClientFrameViewAshTest.FrameMinSizeIsUpdated* BrowserNonClientFrameViewAshTest.FrameMinSizeIsUpdated*
# Direct access to ash window frames, tablet mode, overview mode, etc. # Direct access to ash window frames, tablet mode, overview mode, etc.
-ExtensionUninstallDialogViewBrowserTest.BookmarkAppWindowAshCrash
-HostedAppNonClientFrameViewAshTest.*
-HomeLauncherBrowserNonClientFrameViewAshTest.* -HomeLauncherBrowserNonClientFrameViewAshTest.*
BrowserNonClientFrameViewAshTest.NonClientHitTest* BrowserNonClientFrameViewAshTest.NonClientHitTest*
...@@ -51,9 +49,9 @@ BrowserNonClientFrameViewAshTest.AvatarMenuButtonHitTest* ...@@ -51,9 +49,9 @@ BrowserNonClientFrameViewAshTest.AvatarMenuButtonHitTest*
-ImmersiveModeBrowserViewTest.TestCaptionButtonsReceiveEventsInAppImmersiveMode* -ImmersiveModeBrowserViewTest.TestCaptionButtonsReceiveEventsInAppImmersiveMode*
-ImmersiveModeBrowserViewTest.TestCaptionButtonsReceiveEventsInBrowserImmersiveMode* -ImmersiveModeBrowserViewTest.TestCaptionButtonsReceiveEventsInBrowserImmersiveMode*
-ImmersiveModeControllerAshHostedAppBrowserTest.* -ImmersiveModeControllerAshHostedAppBrowserTest.*
-FileDisplay/FilesAppBrowserTest.Test/fileDisplayDownloads_TabletMode
-FileDisplay/FilesAppBrowserTest.Test/fileDisplayDrive_TabletMode # Null immersive_fullscreen_controller_.
-QuickView/FilesAppBrowserTest.Test/openQuickView_TabletMode -ChromeNativeAppWindowViewsAuraAshBrowserTest.*
# ash::Shell access from ChromeViewsDelegate::CreateDefaultNonClientFrameView() # ash::Shell access from ChromeViewsDelegate::CreateDefaultNonClientFrameView()
# e.g. from chromeos::CaptivePortalWindowProxy::Show(). # e.g. from chromeos::CaptivePortalWindowProxy::Show().
...@@ -81,9 +79,6 @@ BrowserNonClientFrameViewAshTest.AvatarMenuButtonHitTest* ...@@ -81,9 +79,6 @@ BrowserNonClientFrameViewAshTest.AvatarMenuButtonHitTest*
# Need screenshot support. http://crbug.com/706246 # Need screenshot support. http://crbug.com/706246
-ChromeScreenshotGrabberBrowserTest.* -ChromeScreenshotGrabberBrowserTest.*
# Null immersive_fullscreen_controller_.
-ChromeNativeAppWindowViewsAuraAshBrowserTest.*
# Flaky. SessionRestoreStatsCollector::Observe failure. crbug.com/785298 # Flaky. SessionRestoreStatsCollector::Observe failure. crbug.com/785298
# session_restore_stats_collector.cc(210) Check failed: 0u < loading_tab_count_ (0 vs. 0) # session_restore_stats_collector.cc(210) Check failed: 0u < loading_tab_count_ (0 vs. 0)
-ContinueWhereILeftOffTest.* -ContinueWhereILeftOffTest.*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment