blob: a426f3b9686e1e41162ed268e27db307f7c24af5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# Live reload (design.md "Acceptance: live reload"): play a while, pause a
# replay so State holds still, load the edited build ({v2}: a light gray
# circle), check that State carried over and the picture changed where the edit shows.
# The reload jumps (`in.jumped`), so the whole trail is repainted light.
frames 120
console record 0
frames 30
console stop
console play 0
frames 10
console pause
frames 2
expect walker.x 343.033 ~0.001
expect walker.y 75.677 ~0.001
expect clock.count 130
screenshot .zig-cache/e2e/noise_walker-before.png
frames 1
load {v2}
expect walker.x 343.033 ~0.001
expect walker.y 75.677 ~0.001
expect clock.count 130
# Playing on: the steps after the reload are drawn by the new code.
console pause
frames 10
expect walker.x 340.456 ~0.001
expect walker.y 79.168 ~0.001
expect clock.count 140
screenshot .zig-cache/e2e/noise_walker-after.png
frames 1
expect-different-screenshot .zig-cache/e2e/noise_walker-before.png .zig-cache/e2e/noise_walker-after.png
expect-pixel .zig-cache/e2e/noise_walker-after.png 340 79 220 220 220 255
|