blob: 0da467063a434268f66d351a0f6e6a503b6aac6e (
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
36
37
38
39
40
41
42
43
44
45
46
|
# Holes through morphs (test/scene_morph.zig), a quarter, half and three
# quarters of the way, on the GPU and then on the CPU: the middle of each
# hole is the background, the ring around it drawn (the 0 into the 5 while
# its hole is half its size or more); at the end the disc fills it.
console set deck.playing false
console set deck.t 1
screenshot .zig-cache/anim/morph-1.png
expect-pixel .zig-cache/anim/morph-1.png 300 360 255 255 255 255 1
expect-pixel .zig-cache/anim/morph-1.png 240 360 28 28 31 255 1
expect-pixel .zig-cache/anim/morph-1.png 640 360 28 28 31 255 1
expect-pixel .zig-cache/anim/morph-1.png 1040 360 28 28 31 255 1
console set deck.t 2
screenshot .zig-cache/anim/morph-2.png
expect-pixel .zig-cache/anim/morph-2.png 300 360 255 255 255 255 1
expect-pixel .zig-cache/anim/morph-2.png 240 360 28 28 31 255 1
expect-pixel .zig-cache/anim/morph-2.png 640 360 28 28 31 255 1
expect-pixel .zig-cache/anim/morph-2.png 1040 360 28 28 31 255 1
console set deck.t 3
screenshot .zig-cache/anim/morph-3.png
expect-pixel .zig-cache/anim/morph-3.png 300 360 255 255 255 255 1
expect-pixel .zig-cache/anim/morph-3.png 240 360 28 28 31 255 1
expect-pixel .zig-cache/anim/morph-3.png 1040 360 28 28 31 255 1
key b
expect backend cpu
console set deck.t 1
screenshot .zig-cache/anim/morph-cpu-1.png
expect-pixel .zig-cache/anim/morph-cpu-1.png 300 360 255 255 255 255 1
expect-pixel .zig-cache/anim/morph-cpu-1.png 240 360 28 28 31 255 1
expect-pixel .zig-cache/anim/morph-cpu-1.png 640 360 28 28 31 255 1
expect-pixel .zig-cache/anim/morph-cpu-1.png 1040 360 28 28 31 255 1
console set deck.t 2
screenshot .zig-cache/anim/morph-cpu-2.png
expect-pixel .zig-cache/anim/morph-cpu-2.png 300 360 255 255 255 255 1
expect-pixel .zig-cache/anim/morph-cpu-2.png 240 360 28 28 31 255 1
expect-pixel .zig-cache/anim/morph-cpu-2.png 640 360 28 28 31 255 1
expect-pixel .zig-cache/anim/morph-cpu-2.png 1040 360 28 28 31 255 1
console set deck.t 3
screenshot .zig-cache/anim/morph-cpu-3.png
expect-pixel .zig-cache/anim/morph-cpu-3.png 300 360 255 255 255 255 1
expect-pixel .zig-cache/anim/morph-cpu-3.png 240 360 28 28 31 255 1
expect-pixel .zig-cache/anim/morph-cpu-3.png 1040 360 28 28 31 255 1
console set deck.t 4
screenshot .zig-cache/anim/morph-cpu-4.png
expect-pixel .zig-cache/anim/morph-cpu-4.png 240 360 255 255 255 255 1
expect-pixel .zig-cache/anim/morph-cpu-4.png 640 360 255 255 255 255 1
expect-pixel .zig-cache/anim/morph-cpu-4.png 1040 360 28 28 31 255 1
|