blob: 4c6954374e68157744cd9758c18e6a9e338b86f0 (
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
32
33
|
# Live reload (design.md "Acceptance: live reload"): play a while, pause a
# replay so State holds still, load the edited build ({v2}: orange smoke), check that
# State carried over and the picture changed.
move 480 200
frames 60
console record 0
frames 30
console stop
console play 0
frames 10
console pause
frames 2
expect clock.count 71
expect particles.len 51
expect particles.buffer[0].position[0] 452.977 ~0.001
expect particles.buffer[0].position[1] 210.788 ~0.001
screenshot .zig-cache/e2e/smoke-before.png
frames 1
load {v2}
expect clock.count 71
expect particles.len 51
expect particles.buffer[0].position[0] 452.977 ~0.001
expect particles.buffer[0].position[1] 210.788 ~0.001
frames 2
screenshot .zig-cache/e2e/smoke-after.png
frames 1
expect-different-screenshot .zig-cache/e2e/smoke-before.png .zig-cache/e2e/smoke-after.png
# Playing on after the reload: State goes on from where it was.
console pause
frames 10
expect clock.count 81
expect particles.buffer[0].position[0] 442.620 ~0.001
expect particles.buffer[0].position[1] 230.923 ~0.001
|