Calic ce46125435 test: v0.2.0 multi-active + layout-slot assertions
Add 42 new assertions covering: bw-compat register without opts,
multi-active open(A)+open(B) leaving both open, per-id close(id),
bw-compat close()/is_open() operating on the focused panel, layout-
slot resolution (left-half / right-half / center default / custom-fn),
Loud-Error on unknown slot name, hit-test dispatch against window
bounds with reverse open-order, is_pausing scanning all open windows.

Existing 12 baseline assertions retained and still pass via the bw-
compat shim. Total 54 pass / 0 fail.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-15 01:46:35 +02:00

lib-core.panel-test

Test-module for lib-core.panel. 10 assertions covering registry lifecycle, theme validation, error handling, pause-gate, and context-menu dispatch.

Version: 0.1.0 Lib-ID: lib-core.panel-test Requires: lib-core.panel v0.1.0 Tags: test, panel, ui

Running

export PATH="/c/msys64/mingw64/bin:$PATH"
cd ~/Projects/Sporel/sporel-engine
SPOREL_LIBS_DIR=~/Projects/Sporel/sporel-libs SPOREL_CI=1 SPOREL_LOG_STDERR=1 \
    ./build/Sporel.exe --test-libs=lib-core.panel-test 2>&1 | tail -15

Expected: pass=10 fail=0.

Assertion Summary

  1. register + open / close round-trip
  2. close after open works
  3. toggle twice opens then closes
  4. open with unknown widget_id raises an error
  5. set_theme with valid override is visible via get_theme
  6. set_theme with unknown key raises an error
  7. register without render function raises an error
  8. pause_on_open=true widget makes is_pausing() true; close makes it false
  9. context-menu action callback invoked on click inside its row
  10. non-pause widget: is_pausing() is false
Description
No description provided
Readme 60 KiB
Languages
Lua 100%