From 6933f99ddb2d7103515d26838496309a807bba26 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Mon, 16 Nov 2026 21:28:20 -0300 Subject: Move standalone sketches into sketchbook examples --- examples/noc/test/lsystem.reload.script | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 examples/noc/test/lsystem.reload.script (limited to 'examples/noc/test/lsystem.reload.script') diff --git a/examples/noc/test/lsystem.reload.script b/examples/noc/test/lsystem.reload.script new file mode 100644 index 0000000..af37442 --- /dev/null +++ b/examples/noc/test/lsystem.reload.script @@ -0,0 +1,28 @@ +# Live reload keeps State: two clicks, a paused replay, the edited build +# ({v2}: branches at 35° instead of 25°; the picture is rebuilt because a reload marks it stale), the +# same generation after it, then the replay plays on to one more click. +frames 10 +console record 0 +frames 10 +click 320 180 +frames 20 +click 320 180 +frames 10 +console stop +console play 0 +frames 25 +console pause +frames 2 +expect generation 5 +screenshot .zig-cache/e2e/lsystem-before.png +frames 1 +load {v2} +expect generation 5 +frames 2 +screenshot .zig-cache/e2e/lsystem-after.png +frames 1 +expect-different-screenshot .zig-cache/e2e/lsystem-before.png .zig-cache/e2e/lsystem-after.png +# Unpaused: the replay goes on from where it was, to the second click. +console pause +frames 20 +expect generation 0 -- cgit v1.3