Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed .github/assets/demo-organize.mp4
Binary file not shown.
Binary file removed .github/assets/demo-organize.webp
Binary file not shown.
Binary file modified .github/assets/demo-switch.mp4
Binary file not shown.
Binary file modified .github/assets/demo-switch.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed .github/assets/demo-themes.mp4
Binary file not shown.
Binary file removed .github/assets/demo-themes.webp
Binary file not shown.
1 change: 1 addition & 0 deletions crates/accshift-egui/parity/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Every screen of the egui app was compared, pixel by pixel, with the same screen
- `scenes/*.json`, the scenes, played by the egui runner for regression shots;
- `data/*.json`, the mock data the scenes run on, and `avatars/`, the mock avatars it points to;
- `fragments/*.html`, the static CSS boxes of the `primitives-*` scenes;
- `recordings/*.json`, scenes with `"record"` that film the README clips frame by frame, kept out of `scenes/` so the regression run and its diff skip them;
- `diff.mjs`, the pixel diff of two shot folders (Node 22+ and ffmpeg on `PATH`);
- the rules below, measured on WebView2, which the egui painter follows.

Expand Down
97 changes: 97 additions & 0 deletions crates/accshift-egui/parity/recordings/readme-switch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
{
"id": "readme-switch",
"scenario": "demo",
"os": "windows",
"viewport": {"width": 860, "height": 440, "scale": 1.5},
"theme": "glass-dark",
"locale": "en",
"record": 30,
"steps": [
{"move": [600, 340]},
{"cursor": true},
{"wait": 250},
{"glide": [755, 298], "ms": 650},
{"wait": 150},
{"glide": [535, 152], "ms": 500},
{"wait": 100},
{"glide": [315, 152], "ms": 450},
{"wait": 60},
{"click": [315, 152]},
{"wait": 550},
{"shot": "armed"},
{"click": [315, 152]},
{"wait": 450},
{"shot": "switching"},
{"wait": 1100},
{"shot": "switched"},
{"glide": [639, 60], "ms": 600},
{"wait": 60},
{"click": [639, 60]},
{"wait": 150},
{"text": "r"},
{"wait": 170},
{"text": "a"},
{"wait": 170},
{"wait": 900},
{"shot": "search"},
{"key": "Backspace"},
{"wait": 110},
{"key": "Backspace"},
{"wait": 450},
{"glide": [95, 152], "ms": 650},
{"wait": 60},
{"click": [95, 152]},
{"wait": 1100},
{"shot": "folder"},
{"glide": [35, 60], "ms": 500},
{"wait": 60},
{"click": [35, 60]},
{"wait": 800},
{"glide": [481, 18], "ms": 650},
{"wait": 60},
{"click": [481, 18]},
{"wait": 700},
{"shot": "roblox"},
{"glide": [95, 152], "ms": 450},
{"wait": 350},
{"glide": [315, 152], "ms": 380},
{"wait": 450},
{"glide": [413, 18], "ms": 500},
{"wait": 60},
{"click": [413, 18]},
{"wait": 800},
{"glide": [816, 60], "ms": 600},
{"wait": 60},
{"click": [816, 60]},
{"wait": 900},
{"shot": "list"},
{"glide": [300, 252], "ms": 500},
{"wait": 60},
{"click": [300, 252]},
{"wait": 1300},
{"shot": "list-selected"},
{"glide": [790, 60], "ms": 550},
{"wait": 60},
{"click": [790, 60]},
{"wait": 900},
{"shot": "grid"},
{"cursor": false},
{"wait": 250},
{"key": "Ctrl+K"},
{"wait": 500},
{"shot": "palette"},
{"text": "m"},
{"wait": 130},
{"text": "a"},
{"wait": 130},
{"text": "i"},
{"wait": 130},
{"text": "n"},
{"wait": 130},
{"wait": 600},
{"shot": "palette-typed"},
{"key": "Enter"},
{"wait": 1700},
{"shot": "end"}
]
}
6 changes: 5 additions & 1 deletion crates/accshift-egui/src/harness/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,18 @@
//! and scale, builds its screen, waits until the screen is ready (every
//! avatar uploaded), then injects its steps as egui raw input on the wall
//! clock, like the reference runner does over CDP. A `shot` reads back the
//! frame the renderer presented and writes `<out>/<id>/<shot>.png`.
//! frame the renderer presented and writes `<out>/<id>/<shot>.png`. A scene
//! with `record` writes every frame instead, on a clock of its own
//! (`record.rs`), for the README clips.
//!
//! Failures (a scene the egui side cannot render yet, a shot of the wrong
//! size, a write error) are printed and counted; the process exits non-zero
//! when any happened ([`failures`]).

use std::path::PathBuf;

#[cfg(any(test, feature = "harness"))]
mod record;
#[cfg(any(test, feature = "harness"))]
mod scenes;
#[cfg(any(test, feature = "harness"))]
Expand Down
Loading
Loading