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.
This commit is contained in:
1 parent
fbe4c081e6
commit
b388a70aa7
25 files changed
+3592
-83
No files matched your search
@@ -5,6 +5,7 @@ import {
|
||||
"experiments/gpui/app",
|
||||
"experiments/gpui/window",
|
||||
"experiments/gpui/elements",
|
||||
"experiments/gpui/platform/test" @test_platform,
|
||||
}
|
||||
|
||||
pkgtype(kind: "executable")
|
||||
|
||||
Reference in new issue
Block a user