mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
[doc] Fix module_test_ios comments (#131470)
This commit is contained in:
parent
c05c3d3930
commit
fceaa005cd
@ -27,8 +27,8 @@ Future<void> main() async {
|
|||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
// this variable cannot be `late`, as we reference it in the `finally` block
|
// This variable cannot be `late`, as we reference it in the `finally` block
|
||||||
// which may execute before this field has been initialized
|
// which may execute before this field has been initialized.
|
||||||
String? simulatorDeviceId;
|
String? simulatorDeviceId;
|
||||||
section('Create Flutter module project');
|
section('Create Flutter module project');
|
||||||
|
|
||||||
@ -51,7 +51,7 @@ Future<void> main() async {
|
|||||||
final Directory flutterModuleLibSource = Directory(path.join(flutterDirectory.path, 'dev', 'integration_tests', 'ios_host_app', 'flutterapp', 'lib'));
|
final Directory flutterModuleLibSource = Directory(path.join(flutterDirectory.path, 'dev', 'integration_tests', 'ios_host_app', 'flutterapp', 'lib'));
|
||||||
final Directory flutterModuleLibDestination = Directory(path.join(projectDir.path, 'lib'));
|
final Directory flutterModuleLibDestination = Directory(path.join(projectDir.path, 'lib'));
|
||||||
|
|
||||||
// These test files don't have a .dart prefix so the analyzer will ignore them. They aren't in a
|
// These test files don't have a .dart extension so the analyzer will ignore them. They aren't in a
|
||||||
// package and don't work on their own outside of the test module just created.
|
// package and don't work on their own outside of the test module just created.
|
||||||
final File main = File(path.join(flutterModuleLibSource.path, 'main'));
|
final File main = File(path.join(flutterModuleLibSource.path, 'main'));
|
||||||
main.copySync(path.join(flutterModuleLibDestination.path, 'main.dart'));
|
main.copySync(path.join(flutterModuleLibDestination.path, 'main.dart'));
|
||||||
|
Loading…
Reference in New Issue
Block a user