|
|
@ -159,21 +159,21 @@ class EdgeToEdgeTest {
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
private fun runFoldableTests(apiName: String) {
|
|
|
|
private fun runFoldableTests(apiName: String) {
|
|
|
|
onDevice().setClosedMode()
|
|
|
|
//onDevice().setClosedMode()
|
|
|
|
screenshotSystemBar("edgeToEdge_Foldable_closed_system_$apiName")
|
|
|
|
screenshotSystemBar("edgeToEdge_Foldable_closed_system_$apiName")
|
|
|
|
forceThreeButtonNavigation()
|
|
|
|
forceThreeButtonNavigation()
|
|
|
|
screenshotNavigationBar("edgeToEdge_Foldable_closed_nav3button_$apiName")
|
|
|
|
screenshotNavigationBar("edgeToEdge_Foldable_closed_nav3button_$apiName")
|
|
|
|
forceGestureNavigation()
|
|
|
|
forceGestureNavigation()
|
|
|
|
screenshotNavigationBar("edgeToEdge_Foldable_closed_navGesture_$apiName")
|
|
|
|
screenshotNavigationBar("edgeToEdge_Foldable_closed_navGesture_$apiName")
|
|
|
|
|
|
|
|
|
|
|
|
onDevice().setFlatMode()
|
|
|
|
//onDevice().setFlatMode()
|
|
|
|
enableDemoMode() // Flat mode resets demo mode!
|
|
|
|
enableDemoMode() // Flat mode resets demo mode!
|
|
|
|
screenshotSystemBar("edgeToEdge_Foldable_flat_system_$apiName")
|
|
|
|
screenshotSystemBar("edgeToEdge_Foldable_flat_system_$apiName")
|
|
|
|
forceThreeButtonNavigation()
|
|
|
|
forceThreeButtonNavigation()
|
|
|
|
screenshotNavigationBar("edgeToEdge_Foldable_flat_nav3button_$apiName")
|
|
|
|
screenshotNavigationBar("edgeToEdge_Foldable_flat_nav3button_$apiName")
|
|
|
|
forceGestureNavigation()
|
|
|
|
forceGestureNavigation()
|
|
|
|
screenshotNavigationBar("edgeToEdge_Foldable_flat_navGesture_$apiName")
|
|
|
|
screenshotNavigationBar("edgeToEdge_Foldable_flat_navGesture_$apiName")
|
|
|
|
onDevice().setClosedMode()
|
|
|
|
//onDevice().setClosedMode()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private fun screenshotSystemBar(screenshotFileName: String) {
|
|
|
|
private fun screenshotSystemBar(screenshotFileName: String) {
|
|
|
|