File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
camposer/src/androidTest/java/com/ujizin/camposer Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,8 @@ internal class ExposureCompensationTest: CameraTest() {
27
27
exposureCompensation.value = cameraState.minExposure
28
28
29
29
runOnIdle {
30
+ if (! cameraState.isExposureSupported) return @runOnIdle
31
+
30
32
assertEquals(cameraState.minExposure, currentExposure)
31
33
assertEquals(exposureCompensation.value, currentExposure)
32
34
}
@@ -40,6 +42,7 @@ internal class ExposureCompensationTest: CameraTest() {
40
42
41
43
runOnIdle {
42
44
if (! cameraState.isExposureSupported) return @runOnIdle
45
+
43
46
assertEquals(cameraState.maxExposure, currentExposure)
44
47
assertEquals(exposureCompensation.value, currentExposure)
45
48
}
@@ -53,6 +56,8 @@ internal class ExposureCompensationTest: CameraTest() {
53
56
exposureCompensation.value = Int .MAX_VALUE
54
57
55
58
runOnIdle {
59
+ if (! cameraState.isExposureSupported) return @runOnIdle
60
+
56
61
assertNotEquals(cameraState.maxExposure, currentExposure)
57
62
assertNotEquals(exposureCompensation.value, currentExposure)
58
63
assertEquals(cameraState.initialExposure, currentExposure)
You can’t perform that action at this time.
0 commit comments