Commit 8370e6d6 authored by Jun Mukai's avatar Jun Mukai Committed by Commit Bot

Add 'expand to fullscreen' scenario to LauncherAnimationsTest

The current tests do not evaluate the case of opening as 'peeking'
and then expanding to fullscreen to see all applications. This
can have different performance characteristics, since the application
data should be ready before the animation.

Currently the performance would be identical to normal fullscreen,
Open to be ~20 and Close to be ~90.

Bug: 961467
Test: interactive_ui_tests on nocturne
Change-Id: I002dc5ef3e4b2a57791b9da97c7fcf1e44ca323c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1674194Reviewed-by: default avatarMitsuru Oshima <oshima@chromium.org>
Commit-Queue: Jun Mukai <mukai@chromium.org>
Cr-Commit-Position: refs/heads/master@{#672134}
parent a299fabe
......@@ -137,6 +137,34 @@ INSTANTIATE_TEST_SUITE_P(LauncherAnimations,
LauncherAnimationsFullscreenTest,
/*reuse_widget=*/::testing::Bool());
class LauncherAnimationsExpandToFullscreenTest
: public LauncherAnimationsTestBase {
public:
LauncherAnimationsExpandToFullscreenTest() = default;
~LauncherAnimationsExpandToFullscreenTest() override = default;
private:
// LauncherAnimationsTestBase:
std::string GetAnimationSmoothnessMetricsName() const override {
return "FullscreenAllApps.ClamshellMode";
}
DISALLOW_COPY_AND_ASSIGN(LauncherAnimationsExpandToFullscreenTest);
};
IN_PROC_BROWSER_TEST_P(LauncherAnimationsExpandToFullscreenTest, Run) {
SendKeyAndWaitForState(ui::VKEY_BROWSER_SEARCH, false,
ash::AppListViewState::kPeeking);
SendKeyAndWaitForState(ui::VKEY_BROWSER_SEARCH, true,
ash::AppListViewState::kFullscreenAllApps);
SendKeyAndWaitForState(ui::VKEY_BROWSER_SEARCH, true,
ash::AppListViewState::kClosed);
}
INSTANTIATE_TEST_SUITE_P(LauncherAnimations,
LauncherAnimationsExpandToFullscreenTest,
/*reuse_widget=*/::testing::Bool());
class LauncherAnimationsPeekingTest : public LauncherAnimationsTestBase {
public:
LauncherAnimationsPeekingTest() = default;
......
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