Remove Cupertino fixture alternatives

Keep capture and probe tooling on the app's single Material surface by removing obsolete platform switches, hosts, and documentation. Preserve the existing Material routes and fixture behavior while retaining compatibility APIs outside this lane.
This commit is contained in:
2026-11-11 20:10:51 +00:00
parent 3f05421e8b
commit 69ae0519bd
10 changed files with 57 additions and 80 deletions
@@ -35,7 +35,7 @@ Map<String, String> fixtureParams() {
void installHostProbes(Map<String, String> params) {}
/// The route goes through [fixtureRouteProvider] instead.
void openFixtureRoute(String route, {required bool cupertino}) {}
void openFixtureRoute(String route) {}
/// An explicit loopback endpoint; nothing connects to it but artifact fetches.
ServerEndpoint fixtureServer(Map<String, String> params) =>
+2 -4
View File
@@ -17,13 +17,11 @@ void installHostProbes(Map<String, String> params) {
}
/// Moves the browser to [route] before the app reads its location.
void openFixtureRoute(String route, {required bool cupertino}) {
final platform = cupertino ? 'platform=cupertino' : '';
final joiner = route.contains('?') ? '&' : '?';
void openFixtureRoute(String route) {
web.window.history.replaceState(
null,
'',
platform.isEmpty ? route : '$route$joiner$platform',
route,
);
}