Build the Wolfskin TV shell and navigation #29
1 changed files with 4 additions and 1 deletions
|
|
@ -132,7 +132,10 @@ class UpstreamContentFocusTest {
|
||||||
rule.mainClock.advanceTimeBy(1500)
|
rule.mainClock.advanceTimeBy(1500)
|
||||||
rule.waitForIdle()
|
rule.waitForIdle()
|
||||||
val on = rule.onRoot().captureToImage().toPixelMap()[1700, 900]
|
val on = rule.onRoot().captureToImage().toPixelMap()[1700, 900]
|
||||||
assertTrue("Owned screens must cover the upstream backdrop", on.red < .02f && on.green < .02f && on.blue < .02f)
|
val background = org.justinvisser.wolfskin.design.WolfskinTokens.Color.bg
|
||||||
|
org.junit.Assert.assertEquals("Owned background red", background.red, on.red, 1f / 255f)
|
||||||
|
org.junit.Assert.assertEquals("Owned background green", background.green, on.green, 1f / 255f)
|
||||||
|
org.junit.Assert.assertEquals("Owned background blue", background.blue, on.blue, 1f / 255f)
|
||||||
rule.onRoot().captureRoboImage(File(directory, "review-upstream-on.png").absolutePath)
|
rule.onRoot().captureRoboImage(File(directory, "review-upstream-on.png").absolutePath)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue