|
|
88996e1abd
|
test(map): add comprehensive integration tests for NigigMapView
repo hygiene / hygiene (push) Has been cancelled
nigig-map / test (push) Has been cancelled
Added 60+ integration tests covering:
- Widget initialization and default state
- Theme compilation and switching (light/dark)
- Tile scheduling and key generation
- Overlay state management (markers, routes, puck)
- Viewport calculations (zoom limits, center normalization, wrap-around)
- Event handling logic (zoom delta, pan delta, pinch zoom)
- Coordinate conversions (lon/lat to tile coords and back)
- Performance benchmarks (tile loading, overlay rendering)
- Error handling (invalid coords, empty routes)
- Accessibility (keyboard navigation, focus management)
- Offline mode (MBTiles path validation)
- Complete user journey scenarios
- Multi-touch gestures
- Search and navigation workflows
These tests complement the existing 111 UI tests in ui.rs by testing
the internal logic and state management of NigigMapView at a lower level,
without requiring a full Makepad UI runtime.
Total test coverage for view.rs: 111 UI tests + 60+ integration tests = 170+ tests
|
2026-08-16 19:00:45 +00:00 |
|