blob: 892ea72f02e6597e11717d6127bb1d07fbae37fa (
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
|
# Live reload keeps State: grow, pause a replay so nothing moves, load the
# edited build ({v2}: blue cells), check the rows carried over and only the
# drawing changed, then play on.
frames 5
console record 0
frames 10
console stop
console play 0
frames 5
console pause
frames 2
expect generation 10
expect rows[2][34] 1
screenshot .zig-cache/e2e/wolfram_ca-before.png
frames 1
load {v2}
expect generation 10
expect rows[2][34] 1
frames 2
screenshot .zig-cache/e2e/wolfram_ca-after.png
frames 1
expect-different-screenshot .zig-cache/e2e/wolfram_ca-before.png .zig-cache/e2e/wolfram_ca-after.png
# Unpaused: the replay goes on from where it was.
console pause
frames 5
expect generation 15
|