summaryrefslogtreecommitdiff
path: root/test/reload.script
diff options
context:
space:
mode:
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