// Fiesta's rhythm audit over Calls' own pages, in a real Chromium // (internal/callstest/rhythm_browser_test.go, TestEveryPageKeepsTheRhythm). // Go starts the app, signs a member in and names the states; this opens // each one at a desktop width and a phone's, checks it is the page it was // asked for, and evaluates the audit Go hands it (rhythm.Expression) over //
(or the state's own root). It prints one JSON line per state and width; Go decides. // // The configuration comes on stdin, never argv: it carries the member's // session cookie, and a command line is readable by every process on // the box. // // {"base": "http://127.0.0.1:1234", "cookie": {"name": "…", "value": "…"}, // "audits": {"main": "(function fiestaRhythm…)(\"main\", {…})"}, // "states": [{"name": "the meetings", "path": "/", "marker": "…", "root": "main", // "as": "member", "noScript": false, "act": "", "then": "", "after": ""}]} // // A state's page is checked three ways before it is audited, so a pass // can never mean "the audit read some other page": the browser is on // the state's path (after its act, on the path "after" names), the // page's own marker is there, and
is a stack (rst-stack, laid out // by tokens.css as a flex column), which is the CSS under test. With // noScript the context runs no script at all, and the page says so: its // (scripting) media feature is none and its