# Timeline check (design.md "Acceptance: timeline"), from # accel_to_mouse.timeline.script. The interaction is drags: each pointer # move with the button down adds a boid there, so a replay must see every # move, with the button state of its own frame. # 1. Record. frames 30 console snapshot 1 console record 0 frames 10 down 100 100 move 120 110 move 140 120 frames 5 move 160 130 up 160 130 frames 20 # A move without the button adds nothing. move 300 200 down 500 300 move 480 280 move 460 260 move 440 240 up 440 240 frames 30 expect boids.len 126 console save 2 # 2. Played to the end, exactly. console play 0 frames 120 expect-snapshot 2 screenshot .zig-cache/e2e/flocking-played.png # 5. Paused: `draw` must not move State. frames 30 expect-snapshot 2 # 3. Sought to the end, and to the middle and played on. console seek end expect-snapshot 2 screenshot .zig-cache/e2e/flocking-sought.png # 7. What a seek shows equals what playing showed. expect-same-screenshot .zig-cache/e2e/flocking-played.png .zig-cache/e2e/flocking-sought.png console seek 600 console pause frames 10 console pause frames 30 console pause frames 120 expect-snapshot 2 # 4. Stepped from the start, then back and forth. console seek start console step 100000 expect-snapshot 2 console step -25 console step 25 expect-snapshot 2 # 6. A live drag (two boids, and the button left down), then the same replay. console stop down 20 20 move 30 30 move 40 40 frames 10 console play 0 frames 120 expect-snapshot 2 console stop