waybetter/packages/runtime/tests
CRT 4a294b993a runtime: styles for created roots are constructed sheets (CSP-proof)
- styles.ts: adoptStyles(root, css) adopts a constructed stylesheet into a shadow root or document
  (not governed by a page's CSP, parsed once, stays with the root when its host is moved);
  <style> fallback where constructable sheets are missing or refused.
- UI kit: the kit's shadow root and each dialog's `css` use it (dialog CSS goes with the dialog).
- Plugin API: api.adoptCSS(root, css) and scope.adoptCSS (removed on dispose); injectCSS keeps its
  <style> and, when a CSP leaves it without a sheet, applies the same rules as an adopted sheet.
- tests/styles.test.ts.
2026-09-28 21:09:14 +00:00
..
column.test.ts runtime column: set the column attributes on scan (config delivered at document start has no <html> yet), no scrollbar in columns, unread only above both the read items and what is on screen, a hidden 1 px webview counts as off screen 2026-09-28 16:42:21 +00:00
commands.test.ts runtime: plugin commands for the command palette (api.commands / scope.commands: register, list, run, owner = the starting plugin, removed on stop, caps, in-page shortcuts); host: start/stop scripts own and drop a plugin's commands; dev_start_script with sourceURL + devError for live reload; devErrors (file:line from a start failure) 2026-09-28 18:35:44 +00:00
devErrors.test.ts runtime: plugin commands for the command palette (api.commands / scope.commands: register, list, run, owner = the starting plugin, removed on stop, caps, in-page shortcuts); host: start/stop scripts own and drop a plugin's commands; dev_start_script with sourceURL + devError for live reload; devErrors (file:line from a start failure) 2026-09-28 18:35:44 +00:00
hubs.test.ts Extract the wayBetter framework core from wayBetter for X 2026-09-27 20:01:33 +00:00
linkRouting.test.ts Extract the wayBetter framework core from wayBetter for X 2026-09-27 20:01:33 +00:00
paneNav.test.ts Extract the wayBetter framework core from wayBetter for X 2026-09-27 20:01:33 +00:00
permissions.test.ts Plugin permissions and app installs: @permissions header, per-plugin API views, validated install/remove 2026-09-28 18:08:52 +00:00
pluginApi.test.ts Extract the wayBetter framework core from wayBetter for X 2026-09-27 20:01:33 +00:00
styles.test.ts runtime: styles for created roots are constructed sheets (CSP-proof) 2026-09-28 21:09:14 +00:00
themeTokens.test.ts Extract the wayBetter framework core from wayBetter for X 2026-09-27 20:01:33 +00:00
ui.test.ts runtime: plugin UI kit (api.ui: toast, alert, confirm, prompt, dialog, modal) and theme API (api.theme, --wb-* vars); theme JSON Schema; waybetter 0.2.0 2026-09-28 14:47:09 +00:00