Removal of Px usages part 6 of n
Relnote: "Replaced usage of Px class in various
compose classes as part of the large
refactoring effort to only rely on Dp
and primitive types for pixel parameters"
Bug: 156681014
Test: re-ran compose tests
Change-Id: I086f4744d1eb51f0f31356e36991c2a8d4433059
diff --git a/ui/ui-material/src/androidTest/java/androidx/ui/material/DrawerTest.kt b/ui/ui-material/src/androidTest/java/androidx/ui/material/DrawerTest.kt
index 8c75f3f..1020729 100644
--- a/ui/ui-material/src/androidTest/java/androidx/ui/material/DrawerTest.kt
+++ b/ui/ui-material/src/androidTest/java/androidx/ui/material/DrawerTest.kt
@@ -228,7 +228,7 @@
// Click on the left-center pixel of the drawer
findByTag("Drawer").doGesture {
val left = 1.0f
- val centerY = (globalBounds.height / 2).value
+ val centerY = (globalBounds.height / 2)
sendClick(PxPosition(left, centerY))
}
@@ -326,8 +326,8 @@
// Click on the bottom-center pixel of the drawer
findByTag("Drawer").doGesture {
val bounds = globalBounds
- val centerX = (bounds.width / 2).value
- val bottom = (bounds.height - 1.px).value
+ val centerX = bounds.width / 2
+ val bottom = bounds.height - 1.0f
sendClick(PxPosition(centerX, bottom))
}