diff options
Diffstat (limited to 'examples/noc/test/bin_lattice.reload.script')
| -rw-r--r-- | examples/noc/test/bin_lattice.reload.script | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/examples/noc/test/bin_lattice.reload.script b/examples/noc/test/bin_lattice.reload.script new file mode 100644 index 0000000..5e158b5 --- /dev/null +++ b/examples/noc/test/bin_lattice.reload.script @@ -0,0 +1,32 @@ +# Live reload keeps State: a drag, a paused replay, the edited build ({v2}: +# blue bodies), the same boids and grid after it, then play on. +frames 60 +down 300 200 +move 320 200 +move 340 200 +up 340 200 +frames 30 +console record 0 +frames 30 +console stop +console play 0 +frames 10 +console pause +frames 2 +expect boids.len 2002 +expect boids.buffer[2001].position[0] 299.080 ~0.01 +expect grid.order[0] 490 +screenshot .zig-cache/e2e/bin_lattice-before.png +frames 1 +load {v2} +expect boids.len 2002 +expect boids.buffer[2001].position[0] 299.080 ~0.01 +expect grid.order[0] 490 +frames 2 +screenshot .zig-cache/e2e/bin_lattice-after.png +frames 1 +expect-different-screenshot .zig-cache/e2e/bin_lattice-before.png .zig-cache/e2e/bin_lattice-after.png +# Unpaused: the replay goes on from where it was. +console pause +frames 15 +expect clock.count 119 |
