@typeonce/ritmo-devtools 0.24.0 → 0.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/README.md +197 -1
  3. package/dist/Fuzz.d.ts +38 -6
  4. package/dist/Fuzz.d.ts.map +1 -1
  5. package/dist/Fuzz.js +37 -11
  6. package/dist/Fuzz.js.map +1 -1
  7. package/dist/Replay.d.ts +1 -1
  8. package/dist/cli.js +171 -3
  9. package/dist/cli.js.map +1 -1
  10. package/dist/internal/dependencyScan.js +1 -1
  11. package/dist/internal/dependencyScan.js.map +1 -1
  12. package/dist/internal/fuzzNetwork.d.ts +15 -2
  13. package/dist/internal/fuzzNetwork.d.ts.map +1 -1
  14. package/dist/internal/fuzzNetwork.js +30 -7
  15. package/dist/internal/fuzzNetwork.js.map +1 -1
  16. package/dist/internal/keyboardPage.d.ts +29 -0
  17. package/dist/internal/keyboardPage.d.ts.map +1 -0
  18. package/dist/internal/keyboardPage.js +199 -0
  19. package/dist/internal/keyboardPage.js.map +1 -0
  20. package/dist/internal/keyboardWalk.d.ts +91 -0
  21. package/dist/internal/keyboardWalk.d.ts.map +1 -0
  22. package/dist/internal/keyboardWalk.js +373 -0
  23. package/dist/internal/keyboardWalk.js.map +1 -0
  24. package/dist/internal/layoutPage.d.ts +35 -0
  25. package/dist/internal/layoutPage.d.ts.map +1 -0
  26. package/dist/internal/layoutPage.js +535 -0
  27. package/dist/internal/layoutPage.js.map +1 -0
  28. package/dist/internal/layoutWalk.d.ts +84 -0
  29. package/dist/internal/layoutWalk.d.ts.map +1 -0
  30. package/dist/internal/layoutWalk.js +252 -0
  31. package/dist/internal/layoutWalk.js.map +1 -0
  32. package/dist/internal/pageOpen.d.ts +86 -0
  33. package/dist/internal/pageOpen.d.ts.map +1 -0
  34. package/dist/internal/pageOpen.js +166 -0
  35. package/dist/internal/pageOpen.js.map +1 -0
  36. package/dist/internal/route.d.ts +94 -0
  37. package/dist/internal/route.d.ts.map +1 -0
  38. package/dist/internal/route.js +230 -0
  39. package/dist/internal/route.js.map +1 -0
  40. package/dist/internal/version.d.ts +1 -1
  41. package/dist/internal/version.js +1 -1
  42. package/package.json +3 -3
  43. package/src/Fuzz.ts +62 -11
  44. package/src/cli.ts +165 -3
  45. package/src/internal/dependencyScan.ts +1 -1
  46. package/src/internal/fuzzNetwork.ts +33 -7
  47. package/src/internal/keyboardPage.ts +198 -0
  48. package/src/internal/keyboardWalk.ts +474 -0
  49. package/src/internal/layoutPage.ts +534 -0
  50. package/src/internal/layoutWalk.ts +365 -0
  51. package/src/internal/pageOpen.ts +225 -0
  52. package/src/internal/route.ts +276 -0
  53. package/src/internal/version.ts +1 -1
