summaryrefslogtreecommitdiff
path: root/examples/noc/test/path_following.reload.script
blob: a8cb61efc33c8f257821643fa2357bffe7dfe99e (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: a new path, a paused replay, the edited build
# ({v2}: a blue road), the same path and vehicles after it, then play on.
frames 30
click 320 180
frames 30
console record 0
frames 30
console stop
console play 0
frames 10
console pause
frames 2
expect path[1][0] 117.856 ~0.001
expect cars[1].position[0] 88.606 ~0.001
screenshot .zig-cache/e2e/path_following-before.png
frames 1
load {v2}
expect path[1][0] 117.856 ~0.001
expect cars[1].position[0] 88.606 ~0.001
frames 2
screenshot .zig-cache/e2e/path_following-after.png
frames 1
# The road changed colour; the vehicles did not move.
expect-different-screenshot .zig-cache/e2e/path_following-before.png .zig-cache/e2e/path_following-after.png
# Unpaused: the replay goes on from where it was.
console pause
frames 15
expect clock.count 86