summaryrefslogtreecommitdiff
path: root/test/reload.script
blob: 72d1571be7f07e303807262739b1bb0efa16bbe1 (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
31
32
33
34
35
# The counter sketch reloads with a changed layout and keeps its values.
# A recording made by this build plays without a warning.
console snapshot 2
console record 0
click 10 10
console stop
console play 0
frames 3
expect clicks 1
expect-no-log another build
console stop
console load 2
expect clicks 0
click 10 10
click 10 10
expect clicks 2
expect label warm
console snapshot 3
console save
console set retired 3.5
load {v2}
expect-key before_reload retired 3.5
expect clicks 2
expect label warm
expect streak 7 ~0.5
click 10 10
expect clicks 12
# The snapshot was migrated with the live state.
console load 3
expect clicks 2
console set streak 9
expect streak 9
# The recording was made by the first build: playing it warns.
console play 0
expect-log another build