Merge "Replace coversRegion for coversAtLeastRegion"

This commit is contained in:
TreeHugger Robot
2020-07-31 12:59:11 +00:00
committed by Android (Google) Code Review
2 changed files with 8 additions and 8 deletions

View File

@@ -53,19 +53,19 @@ fun LayersAssertion.noUncoveredRegions(
if (allStates) {
all("noUncoveredRegions", enabled, bugId) {
if (startingBounds == endingBounds) {
this.coversRegion(startingBounds)
this.coversAtLeastRegion(startingBounds)
} else {
this.coversRegion(startingBounds)
this.coversAtLeastRegion(startingBounds)
.then()
.coversRegion(endingBounds)
.coversAtLeastRegion(endingBounds)
}
}
} else {
start("noUncoveredRegions_StartingPos") {
this.coversRegion(startingBounds)
this.coversAtLeastRegion(startingBounds)
}
end("noUncoveredRegions_EndingPos") {
this.coversRegion(endingBounds)
this.coversAtLeastRegion(endingBounds)
}
}
}

View File

@@ -128,11 +128,11 @@ class SeamlessAppRotationTest(
val startingBounds = WindowUtils.getDisplayBounds(beginRotation)
val endingBounds = WindowUtils.getDisplayBounds(endRotation)
if (startingBounds == endingBounds) {
this.coversRegion(startingBounds)
this.coversAtLeastRegion(startingBounds)
} else {
this.coversRegion(startingBounds)
this.coversAtLeastRegion(startingBounds)
.then()
.coversRegion(endingBounds)
.coversAtLeastRegion(endingBounds)
}
}
}