3 Commits

Author SHA1 Message Date
cb67697ad0 Two quick helpers for testing statics (#634)
Not great, but better than we have.
2025-01-07 21:17:34 +00:00
069d96909a Create Mosaic.layoutId, unit tests for ParentDataModifier and fix for Modifiers (#620)
* Create `Mosaic.layoutId`, unit tests for `ParentDataModifier` and fix for `Modifier`s

- New `Mosaic.layoutId` has been created that can be used to define child elements, for example, during the measurement stage
- Add unit tests for `Mosaic.layoutId`
- Add unit tests for `ParentDataModifier`
- Fix the handling of `Modifier`s that were inherited from several key `Modifier` classes (`LayoutModifier`, `DrawModifier`, `KeyModifier`, `ParentDataModifier`) with different handling
- Remove unnecessary call site generic parameter in `RealTestMosaic` and replace `coroutineScope` with getting `CoroutineContext` by `currentCoroutineContext()` function in `runMosaicTest`.

* Update CHANGELOG.md

* Rename

---------

Co-authored-by: Jake Wharton <github@jakewharton.com>
Co-authored-by: Jake Wharton <jw@squareup.com>
2025-01-05 05:27:05 +00:00
321290f5c1 Create mosaic-testing module (#528) 2025-01-03 21:55:32 +00:00