Validation¶
Focused fixtures exercise actual browser hierarchy/layout, retained collapsed selection, native-toggle focus admission, keyboard/model/range boundaries, reentrant callbacks, retirement, exact restoration and same-origin child-document routing in Chromium and hidden WKWebView. Trusted browser Tab/Right/Down/Space and nested-label pointer activation provide additional delivery evidence. Synthetic focus/pointer cases remain synthetic. Chromium fixture document.hasFocus=false outside trusted input is retained; trusted pointer delivery observed true. This evidence is not native accessibility-tree access, screen-reader validation, native OS focus or other-platform certification. W190's missing native WebKit control-tree result remains a separate explicit limitation.
Build and run the native hidden fixture from an ordinary local checkout:
cmake -S crates/ravet-surface/native -B target/native-editor -DRAVET_WEB_EDITOR_TESTS=ON
cmake --build target/native-editor --target ravet-web-tree -j 2
ctest --test-dir target/native-editor -R '^ravet-web-tree$' --output-on-failure
The CMake fixture embeds the same trusted shared script inline within its local read scope. It opens no host/device/window. See decision 0211.
Selection inputs use dense arrays: holes, duplicates and invalid indices reject before changing the model or notifying. Actual allowed local iframe navigation also retires a connected root when its original document/window is replaced; committed model is retained without a callback. Cleanup restores original owned attributes/styles and disconnects original document/node listeners/observers, removing safely matching original window listeners even if its frame detached; replacement/inaccessible/closed WindowProxy cleanup is skipped.