blob: f842279b298527560b38cf0aa82c862b6b54280f (
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
|
# Live reload keeps State: a drag, paused halfway through its replay, the
# edited build ({v2}: a blue square), the same points after it, then the
# replay plays on and the drag adds the rest.
move 200 100
frames 10
console record 0
down 200 100
frames 30
up 200 100
frames 5
console stop
console play 0
frames 10
console pause
frames 2
expect points.len 2010
expect points.buffer[2008][0] 198.807 ~0.001
screenshot .zig-cache/e2e/quadtree-before.png
frames 1
load {v2}
expect points.len 2010
expect points.buffer[2008][0] 198.807 ~0.001
frames 2
screenshot .zig-cache/e2e/quadtree-after.png
frames 1
expect-different-screenshot .zig-cache/e2e/quadtree-before.png .zig-cache/e2e/quadtree-after.png
# Unpaused: the replay goes on from where it was.
console pause
frames 40
expect points.len 2031
|