blob: 7fa8d330c010d18f7257759c665ba7c50e3bd543 (
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 keeps State: a round being played back, paused, the edited
# build ({v2}: green pipes), the same bird and pipes after it, then play on.
frames 10
console record 0
frames 15
key space
frames 15
key space
frames 15
key space
frames 15
key space
frames 15
console stop
console play 0
frames 50
console pause
frames 2
expect bird.y 218.916 ~0.001
expect pipes.buffer[0].x 520 ~0.001
screenshot .zig-cache/e2e/flappy_bird-before.png
frames 1
load {v2}
expect bird.y 218.916 ~0.001
expect pipes.buffer[0].x 520 ~0.001
frames 2
screenshot .zig-cache/e2e/flappy_bird-after.png
frames 1
expect-different-screenshot .zig-cache/e2e/flappy_bird-before.png .zig-cache/e2e/flappy_bird-after.png
# Unpaused: the replay goes on from where it was.
console pause
frames 20
expect clock.count 80
|