Loading libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/pip/EnterPipTest.kt +6 −4 Original line number Diff line number Diff line Loading @@ -65,7 +65,7 @@ class EnterPipTest(testSpec: FlickerTestParameter) : PipTransition(testSpec) { @Test fun pipLayerBecomesVisible() { testSpec.assertLayers { this.isVisible(pipApp.launcherName) this.isVisible(pipApp.windowName) } } Loading @@ -73,9 +73,11 @@ class EnterPipTest(testSpec: FlickerTestParameter) : PipTransition(testSpec) { @Test fun pipWindowBecomesVisible() { testSpec.assertWm { invoke("pipWindowIsNotVisible") { !it.wmState.hasPipWindow() } .then() .invoke("pipWindowIsVisible") { it.wmState.hasPipWindow() } invoke("pipWindowIsNotVisible") { verify("Has no pip window").that(it.wmState.hasPipWindow()).isTrue() }.then().invoke("pipWindowIsVisible") { verify("Has pip window").that(it.wmState.hasPipWindow()).isTrue() } } } Loading Loading
libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/pip/EnterPipTest.kt +6 −4 Original line number Diff line number Diff line Loading @@ -65,7 +65,7 @@ class EnterPipTest(testSpec: FlickerTestParameter) : PipTransition(testSpec) { @Test fun pipLayerBecomesVisible() { testSpec.assertLayers { this.isVisible(pipApp.launcherName) this.isVisible(pipApp.windowName) } } Loading @@ -73,9 +73,11 @@ class EnterPipTest(testSpec: FlickerTestParameter) : PipTransition(testSpec) { @Test fun pipWindowBecomesVisible() { testSpec.assertWm { invoke("pipWindowIsNotVisible") { !it.wmState.hasPipWindow() } .then() .invoke("pipWindowIsVisible") { it.wmState.hasPipWindow() } invoke("pipWindowIsNotVisible") { verify("Has no pip window").that(it.wmState.hasPipWindow()).isTrue() }.then().invoke("pipWindowIsVisible") { verify("Has pip window").that(it.wmState.hasPipWindow()).isTrue() } } } Loading