Files
swiftcontrol/test/widgets/debug_text_renderer_test.dart
Jonas Acker 849758201a fix(macos): run Skia instead of Impeller on Intel Macs
Impeller garbles text on some Intel Macs. Info.plist is shared between
the two slices of the universal app, so the x86_64 slice answers the
engine's FLTEnableImpeller lookup itself; arm64 stays on Impeller.

Support bundles now name the active renderer and CPU architecture.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 09:09:20 +01:00

16 lines
584 B
Dart

import 'dart:ffi' show Abi;
import 'package:bike_control/widgets/menu.dart';
import 'package:flutter_test/flutter_test.dart';
void main() {
test('the support bundle names the active renderer and CPU architecture', () async {
debugDiagnosticsGatherOverride = ({bool includeDiscovery = true}) => Future.error(StateError('not under test'));
addTearDown(() => debugDiagnosticsGatherOverride = null);
final text = await debugText(includeDiscovery: false);
expect(text, matches(RegExp('^Renderer: (Impeller|Skia) \\(${Abi.current()}\\)\$', multiLine: true)));
});
}