mirror of
https://github.com/jonasbark/swiftcontrol.git
synced 2026-11-29 17:21:45 +01:00
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>
16 lines
584 B
Dart
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)));
|
|
});
|
|
}
|