# Timeline check (design.md "Acceptance: timeline"), from # accel_to_mouse.timeline.script. The interaction: drags, each adding a # point a frame near the pointer with offsets from the State's generator, # so a replay with the pointer elsewhere, a missed press or a lost # generator state ends with other points. The pointer's square is drawn # from live input, so the screenshots check that input follows a seek. # 1. Record. move 300 150 frames 30 console record 0 frames 20 down 300 150 move 320 160 frames 10 move 360 200 frames 10 up 360 200 move 500 250 frames 20 down 500 250 frames 15 up 500 250 move 420 120 frames 20 # Saving stops the recording first: slot 2 is the state at the stop. console save 2 expect points.len 2039 # 2. Played to the end (one recorded frame per script frame), exactly. console play 0 frames 150 expect-snapshot 2 screenshot .zig-cache/e2e/quadtree-played.png # 5. Paused (at the end): `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/quadtree-sought.png # 7. What a seek shows equals what playing showed (draw-side caches). expect-same-screenshot .zig-cache/e2e/quadtree-played.png .zig-cache/e2e/quadtree-sought.png console seek 800 console pause frames 10 # Paused halfway, then on to the end. console pause frames 30 console pause frames 150 expect-snapshot 2 # 4. Stepped: frame by frame 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 pointer move, then the same replay. console stop move 20 20 frames 10 console play 0 frames 150 expect-snapshot 2 console stop