Author SHA1 Message Date
Sprite b388a70aa7 M7 test platform: Platform traits, Application, TestPlatform, VisualTestContext
- input: MouseExitEvent, ModifiersChangedEvent, PlatformInput, and
  DispatchEventResult.
- platform: core Platform and PlatformWindow traits plus WindowId,
  WindowBounds, WindowOptions, WindowParams, and ClipboardItem.
- window: Application, AnyWindowHandle, WindowHandle[V],
  Window::from_platform, dispatch_input, prevent_default, close/activation
  hooks, and replace_root_view while keeping standalone Window::new;
  closing a window releases its root view; hit-testing runs between
  prepaint and paint gated by pointer containment.
- platform/test: TestPlatform, TestWindow (recording Scenes and simulating
  frames, input, resize, scale factor, active/hover status, and close),
  TestAppContext, and VisualTestContext with automatic frame pumping and
  a runaway-redraw guard.
- Tests & example: platform tests, TestPlatform/VisualTestContext unit and
  panic-on-misuse tests, elements visual integration tests, and
  src/examples/card updated to run on TestAppContext/VisualTestContext.
- Docs: updated docs/PORTING.md and README.md.
2026-11-24 23:40:38 +00:00
-31
View File
@@ -1,31 +0,0 @@
name: CI
on:
pull_request:
push:
branches: [main]
workflow_dispatch:
jobs:
moon:
name: moon fmt, check, test
runs-on: depot-ubuntu-24.04-4
# bookworm: glibc >= 2.34 is needed to link moon native tests; the image also provides
# node for actions/checkout and the js backend, and cc for the native backend.
container: node:20-bookworm
steps:
- uses: actions/checkout@v4
- name: Install MoonBit CLI
run: |
curl -fsSL https://cli.moonbitlang.com/install/unix.sh | bash
echo "$HOME/.moon/bin" >> "$GITHUB_PATH"
- name: moon fmt --check, check, test
run: |
set -eu
moon version --all
moon update
moon fmt --check
moon check --target all
moon test --target all