Record code21 delivery and align APK replay to fresh idle entry

This commit is contained in:
zenord
2026-10-13 12:35:54 +08:00
parent 9ec71c7e20
commit 345e26e245
2 changed files with 39 additions and 1 deletions
+3 -1
View File
@@ -118,7 +118,9 @@ fun main(args: Array<String>) {
check(changed)
check(trace.drop(startRows).any { it.second.actual=="body_neutral-01" })
for(wanted in listOf("idle-breathe-01","idle-microshift-01")) {
TestScheduler.until(50_000) { binding.currentPackageId==wanted }
// Begin at a genuine fresh entry, not an arbitrary late frame of an already
// visible variant. Legal return may otherwise occur during the next700ms.
TestScheduler.until(70_000) { binding.currentPackageId==wanted && trace.lastOrNull()?.second?.clipId=="f0_loop0" }
val start=trace.size
repeat(5) { i -> binding.beginTurn(10L+i);binding.intent(null,false);TestScheduler.advanceBy(100) }
binding.prepare(mediaReply(RoleEmotion.HAPPY,turn=14,seq=1))