blob: 76948a1428abc2dad984c3972cbc0839855ffe67 (
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
|
# Live reload keeps State: two clicks, a paused replay, the edited build
# ({v2}: peaks that point down; 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 6
screenshot .zig-cache/e2e/koch-before.png
frames 1
load {v2}
expect generation 6
frames 2
screenshot .zig-cache/e2e/koch-after.png
frames 1
expect-different-screenshot .zig-cache/e2e/koch-before.png .zig-cache/e2e/koch-after.png
# Unpaused: the replay goes on from where it was, to the second click.
console pause
frames 20
expect generation 7
|