WEFT_OS/tests/frame
Marco Allegretti 4b27d7f16c
fix(notes): store notes exactly and never overwrite newer text
The Notes demo exchanged hand-escaped strings: the page turned every
literal backslash-n into a line break on load and save, the component
escaped only some control characters, so other text produced invalid
replies, and every reply replaced the editor contents, discarding text
typed while a save was in flight. Saves wrote the file in place and
replaced whatever another Notes window had stored.

Requests and replies are now JSON objects. The component reports a
revision (a hash of the stored bytes) with each load; a save names the
revision it was edited from and is refused when the stored notes have
changed since, so a second window's text is never replaced silently. The
file is written beside notes.txt and renamed over it. A save
acknowledgement updates only the saved state, never the editor, and
Discard reloads the stored notes.

tests/frame/check_notes.py edits Notes with real keyboard input on the
nested desktop: text with a literal backslash sequence, quotes, a tab and
non-ASCII characters is stored byte for byte, text typed during a save
survives, and a save after another window changed the file is refused.
It fails against the previous package, which turned the seeded "\n"
into a line break. app.wasm is rebuilt and the package re-signed with the
demo key.
2026-10-09 08:47:01 +00:00
..
check_app_data.py fix(appd): keep app data apart from installed packages 2026-10-09 08:43:42 +00:00
check_counter.py fix(appd): authorize WebSocket clients by role and session 2026-10-09 07:45:49 +00:00
check_frame.py test: verify native pointer and keyboard input through weft-compositor 2026-10-09 01:18:53 +00:00
check_input.py test: verify native pointer and keyboard input through weft-compositor 2026-10-09 01:18:53 +00:00
check_notes.py fix(notes): store notes exactly and never overwrite newer text 2026-10-09 08:47:01 +00:00
input.html test: verify native pointer and keyboard input through weft-compositor 2026-10-09 01:18:53 +00:00
reference.html fix(shells): paint and present Servo frames and report readiness truthfully 2026-10-09 01:02:26 +00:00
session.py test: verify native pointer and keyboard input through weft-compositor 2026-10-09 01:18:53 +00:00