Implements issue 3mhyfpshyza2n
Summary #
- Adds a WPT (Web Platform Tests) test runner as a
cargo testintegration test - Implements a testharness.js JavaScript shim providing
test(),async_test(),promise_test(), and all standardassert_*functions - Includes 16 embedded WPT-style HTML test files covering:
dom/nodes/— createElement, appendChild, removeChild, insertBefore, replaceChild, cloneNode, textContent, getElementById, getAttribute/setAttributedom/events/— addEventListener, dispatchEvent, removeEventListener, event bubblingdom/collections/— getElementsByTagNamehtml/dom/— document properties (documentElement, body, head), querySelector/querySelectorAllconsole/— console.log, console.error, console.warn
- Test runner features: panic isolation via catch_unwind, instruction-count timeouts, results grouped by directory, silent panic hook
- Initial pass rate: 48/48 subtests passing (100%)