[flutter_tools] explicitly enable macos-desktop in macos_content_validation_test.dart (#102009)
This commit is contained in:
committed by
GitHub
parent
22630de161
commit
f1e4018b58
@@ -13,8 +13,23 @@ import '../src/common.dart';
|
||||
import '../src/darwin_common.dart';
|
||||
|
||||
void main() {
|
||||
final String flutterBin = fileSystem.path.join(
|
||||
getFlutterRoot(),
|
||||
'bin',
|
||||
'flutter',
|
||||
);
|
||||
|
||||
setUpAll(() {
|
||||
processManager.runSync(<String>[
|
||||
flutterBin,
|
||||
'config',
|
||||
'--enable-macos-desktop',
|
||||
]);
|
||||
});
|
||||
|
||||
for (final String buildMode in <String>['Debug', 'Release']) {
|
||||
final String buildModeLower = buildMode.toLowerCase();
|
||||
|
||||
test('flutter build macos --$buildModeLower builds a valid app', () {
|
||||
final String workingDirectory = fileSystem.path.join(
|
||||
getFlutterRoot(),
|
||||
@@ -22,11 +37,6 @@ void main() {
|
||||
'integration_tests',
|
||||
'flutter_gallery',
|
||||
);
|
||||
final String flutterBin = fileSystem.path.join(
|
||||
getFlutterRoot(),
|
||||
'bin',
|
||||
'flutter',
|
||||
);
|
||||
|
||||
processManager.runSync(<String>[
|
||||
flutterBin,
|
||||
|
||||
Reference in New Issue
Block a user