From 2348776791e9dd17afeb12a06ba42a4a71917bcf Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Fri, 30 Oct 2026 21:34:41 -0300 Subject: sketchbook: a drawing layer on top, host fixes for replay and migration --- test/reload.script | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'test/reload.script') diff --git a/test/reload.script b/test/reload.script index 863ecc6..d2b2b36 100644 --- a/test/reload.script +++ b/test/reload.script @@ -1,4 +1,16 @@ # The counter sketch reloads with a changed layout and keeps its values. +# A recording made by this build plays without a warning. +console snapshot 2 +console record 0 +click 10 10 +console stop +console play 0 +frames 3 +expect clicks 1 +expect-no-log another build +console stop +console load 2 +expect clicks 0 click 10 10 click 10 10 expect clicks 2 @@ -8,7 +20,7 @@ console save load {v2} expect clicks 2 expect label warm -expect streak 7 +expect streak 7 ~0.5 click 10 10 expect clicks 12 # The snapshot was migrated with the live state. @@ -16,3 +28,6 @@ console load 3 expect clicks 2 console set streak 9 expect streak 9 +# The recording was made by the first build: playing it warns. +console play 0 +expect-log another build -- cgit v1.3