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:
@@ -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) =>
|
||||
|
||||
@@ -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,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user