From 9c33714591a2147f7e5879e77212ca9886d0c967 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Fri, 25 Sep 2026 21:47:58 -0300 Subject: Put the game first: lib/sketchbook, sketches/vecanim The root is the game. The platform library moves to lib/sketchbook (with serve_web.py, which serves any sketch's web build, as a tool of it), and vecanim to sketches/vecanim, still its own package on the same library. --- test/reload.script | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 test/reload.script (limited to 'test/reload.script') diff --git a/test/reload.script b/test/reload.script new file mode 100644 index 0000000..863ecc6 --- /dev/null +++ b/test/reload.script @@ -0,0 +1,18 @@ +# The counter sketch reloads with a changed layout and keeps its values. +click 10 10 +click 10 10 +expect clicks 2 +expect label warm +console snapshot 3 +console save +load {v2} +expect clicks 2 +expect label warm +expect streak 7 +click 10 10 +expect clicks 12 +# The snapshot was migrated with the live state. +console load 3 +expect clicks 2 +console set streak 9 +expect streak 9 -- cgit v1.3