Merge "New enter pip assertion" into sc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
920cf61139
@@ -16,6 +16,7 @@
|
||||
|
||||
package com.android.wm.shell.flicker.pip
|
||||
|
||||
import android.platform.test.annotations.Postsubmit
|
||||
import android.platform.test.annotations.Presubmit
|
||||
import android.view.Surface
|
||||
import androidx.test.filters.FlakyTest
|
||||
@@ -49,7 +50,7 @@ class EnterPipTest(testSpec: FlickerTestParameter) : PipTransition(testSpec) {
|
||||
|
||||
@Presubmit
|
||||
@Test
|
||||
fun pipWindowBecomesVisible() {
|
||||
fun pipAppWindowAlwaysVisible() {
|
||||
testSpec.assertWm {
|
||||
this.showsAppWindow(pipApp.defaultWindowName)
|
||||
}
|
||||
@@ -63,6 +64,16 @@ class EnterPipTest(testSpec: FlickerTestParameter) : PipTransition(testSpec) {
|
||||
}
|
||||
}
|
||||
|
||||
@Postsubmit
|
||||
@Test
|
||||
fun pipWindowBecomesVisible() {
|
||||
testSpec.assertWm {
|
||||
invoke("pipWindowIsNotVisible") { !it.wmState.hasPipWindow() }
|
||||
.then()
|
||||
.invoke("pipWindowIsVisible") { it.wmState.hasPipWindow() }
|
||||
}
|
||||
}
|
||||
|
||||
@FlakyTest(bugId = 140855415)
|
||||
@Test
|
||||
override fun navBarLayerIsAlwaysVisible() = super.navBarLayerIsAlwaysVisible()
|
||||
|
||||
Reference in New Issue
Block a user