summaryrefslogtreecommitdiff
path: root/examples/noc/test/recursive_tree.reload.script
blob: 554d02eac6aa6c474ce9d5fb4b0f4388b9c609a9 (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 (design.md "Acceptance: live reload"): play a while, pause a
# replay so State holds still, load the edited build ({v2}: a green tree), check that
# State carried over and the picture changed.
move 480 200
frames 60
console record 0
frames 30
console stop
console play 0
frames 10
console pause
frames 2
expect angle 1.1781 ~0.0001
screenshot .zig-cache/e2e/recursive_tree-before.png
frames 1
load {v2}
expect angle 1.1781 ~0.0001
frames 2
screenshot .zig-cache/e2e/recursive_tree-after.png
frames 1
expect-different-screenshot .zig-cache/e2e/recursive_tree-before.png .zig-cache/e2e/recursive_tree-after.png
expect-pixel .zig-cache/e2e/recursive_tree-after.png 319 340 42 122 42 255
# Playing on after the reload: State goes on from where it was.
console pause
frames 10
expect angle 1.1781 ~0.0001