makepad/examples/map/tests/ui.rs
Admin 2165671686 map: adaptive Chaikin (fix roads curving through buildings), square force-close
- overzoom smoothing regression: uniform Chaikin also cut real 90-degree
  street corners, rounding roads through building blocks and detaching
  them from their bridges. Now only vertices with BOTH adjacent segments
  under ~10 screen px get cut (dense tile-quantized curves); sparse
  vertices are genuine corners and stay sharp
- pedestrian squares: area=yes semantically means polygon — close the
  ring unconditionally (tile clipping can leave LineString rings open)
- examples/map: headless UI smoke test (makepad_test) + local data
  symlink so the in-process hub run finds local/maps

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-28 09:24:03 +02:00

10 lines
392 B
Rust

use makepad_test::{makepad_test, Selector, TestApp};
#[makepad_test]
fn map_renders_smoke(app: TestApp) {
app.locator(Selector::id("status_label")).wait_visible();
// Tiles + detail merge need a moment; the screenshot is the artifact.
std::thread::sleep(std::time::Duration::from_secs(14));
let path = app.screenshot();
eprintln!("MAP_SCREENSHOT: {}", path.display());
}