summaryrefslogtreecommitdiff
path: root/test/reload.script
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-10-30 21:34:41 -0300
committerGabriel Schneider <[email protected]>2026-11-12 13:22:02 -0300
commit2348776791e9dd17afeb12a06ba42a4a71917bcf (patch)
tree780c4b12b76c8b97a28408dd40944d65f159fdc7 /test/reload.script
parent590ba7b9b579b97e34b51ab7e3460ebc85713343 (diff)
downloadsketchbook-2348776791e9dd17afeb12a06ba42a4a71917bcf.tar.gz
sketchbook-2348776791e9dd17afeb12a06ba42a4a71917bcf.zip
sketchbook: a drawing layer on top, host fixes for replay and migration
Diffstat (limited to 'test/reload.script')
-rw-r--r--test/reload.script17
1 files changed, 16 insertions, 1 deletions
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