Loading libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/desktopmode/education/AppHandleEducationControllerTest.kt +11 −4 Original line number Diff line number Diff line Loading @@ -46,6 +46,7 @@ import kotlinx.coroutines.test.runCurrent import kotlinx.coroutines.test.runTest import kotlinx.coroutines.test.setMain import org.junit.Before import org.junit.Ignore import org.junit.Rule import org.junit.Test import org.junit.runner.RunWith Loading @@ -61,10 +62,7 @@ import org.mockito.kotlin.times import org.mockito.kotlin.verify import org.mockito.kotlin.whenever /** * Tests of [AppHandleEducationController] * Usage: atest AppHandleEducationControllerTest */ /** Tests of [AppHandleEducationController] Usage: atest AppHandleEducationControllerTest */ @SmallTest @RunWith(AndroidTestingRunner::class) @OptIn(ExperimentalCoroutinesApi::class) Loading Loading @@ -220,6 +218,7 @@ class AppHandleEducationControllerTest : ShellTestCase() { @Test @EnableFlags(Flags.FLAG_ENABLE_DESKTOP_WINDOWING_APP_HANDLE_EDUCATION) @Ignore("b/371527084: revisit testcase after refactoring original logic") fun showWindowingImageButtonTooltip_appHandleExpanded_shouldCallShowEducationTooltipTwice() = testScope.runTest { // After first tooltip is dismissed, app handle is expanded. Should show second education Loading @@ -237,6 +236,7 @@ class AppHandleEducationControllerTest : ShellTestCase() { @Test @EnableFlags(Flags.FLAG_ENABLE_DESKTOP_WINDOWING_APP_HANDLE_EDUCATION) @Ignore("b/371527084: revisit testcase after refactoring original logic") fun showWindowingImageButtonTooltip_appHandleExpandedAfterTimeout_shouldCallShowEducationTooltipOnce() = testScope.runTest { // After first tooltip is dismissed, app handle is expanded after timeout. Should not show Loading @@ -258,6 +258,7 @@ class AppHandleEducationControllerTest : ShellTestCase() { @Test @EnableFlags(Flags.FLAG_ENABLE_DESKTOP_WINDOWING_APP_HANDLE_EDUCATION) @Ignore("b/371527084: revisit testcase after refactoring original logic") fun showWindowingImageButtonTooltip_appHandleExpandedTwice_shouldCallShowEducationTooltipTwice() = testScope.runTest { // After first tooltip is dismissed, app handle is expanded twice. Should show second Loading @@ -279,6 +280,7 @@ class AppHandleEducationControllerTest : ShellTestCase() { @Test @EnableFlags(Flags.FLAG_ENABLE_DESKTOP_WINDOWING_APP_HANDLE_EDUCATION) @Ignore("b/371527084: revisit testcase after refactoring original logic") fun showWindowingImageButtonTooltip_appHandleNotExpanded_shouldCallShowEducationTooltipOnce() = testScope.runTest { // After first tooltip is dismissed, app handle is not expanded. Should not show second Loading @@ -296,6 +298,7 @@ class AppHandleEducationControllerTest : ShellTestCase() { @Test @EnableFlags(Flags.FLAG_ENABLE_DESKTOP_WINDOWING_APP_HANDLE_EDUCATION) @Ignore("b/371527084: revisit testcase after refactoring original logic") fun showExitWindowingButtonTooltip_appHeaderVisible_shouldCallShowEducationTooltipThrice() = testScope.runTest { // After first two tooltips are dismissed, app header is visible. Should show third Loading @@ -313,6 +316,7 @@ class AppHandleEducationControllerTest : ShellTestCase() { @Test @EnableFlags(Flags.FLAG_ENABLE_DESKTOP_WINDOWING_APP_HANDLE_EDUCATION) @Ignore("b/371527084: revisit testcase after refactoring original logic") fun showExitWindowingButtonTooltip_appHeaderVisibleAfterTimeout_shouldCallShowEducationTooltipTwice() = testScope.runTest { // After first two tooltips are dismissed, app header is visible after timeout. Should not Loading @@ -334,6 +338,7 @@ class AppHandleEducationControllerTest : ShellTestCase() { @Test @EnableFlags(Flags.FLAG_ENABLE_DESKTOP_WINDOWING_APP_HANDLE_EDUCATION) @Ignore("b/371527084: revisit testcase after refactoring original logic") fun showExitWindowingButtonTooltip_appHeaderVisibleTwice_shouldCallShowEducationTooltipThrice() = testScope.runTest { // After first two tooltips are dismissed, app header is visible twice. Should show third Loading @@ -354,6 +359,7 @@ class AppHandleEducationControllerTest : ShellTestCase() { @Test @EnableFlags(Flags.FLAG_ENABLE_DESKTOP_WINDOWING_APP_HANDLE_EDUCATION) @Ignore("b/371527084: revisit testcase after refactoring original logic") fun showExitWindowingButtonTooltip_appHeaderExpanded_shouldCallShowEducationTooltipTwice() = testScope.runTest { // After first two tooltips are dismissed, app header is visible but expanded. Should not Loading Loading @@ -393,6 +399,7 @@ class AppHandleEducationControllerTest : ShellTestCase() { @Test @EnableFlags(Flags.FLAG_ENABLE_DESKTOP_WINDOWING_APP_HANDLE_EDUCATION) @Ignore("b/371527084: revisit testcase after refactoring original logic") fun setAppHandleEducationTooltipCallbacks_onWindowingImageButtonTooltipClicked_callbackInvoked() = testScope.runTest { // After first tooltip is dismissed, app handle is expanded. Should show second education Loading Loading
libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/desktopmode/education/AppHandleEducationControllerTest.kt +11 −4 Original line number Diff line number Diff line Loading @@ -46,6 +46,7 @@ import kotlinx.coroutines.test.runCurrent import kotlinx.coroutines.test.runTest import kotlinx.coroutines.test.setMain import org.junit.Before import org.junit.Ignore import org.junit.Rule import org.junit.Test import org.junit.runner.RunWith Loading @@ -61,10 +62,7 @@ import org.mockito.kotlin.times import org.mockito.kotlin.verify import org.mockito.kotlin.whenever /** * Tests of [AppHandleEducationController] * Usage: atest AppHandleEducationControllerTest */ /** Tests of [AppHandleEducationController] Usage: atest AppHandleEducationControllerTest */ @SmallTest @RunWith(AndroidTestingRunner::class) @OptIn(ExperimentalCoroutinesApi::class) Loading Loading @@ -220,6 +218,7 @@ class AppHandleEducationControllerTest : ShellTestCase() { @Test @EnableFlags(Flags.FLAG_ENABLE_DESKTOP_WINDOWING_APP_HANDLE_EDUCATION) @Ignore("b/371527084: revisit testcase after refactoring original logic") fun showWindowingImageButtonTooltip_appHandleExpanded_shouldCallShowEducationTooltipTwice() = testScope.runTest { // After first tooltip is dismissed, app handle is expanded. Should show second education Loading @@ -237,6 +236,7 @@ class AppHandleEducationControllerTest : ShellTestCase() { @Test @EnableFlags(Flags.FLAG_ENABLE_DESKTOP_WINDOWING_APP_HANDLE_EDUCATION) @Ignore("b/371527084: revisit testcase after refactoring original logic") fun showWindowingImageButtonTooltip_appHandleExpandedAfterTimeout_shouldCallShowEducationTooltipOnce() = testScope.runTest { // After first tooltip is dismissed, app handle is expanded after timeout. Should not show Loading @@ -258,6 +258,7 @@ class AppHandleEducationControllerTest : ShellTestCase() { @Test @EnableFlags(Flags.FLAG_ENABLE_DESKTOP_WINDOWING_APP_HANDLE_EDUCATION) @Ignore("b/371527084: revisit testcase after refactoring original logic") fun showWindowingImageButtonTooltip_appHandleExpandedTwice_shouldCallShowEducationTooltipTwice() = testScope.runTest { // After first tooltip is dismissed, app handle is expanded twice. Should show second Loading @@ -279,6 +280,7 @@ class AppHandleEducationControllerTest : ShellTestCase() { @Test @EnableFlags(Flags.FLAG_ENABLE_DESKTOP_WINDOWING_APP_HANDLE_EDUCATION) @Ignore("b/371527084: revisit testcase after refactoring original logic") fun showWindowingImageButtonTooltip_appHandleNotExpanded_shouldCallShowEducationTooltipOnce() = testScope.runTest { // After first tooltip is dismissed, app handle is not expanded. Should not show second Loading @@ -296,6 +298,7 @@ class AppHandleEducationControllerTest : ShellTestCase() { @Test @EnableFlags(Flags.FLAG_ENABLE_DESKTOP_WINDOWING_APP_HANDLE_EDUCATION) @Ignore("b/371527084: revisit testcase after refactoring original logic") fun showExitWindowingButtonTooltip_appHeaderVisible_shouldCallShowEducationTooltipThrice() = testScope.runTest { // After first two tooltips are dismissed, app header is visible. Should show third Loading @@ -313,6 +316,7 @@ class AppHandleEducationControllerTest : ShellTestCase() { @Test @EnableFlags(Flags.FLAG_ENABLE_DESKTOP_WINDOWING_APP_HANDLE_EDUCATION) @Ignore("b/371527084: revisit testcase after refactoring original logic") fun showExitWindowingButtonTooltip_appHeaderVisibleAfterTimeout_shouldCallShowEducationTooltipTwice() = testScope.runTest { // After first two tooltips are dismissed, app header is visible after timeout. Should not Loading @@ -334,6 +338,7 @@ class AppHandleEducationControllerTest : ShellTestCase() { @Test @EnableFlags(Flags.FLAG_ENABLE_DESKTOP_WINDOWING_APP_HANDLE_EDUCATION) @Ignore("b/371527084: revisit testcase after refactoring original logic") fun showExitWindowingButtonTooltip_appHeaderVisibleTwice_shouldCallShowEducationTooltipThrice() = testScope.runTest { // After first two tooltips are dismissed, app header is visible twice. Should show third Loading @@ -354,6 +359,7 @@ class AppHandleEducationControllerTest : ShellTestCase() { @Test @EnableFlags(Flags.FLAG_ENABLE_DESKTOP_WINDOWING_APP_HANDLE_EDUCATION) @Ignore("b/371527084: revisit testcase after refactoring original logic") fun showExitWindowingButtonTooltip_appHeaderExpanded_shouldCallShowEducationTooltipTwice() = testScope.runTest { // After first two tooltips are dismissed, app header is visible but expanded. Should not Loading Loading @@ -393,6 +399,7 @@ class AppHandleEducationControllerTest : ShellTestCase() { @Test @EnableFlags(Flags.FLAG_ENABLE_DESKTOP_WINDOWING_APP_HANDLE_EDUCATION) @Ignore("b/371527084: revisit testcase after refactoring original logic") fun setAppHandleEducationTooltipCallbacks_onWindowingImageButtonTooltipClicked_callbackInvoked() = testScope.runTest { // After first tooltip is dismissed, app handle is expanded. Should show second education Loading