@@ -0,0 +1,373 @@
1
+ import { call, open, reach, stalledSaw } from "./pageOpen.js";
2
+ export const checks = ["focus-outside-menu", "tab-leaves-menu", "unnamed-control", "key-not-pressed", "focus-dropped", "unreachable-control"];
3
+ export const fixes = {
4
+ "focus-outside-menu": "move focus into the menu when it opens: showModal() on a <dialog> does it, an aria-modal element must focus its first control itself (ui-and-render.md step 8)",
5
+ "tab-leaves-menu": "keep Tab inside the open menu: open it with showModal() on a <dialog>, or make the page behind an aria-modal element inert (ui-and-render.md step 8)",
6
+ "unnamed-control": "give it a name: visible text, or aria-label on an icon (ui-and-render.md step 7)",
7
+ "key-not-pressed": "leave Enter and Space on a focused control to the page: take game keys with Keyboard.actions, not a page key listener that calls preventDefault() (lint ritmo/use-keyboard-for-game-keys)",
8
+ "focus-dropped": "update the control in place instead of rewriting its region (ui-and-render.md step 7); when the press hides or removes the control (it closes a menu, dismisses a hint), move focus on, to the canvas when play resumes (Keyboard.actions)",
9
+ "unreachable-control": "let the keyboard reach it: remove tabIndex = -1 (Keyboard.actions leaves Enter and Space on a focused control to it and keeps every other key with the game), or make it part of a group whose one Tab stop reaches it with the arrows",
10
+ "route-step": "fix the route so this step can run, or the page so it shows what the step names; the screen's checks did not run",
11
+ "page-error": "fix the error the page threw; the checks it interrupted did not run",
12
+ "nothing-checked": "give this screen steps that reach the game's DOM controls, or take it out of the route; controls drawn on the canvas, and elements that are not a <button>, a link, a form field, or an ARIA role, are not for this walk"
13
+ };
14
+ const keyName = (key) => key === " " ? "Space" : key;
15
+ const describeControl = (control) => `${control.role === "" ? "element" : control.role} ${control.name === "" ? "(no name)" : JSON.stringify(control.name)} at ${control.selector}`;
16
+ /** Runs the walk in an open Chromium; the caller launches and closes it. */
17
+ export const walk = async (browser, options) => {
18
+ const settle = options.settle ?? 1500;
19
+ const failures = [];
20
+ const outcomes = [];
21
+ for (const screen of options.route.screens) {
22
+ const result = await walkScreen(browser, { url: options.url, settle, pages: Math.max(1, options.pages ?? 1), stall: options.stall ?? 20_000 }, screen);
23
+ failures.push(...result.failures);
24
+ outcomes.push(...result.outcomes);
25
+ }
26
+ return { ok: failures.length === 0, url: options.url, screens: options.route.screens.map((screen) => screen.name), failures, outcomes };
27
+ };
28
+ /** Runs `run` on every item, at most `most` at once; the results keep the items' order. */
29
+ const inParallel = async (items, most, run) => {
30
+ const results = [];
31
+ let next = 0;
32
+ const worker = async () => {
33
+ while (next < items.length) {
34
+ const index = next++;
35
+ results[index] = await run(items[index]);
36
+ }
37
+ };
38
+ await Promise.all(Array.from({ length: Math.min(most, items.length) }, worker));
39
+ return results;
40
+ };
41
+ const press = async (opened, key, stop, wait) => {
42
+ await call(opened.page, "arm", stop);
43
+ await opened.page.keyboard.press(key);
44
+ await opened.page.waitForTimeout(wait);
45
+ return await call(opened.page, "result", undefined);
46
+ };
47
+ const notChecked = (check, screen, reason) => ({ check, screen, status: "not-checked", decided: 0, undecided: [{ reason }] });
48
+ const matches = (control, names) => names.some((entry) => entry.name === control.name && (entry.role === undefined || entry.role === control.role));
49
+ const walkScreen = async (browser, { url, settle, pages, stall }, screen) => {
50
+ const failures = [];
51
+ const outcomes = [];
52
+ const fail = (check, saw, control) => {
53
+ failures.push(control === undefined ? { check, screen: screen.name, saw, fix: fixes[check] } : { check, screen: screen.name, control, saw, fix: fixes[check] });
54
+ };
55
+ const skipAll = (reason) => ({ failures, outcomes: checks.map((check) => notChecked(check, screen.name, reason)) });
56
+ const opened = await open(browser, stall);
57
+ // What was seen before a page stopped answering is dropped with it: the report says one thing about the screen.
58
+ const stalled = () => {
59
+ failures.length = 0;
60
+ fail("page-error", stalledSaw(stall));
61
+ return skipAll("the page stopped answering");
62
+ };
63
+ try {
64
+ const reached = await reach(opened, url, screen, settle);
65
+ if (opened.stalled())
66
+ return stalled();
67
+ if (reached !== undefined) {
68
+ fail("route-step", reached);
69
+ return skipAll(`the route did not reach this screen (${reached})`);
70
+ }
71
+ if (opened.errors.length > 0) {
72
+ fail("page-error", `the page threw while the screen opened: ${opened.errors[0]}`);
73
+ return skipAll("the page threw while the screen opened");
74
+ }
75
+ // Pass 1: the Tab walk, with Enter and Space on each stop (the click stopped).
76
+ const start = await opened.state();
77
+ const menu = start.menu;
78
+ const stops = [];
79
+ const escapes = [];
80
+ const presses = [];
81
+ const visit = async (at) => {
82
+ const active = at.active;
83
+ stops.push(active);
84
+ if (menu !== null && at.menu?.id === menu.id && !at.inMenu)
85
+ escapes.push(active);
86
+ for (const key of active.keys) {
87
+ const result = await press(opened, key, true, 80);
88
+ presses.push({ stop: active, key, result });
89
+ // The game may move focus on a key it took: walk on from where focus is now.
90
+ const after = await opened.state();
91
+ if (after.active?.id !== active.id)
92
+ break;
93
+ }
94
+ };
95
+ if (start.active !== null)
96
+ await visit(start);
97
+ let atBody = 0;
98
+ for (let tabs = 0; tabs < 120; tabs++) {
99
+ await opened.page.keyboard.press("Tab");
100
+ await opened.page.waitForTimeout(40);
101
+ const at = await opened.state();
102
+ if (at.active === null) {
103
+ if (++atBody >= 2)
104
+ break;
105
+ continue;
106
+ }
107
+ atBody = 0;
108
+ if (stops.some((stop) => stop.id === at.active.id))
109
+ break;
110
+ await visit(at);
111
+ }
112
+ const pageErrors = opened.errors.length;
113
+ if (pageErrors > 0) {
114
+ fail("page-error", `the page threw during the Tab walk: ${opened.errors[0]}`);
115
+ return skipAll("the page threw during the Tab walk");
116
+ }
117
+ // focus-outside-menu and tab-leaves-menu.
118
+ if (menu === null) {
119
+ outcomes.push(notChecked("focus-outside-menu", screen.name, "no menu is open on this screen"));
120
+ outcomes.push(notChecked("tab-leaves-menu", screen.name, "no menu is open on this screen"));
121
+ }
122
+ else {
123
+ const menuControl = await opened.control(menu);
124
+ const where = start.active === null ? "<body>" : describeControl(await opened.control(start.active));
125
+ if (!start.inMenu)
126
+ fail("focus-outside-menu", `this menu is open and focus is on ${where}`, menuControl);
127
+ outcomes.push({ check: "focus-outside-menu", screen: screen.name, status: start.inMenu ? "passed" : "failed", decided: 1, undecided: [] });
128
+ const inside = stops.length - escapes.length;
129
+ if (escapes.length > 0) {
130
+ fail("tab-leaves-menu", `this menu is open and Tab reached ${describeControl(await opened.control(escapes[0]))} outside it${escapes.length > 1 ? ` (and ${escapes.length - 1} more)` : ""}`, menuControl);
131
+ outcomes.push({ check: "tab-leaves-menu", screen: screen.name, status: "failed", decided: 1, undecided: [] });
132
+ }
133
+ else if (inside === 0) {
134
+ outcomes.push(notChecked("tab-leaves-menu", screen.name, "Tab reached nothing inside the open menu"));
135
+ }
136
+ else {
137
+ outcomes.push({ check: "tab-leaves-menu", screen: screen.name, status: "passed", decided: 1, undecided: [] });
138
+ }
139
+ }
140
+ const controls = new Map();
141
+ for (const stop of stops)
142
+ controls.set(stop.id, await opened.control(stop));
143
+ // key-not-pressed.
144
+ {
145
+ const undecided = [];
146
+ const failedIds = new Set();
147
+ let decided = 0;
148
+ const byStop = new Map();
149
+ for (const entry of presses)
150
+ byStop.set(entry.stop.id, [...byStop.get(entry.stop.id) ?? [], entry]);
151
+ for (const [id, entries] of byStop) {
152
+ const stop = entries[0].stop;
153
+ const control = controls.get(id);
154
+ if (!stop.native) {
155
+ if (entries.some((entry) => entry.result.pressed))
156
+ decided++;
157
+ else
158
+ undecided.push({ control, reason: "a custom control (not a native button, link, checkbox, or summary) showed no click and no change of aria-checked, aria-pressed, aria-expanded, or aria-selected, which may be right for it" });
159
+ continue;
160
+ }
161
+ decided++;
162
+ for (const entry of entries) {
163
+ if (entry.result.pressed)
164
+ continue;
165
+ const prevented = entry.result.keydownPrevented === true ? "a key listener called preventDefault() on its keydown" : entry.result.keyupPrevented === true ? "a key listener called preventDefault() on its keyup" : "no click followed";
166
+ fail("key-not-pressed", `${keyName(entry.key)} with it focused did not press it: ${prevented}`, control);
167
+ failedIds.add(id);
168
+ }
169
+ }
170
+ const pressable = stops.filter((stop) => stop.keys.length > 0);
171
+ outcomes.push(decided === 0
172
+ ? { check: "key-not-pressed", screen: screen.name, status: "not-checked", decided: 0, undecided: undecided.length > 0 ? undecided : [{ reason: pressable.length === 0 ? "Tab reached no control that Enter or Space presses" : "no press could be judged" }] }
173
+ : { check: "key-not-pressed", screen: screen.name, status: failedIds.size > 0 ? "failed" : "passed", decided, undecided });
174
+ // unreachable-control: what Tab missed, unless the arrows of its group reach it.
175
+ const visible = await call(opened.page, "controls", menu?.id ?? null);
176
+ const reachedIds = new Set(stops.map((stop) => stop.id));
177
+ const missed = visible.filter((control) => !reachedIds.has(control.id));
178
+ // Named before the arrow keys are pressed: a game that takes them may redraw what they name.
179
+ for (const control of missed)
180
+ controls.set(control.id, await opened.control(control));
181
+ const probed = new Map();
182
+ const unreachable = [];
183
+ for (const control of missed) {
184
+ const from = await opened.page.evaluate(({ control, stops }) => Reflect.get(globalThis, "__ritmoKeyboardWalk").groupStops(control, stops), { control: control.id, stops: [...reachedIds] });
185
+ let found = false;
186
+ for (const stop of from.slice(0, 2)) {
187
+ let reachedFrom = probed.get(stop);
188
+ if (reachedFrom === undefined) {
189
+ reachedFrom = await probe(opened, stop, missed.length + 1);
190
+ probed.set(stop, reachedFrom);
191
+ }
192
+ if (reachedFrom.has(control.id)) {
193
+ found = true;
194
+ break;
195
+ }
196
+ }
197
+ if (!found)
198
+ unreachable.push(control);
199
+ }
200
+ for (const control of unreachable) {
201
+ fail("unreachable-control", `it is visible${menu === null ? "" : " in the open menu"}, and neither Tab nor the arrow keys of its group reach it`, controls.get(control.id));
202
+ }
203
+ outcomes.push(visible.length === 0
204
+ ? notChecked("unreachable-control", screen.name, menu === null ? "no visible control on this screen" : "no visible control in the open menu")
205
+ : { check: "unreachable-control", screen: screen.name, status: unreachable.length > 0 ? "failed" : "passed", decided: visible.length, undecided: [] });
206
+ if (opened.errors.length > pageErrors)
207
+ fail("page-error", `the page threw during the arrow-key probe: ${opened.errors[pageErrors]}`);
208
+ // unnamed-control: every control the keyboard reaches, by Tab or by the arrows of its group.
209
+ const reached = [...stops.filter((stop) => !stop.canvas), ...missed.filter((control) => !unreachable.includes(control))];
210
+ if (reached.length === 0)
211
+ outcomes.push(notChecked("unnamed-control", screen.name, "the keyboard reached no control"));
212
+ else {
213
+ const unnamed = reached.filter((control) => controls.get(control.id).name === "");
214
+ for (const control of unnamed)
215
+ fail("unnamed-control", "the keyboard reaches it and it has no accessible name", controls.get(control.id));
216
+ outcomes.push({ check: "unnamed-control", screen: screen.name, status: unnamed.length > 0 ? "failed" : "passed", decided: reached.length, undecided: [] });
217
+ }
218
+ // Pass 2, focus-dropped: press each control for real, on a fresh copy of the screen.
219
+ if (screen.noPress === true) {
220
+ outcomes.push(notChecked("focus-dropped", screen.name, "the route marks this screen not to be pressed (noPress: true)"));
221
+ }
222
+ else {
223
+ const skip = screen.noPress;
224
+ const results = { decided: 0, undecided: [], failed: 0 };
225
+ const candidates = stops.filter((stop) => stop.native && stop.keys.length > 0);
226
+ const skipped = (stop) => matches(controls.get(stop.id), skip)
227
+ ? "the route marks it not to be pressed"
228
+ : stop.external
229
+ ? "a link to another site is not pressed for real"
230
+ : failedIds.has(stop.id)
231
+ ? "Enter or Space does not press it (key-not-pressed)"
232
+ : undefined;
233
+ const pressed = await inParallel(candidates.filter((stop) => skipped(stop) === undefined), pages, (stop) => pressForReal(browser, { url, settle, pages, stall }, screen, stop));
234
+ let at = 0;
235
+ for (const stop of candidates) {
236
+ const control = controls.get(stop.id);
237
+ const reason = skipped(stop);
238
+ if (reason !== undefined) {
239
+ results.undecided.push({ control, reason });
240
+ continue;
241
+ }
242
+ let outcome = pressed[at++];
243
+ // A press that shared the machine with others and did not keep focus is run again alone: only that result is reported.
244
+ if (pages > 1 && outcome._tag !== "Kept")
245
+ outcome = await pressForReal(browser, { url, settle, pages, stall }, screen, stop);
246
+ if (outcome._tag === "Undecided")
247
+ results.undecided.push({ control, reason: outcome.reason });
248
+ else if (outcome._tag === "PageError") {
249
+ fail("page-error", outcome.saw, control);
250
+ results.undecided.push({ control, reason: outcome.reason });
251
+ }
252
+ else {
253
+ results.decided++;
254
+ if (outcome._tag === "Dropped") {
255
+ results.failed++;
256
+ fail("focus-dropped", `${keyName(outcome.key)} pressed it and focus fell to <body>`, control);
257
+ }
258
+ }
259
+ }
260
+ outcomes.push(results.decided === 0
261
+ ? { check: "focus-dropped", screen: screen.name, status: "not-checked", decided: 0, undecided: results.undecided.length > 0 ? results.undecided : [{ reason: "Tab reached no control that Enter or Space presses" }] }
262
+ : { check: "focus-dropped", screen: screen.name, status: results.failed > 0 ? "failed" : "passed", decided: results.decided, undecided: results.undecided });
263
+ }
264
+ }
265
+ // Nothing decided is not a pass: the route missed the game's controls, or the page has none this walk can see.
266
+ if (failures.length === 0 && outcomes.every((outcome) => outcome.status === "not-checked")) {
267
+ fail("nothing-checked", "no check could be decided on this screen: no menu is open, and it shows no control");
268
+ }
269
+ return { failures, outcomes: checks.map((check) => outcomes.find((outcome) => outcome.check === check)) };
270
+ }
271
+ catch (error) {
272
+ if (!opened.stalled())
273
+ throw error;
274
+ return stalled();
275
+ }
276
+ finally {
277
+ await opened.close();
278
+ }
279
+ };
280
+ /** Every element the arrow keys reach from `stop`, focused by script after the walk's last key. */
281
+ const probe = async (opened, stop, most) => {
282
+ const reached = new Set();
283
+ for (const keys of [["ArrowRight", "ArrowLeft"], ["ArrowDown", "ArrowUp"]]) {
284
+ for (const key of keys) {
285
+ const focused = await call(opened.page, "focus", stop);
286
+ if (focused !== true)
287
+ return reached;
288
+ for (let step = 0; step < most; step++) {
289
+ await opened.page.keyboard.press(key);
290
+ await opened.page.waitForTimeout(30);
291
+ const at = await opened.state();
292
+ if (at.active === null || reached.has(at.active.id))
293
+ break;
294
+ reached.add(at.active.id);
295
+ }
296
+ }
297
+ }
298
+ return reached;
299
+ };
300
+ /** Reloads the screen, tabs to the control again (by its selector), and presses it with the click let through. */
301
+ const pressForReal = async (browser, { url, settle, stall }, screen, stop) => {
302
+ const opened = await open(browser, stall);
303
+ try {
304
+ const reached = await reach(opened, url, screen, settle);
305
+ if (opened.stalled())
306
+ return { _tag: "PageError", saw: stalledSaw(stall), reason: "the page stopped answering" };
307
+ if (reached !== undefined)
308
+ return { _tag: "Undecided", reason: `the route did not reach the screen again (${reached})` };
309
+ let at = await opened.state();
310
+ for (let tabs = 0; at.active?.selector !== stop.selector && tabs < 120; tabs++) {
311
+ await opened.page.keyboard.press("Tab");
312
+ await opened.page.waitForTimeout(40);
313
+ at = await opened.state();
314
+ }
315
+ if (at.active?.selector !== stop.selector)
316
+ return { _tag: "Undecided", reason: "Tab did not reach it again after a reload" };
317
+ const key = stop.keys[0];
318
+ const before = opened.errors.length;
319
+ const popups = [];
320
+ const onPopup = (popup) => {
321
+ popups.push(popup);
322
+ };
323
+ opened.page.on("popup", onPopup);
324
+ const result = await press(opened, key, false, 700);
325
+ opened.page.off("popup", onPopup);
326
+ await Promise.all(popups.map((popup) => popup.close().catch(() => undefined)));
327
+ if (popups.length > 0)
328
+ return { _tag: "Undecided", reason: "the press opened another page" };
329
+ if (opened.errors.length > before)
330
+ return { _tag: "PageError", saw: `the page threw when ${keyName(key)} pressed it: ${opened.errors[before]}`, reason: "the page threw when it was pressed" };
331
+ const after = await opened.state();
332
+ if (after.url.replace(/#.*$/, "") !== at.url.replace(/#.*$/, ""))
333
+ return { _tag: "Undecided", reason: "the press left the page" };
334
+ if (!result.pressed)
335
+ return { _tag: "Undecided", reason: `${keyName(key)} did not press it after a reload` };
336
+ return after.active === null ? { _tag: "Dropped", key } : { _tag: "Kept", key };
337
+ }
338
+ catch (error) {
339
+ if (opened.stalled())
340
+ return { _tag: "PageError", saw: stalledSaw(stall), reason: "the page stopped answering" };
341
+ return { _tag: "Undecided", reason: `the press failed: ${error instanceof Error ? error.message.split("\n")[0] : String(error)}` };
342
+ }
343
+ finally {
344
+ await opened.close();
345
+ }
346
+ };
347
+ /** The report as text: one line per failure, then what passed and what was not checked, per screen. */
348
+ export const format = (report) => {
349
+ const lines = [];
350
+ for (const failure of report.failures) {
351
+ lines.push(`FAIL ${failure.check} [${failure.screen}]${failure.control === undefined ? "" : ` ${describeControl(failure.control)}`}: ${failure.saw}. Fix: ${failure.fix}.`);
352
+ }
353
+ if (lines.length > 0)
354
+ lines.push("");
355
+ for (const screen of report.screens) {
356
+ const outcomes = report.outcomes.filter((outcome) => outcome.screen === screen);
357
+ lines.push(`[${screen}]`);
358
+ for (const outcome of outcomes) {
359
+ const count = outcome.decided > 0 ? ` (${outcome.decided} decided)` : "";
360
+ lines.push(` ${outcome.status === "passed" ? "pass" : outcome.status === "failed" ? "FAIL" : "not checked"} ${outcome.check}${count}`);
361
+ for (const entry of outcome.undecided)
362
+ lines.push(` not checked${entry.control === undefined ? "" : ` ${describeControl(entry.control)}`}: ${entry.reason}`);
363
+ }
364
+ }
365
+ const failed = report.outcomes.filter((outcome) => outcome.status === "failed").length;
366
+ const passed = report.outcomes.filter((outcome) => outcome.status === "passed").length;
367
+ const skipped = report.outcomes.filter((outcome) => outcome.status === "not-checked").length;
368
+ const other = report.failures.filter((failure) => failure.check === "route-step" || failure.check === "page-error" || failure.check === "nothing-checked").length;
369
+ lines.push("");
370
+ lines.push(`keyboard walk of ${report.url}: ${report.failures.length} failure${report.failures.length === 1 ? "" : "s"}${other > 0 ? ` (${other} from the route or the page, not from a check)` : ""}; checks ${failed} failed, ${passed} passed, ${skipped} not checked on ${report.screens.length} screen${report.screens.length === 1 ? "" : "s"}`);
371
+ return lines.join("\n");
372
+ };
373
+ //# sourceMappingURL=keyboardWalk.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"keyboardWalk.js","sourceRoot":"","sources":["../../src/internal/keyboardWalk.ts"],"names":[],"mappings":"AA0CA,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAM7D,MAAM,CAAC,MAAM,MAAM,GAA2B,CAAC,oBAAoB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,eAAe,EAAE,qBAAqB,CAAC,CAAA;AAmCrK,MAAM,CAAC,MAAM,KAAK,GAAqC;IACrD,oBAAoB,EAAE,gKAAgK;IACtL,iBAAiB,EAAE,sJAAsJ;IACzK,iBAAiB,EAAE,kFAAkF;IACrG,iBAAiB,EAAE,2LAA2L;IAC9M,eAAe,EAAE,4OAA4O;IAC7P,qBAAqB,EAAE,wOAAwO;IAC/P,YAAY,EAAE,kHAAkH;IAChI,YAAY,EAAE,qEAAqE;IACnF,iBAAiB,EAAE,0NAA0N;CAC9O,CAAA;AAoBD,MAAM,OAAO,GAAG,CAAC,GAAW,EAAU,EAAE,CAAC,GAAG,KAAK,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAA;AAEpE,MAAM,eAAe,GAAG,CAAC,OAAgB,EAAU,EAAE,CACnD,GAAG,OAAO,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,IAAI,OAAO,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,OAAO,CAAC,QAAQ,EAAE,CAAA;AAEhJ,4EAA4E;AAC5E,MAAM,CAAC,MAAM,IAAI,GAAG,KAAK,EAAE,OAAg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AAC,QAAQ,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,GAAG,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,KAAK,gDAAgD,CAAC,CAAC,CAAC,EAAE,YAAY,MAAM,YAAY,MAAM,YAAY,OAAO,mBAAmB,MAAM,CAAC,OAAO,CAAC,MAAM,UAAU,MAAM,CAAC,OAAO,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAA;IACtV,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;AACzB,CAAC,CAAA"}
@@ -0,0 +1,35 @@
1
+ /**
2
+ * The page side of `ritmo-devtools layout`: a script installed before the
3
+ * game's own scripts on every page the audit opens. It runs in the browser,
4
+ * so it is plain JavaScript in a string: Node never runs it, and the package
5
+ * config has no DOM types.
6
+ *
7
+ * It installs `__ritmoLayout` with:
8
+ *
9
+ * - `snapshot()`: every measured element's layout box, ignoring transforms,
10
+ * for the walk to tell when the screen holds still (a transform animation
11
+ * is motion, not layout, so a pulsing button still settles);
12
+ * - `audit(options)`: the findings of each check over what the page shows
13
+ * now (the open modal only, when there is one), and how many items it
14
+ * measured;
15
+ * - `steady()` and `shifts(allow)`: Chromium's own layout-shift entries
16
+ * recorded since `steady()`, with the elements that moved;
17
+ * - `pad()`: makes every text on the page about 40% longer, and keeps it so
18
+ * as the game renders new text, for the longer-text pass;
19
+ * - `mark(boxes)` and `unmark()`: numbered boxes over the findings, in the
20
+ * top layer, for a screenshot.
21
+ *
22
+ * What it measures: each line of visible text (`Range.getClientRects`, the
23
+ * text itself rather than the box around it), each visible control (the
24
+ * elements the keyboard walk calls controls), and each button of a
25
+ * `Touch.actions` layout (read from the element it is attached to). Boxes
26
+ * come in viewport pixels after every transform, so a UI scaled as one piece
27
+ * is measured as it is shown.
28
+ *
29
+ * It changes nothing on the game's page except in `pad()` (a pass of its
30
+ * own, on its own page load), and while `audit` runs, when a style that
31
+ * makes every element answer hit tests lets it see what is drawn on top
32
+ * (removed before it returns).
33
+ */
34
+ export declare const pageScript: string;
35
+ //# sourceMappingURL=layoutPage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layoutPage.d.ts","sourceRoot":"","sources":["../../src/internal/layoutPage.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,eAAO,MAAM,UAAU,QAoflB,CAAA"}