Commit Graph
4 Commits
Author SHA1 Message Date
dotCooCoo a979d25cc6 platform: the portal and dialog lifecycle tests wait on the worker's messages instead of on time
`drop_does_not_wait_for_a_synchronously_blocked_source` passed only when the watcher drop returned
within 1 s, so a slow runner could fail it. The source now stays blocked until the test releases it,
so a drop that waits for it never returns. The test waits for the drop under
`craft_testkit::deadline::with_deadline`, which fails only a drop that hangs. The file's other waits
on the source (its start, its shared state, its publishing and its exit) use the same guard in place
of 2 s timeouts.

`completion_between_pumps_cannot_reject_a_chained_request` spun on `yield_now` against 3 s
deadlines until the service settled. Its wake callback now sends on a channel, and the test pumps
once after each wake: the request's, the worker's ready signal and the picker's answer. The whole
test runs under one `with_deadline` hang guard. Every assertion is kept.

craft-platform takes craft-testkit as a dev-dependency.
2026-11-27 17:04:41 -08:00
aiongg e59460135e Base crates on the framework: theme, behaviour, keymap, platform, window, settings, i18n, fonts 2026-11-12 14:09:48 +00:00
skylar taylor-barrick b1401e33b1 Share browser download resource ownership (#226)
Add opt-in browser download helpers that own detached links and object URLs, clean up failed or abandoned preparation, and register delayed URL cleanup before issuing a click. Applications retain filename, MIME type, pacing, and user-activation policy.

Include browser lifecycle and failure-path tests, public API documentation, and Sonar test-source classification. All 32 PR checks passed; targeted WASM Clippy and formatting passed in local validation.
2026-10-22 20:49:41 +02:00
skylar taylor-barrickandskylartaylor b9c1a1105e Add craft-platform with shared native dialog lifecycle helpers (#224)
* platform: add native dialog lifecycle services

* Document dialog outcomes and lifecycle contracts

---------

Co-authored-by: skylartaylor <skylartaylor@users.noreply.github.com>
2026-10-22 10:13:08 -04:00