Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c89e6631 authored by Bill Lin's avatar Bill Lin
Browse files

3/ Fix bug of PipKeyboardTest do not forceExit() testApp successfully

After PipKeyboardTest teardown{}, the testApp in PIP mode is alive and
introduce the NEXT flicker test case get unexpected assertion fails.

Root cause:
The flow of exit(), neither pressHome() nor pressBack() could lead
TestApp(in PIP) successfully exit PIP and back to fullscreen in teardown.

Bug: 173477410
Test: atest com.android.wm.shell.flicker, make sure all tests PASSED
Test: atest WMShellFlickerTests, make sure all tests PASSED
Change-Id: I5e7e6f0323b2e6145dc25e2b8e99b77557f4ce13
parent 447c5196
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -76,12 +76,12 @@ class PipKeyboardTest(
            }
            teardown {
                test {
                    keyboardApp.exit()
                    keyboardApp.forceStop()

                    if (device.hasPipWindow()) {
                        device.closePipWindow()
                    }
                    testApp.exit()
                    testApp.forceStop()
                    this.setRotation(Surface.ROTATION_0)
                }
            }