Orbit Companion: a phone can keep its own look instead of following the TV
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -153,6 +153,8 @@ class PhoneLinkTest {
|
||||
val n = JSONObject(call("/api/now", cookie = cookie).body)
|
||||
assertEquals(101, n.getJSONObject("channel").getInt("number")); assertEquals("Friends", n.getJSONObject("now").getString("title"))
|
||||
assertTrue(n.getJSONObject("look").getString("accent").startsWith("#")); assertTrue(n.getBoolean("watching"))
|
||||
// Every look, for a phone that keeps its own.
|
||||
assertEquals(OrbitLook.entries.size, JSONObject(call("/api/looks", cookie = cookie).body).getJSONArray("looks").length())
|
||||
val g = JSONObject(call("/api/guide", cookie = cookie).body).getJSONArray("channels")
|
||||
assertEquals(listOf(101, 308), (0 until g.length()).map { g.getJSONObject(it).getInt("number") })
|
||||
// Buttons are pressed as the TV's own remote would, and only the known ones.
|
||||
|
||||
Reference in New Issue
Block a user