Fixed large amount of spelling errors (#83744)

This commit is contained in:
Anis Alibegić
2021-06-02 19:14:06 +02:00
committed by GitHub
parent 9a243a1213
commit c99ed373b3
124 changed files with 223 additions and 220 deletions

View File

@@ -160,7 +160,7 @@ void main() {
'time',
],
completer: Completer<void>.sync(),
// Example stack trace from an incorrectly named application:name in the AndroidManfiest.xml
// Example stack trace from an incorrectly named application:name in the AndroidManifest.xml
stdout:
'$kDummyLine'
'05-11 12:54:46.665 E/AndroidRuntime(11787): FATAL EXCEPTION: main\n'

View File

@@ -143,7 +143,7 @@ void main() {
await forwarder.unforward(ForwardedPort(456, 23));
});
testWithoutContext('failures to unforward port print error but are non-fatral', () async {
testWithoutContext('failures to unforward port print error but are non-fatal', () async {
final FakeProcessManager processManager = FakeProcessManager.list(<FakeCommand>[
const FakeCommand(
command: <String>['adb', '-s', '1', 'forward', '--remove', 'tcp:456'],

View File

@@ -145,13 +145,13 @@ void main() {
});
testWithoutContext('succeeds with coldboot launch', () async {
final List<String> kEmulatorLauchColdBootCommand = <String>[
final List<String> kEmulatorLaunchColdBootCommand = <String>[
...kEmulatorLaunchCommand,
'-no-snapshot-load'
];
final AndroidEmulator emulator = AndroidEmulator(emulatorID,
processManager: FakeProcessManager.list(<FakeCommand>[
FakeCommand(command: kEmulatorLauchColdBootCommand),
FakeCommand(command: kEmulatorLaunchColdBootCommand),
]),
androidSdk: mockSdk,
logger: BufferLogger.test(),

View File

@@ -367,7 +367,7 @@ Review licenses that have not been accepted (y/N)?
);
// Test with valid SDK and valid build tools
// Will still be partial because AnroidSdk.findJavaBinary is static :(
// Will still be partial because AndroidSdk.findJavaBinary is static :(
sdkVersion.sdkLevel = kAndroidSdkMinVersion;
sdkVersion.buildToolsVersion = kAndroidSdkBuildToolsMinVersion;

View File

@@ -68,11 +68,11 @@ void main() {
expect(io.ProcessSignal.sigint.toString(), ProcessSignal.sigint.toString());
});
testWithoutContext('exit throws a StateError if called without being overriden', () {
testWithoutContext('exit throws a StateError if called without being overridden', () {
expect(() => exit(0), throwsAssertionError);
});
testWithoutContext('exit does not throw a StateError if overriden', () {
testWithoutContext('exit does not throw a StateError if overridden', () {
try {
setExitFunctionForTests((int value) {});

View File

@@ -227,7 +227,7 @@ void main() {
testWithoutContext('Automatically cleans old outputs when build graph changes', () async {
final BuildSystem buildSystem = setUpBuildSystem(fileSystem);
final TestTarget testTarget = TestTarget((Environment envionment) async {
final TestTarget testTarget = TestTarget((Environment environment) async {
environment.buildDir.childFile('foo.out').createSync();
})
..inputs = const <Source>[Source.pattern('{PROJECT_DIR}/foo.dart')]
@@ -238,7 +238,7 @@ void main() {
expect(environment.buildDir.childFile('foo.out'), exists);
final TestTarget testTarget2 = TestTarget((Environment envionment) async {
final TestTarget testTarget2 = TestTarget((Environment environment) async {
environment.buildDir.childFile('bar.out').createSync();
})
..inputs = const <Source>[Source.pattern('{PROJECT_DIR}/foo.dart')]
@@ -250,7 +250,7 @@ void main() {
expect(environment.buildDir.childFile('foo.out'), isNot(exists));
});
testWithoutContext('Does not crash when filesytem and cache are out of sync', () async {
testWithoutContext('Does not crash when filesystem and cache are out of sync', () async {
final BuildSystem buildSystem = setUpBuildSystem(fileSystem);
final TestTarget testWithoutContextTarget = TestTarget((Environment environment) async {
environment.buildDir.childFile('foo.out').createSync();
@@ -278,7 +278,7 @@ void main() {
testWithoutContext('Reruns build if stamp is corrupted', () async {
final BuildSystem buildSystem = setUpBuildSystem(fileSystem);
final TestTarget testWithoutContextTarget = TestTarget((Environment envionment) async {
final TestTarget testWithoutContextTarget = TestTarget((Environment environment) async {
environment.buildDir.childFile('foo.out').createSync();
})
..inputs = const <Source>[Source.pattern('{PROJECT_DIR}/foo.dart')]
@@ -566,7 +566,7 @@ void main() {
logger: BufferLogger.test(),
fileSystem: fileSystem,
);
final Environment testEnvironmentProfle = Environment.test(
final Environment testEnvironmentProfile = Environment.test(
fileSystem.currentDirectory,
outputDir: fileSystem.directory('output'),
defines: <String, String>{
@@ -590,11 +590,11 @@ void main() {
// Verify debug output was created
expect(fileSystem.file('output/debug'), exists);
await buildSystem.build(releaseTarget, testEnvironmentProfle);
await buildSystem.build(releaseTarget, testEnvironmentProfile);
// Last build config is updated properly
expect(testEnvironmentProfle.outputDir.childFile('.last_build_id'), exists);
expect(testEnvironmentProfle.outputDir.childFile('.last_build_id').readAsStringSync(),
expect(testEnvironmentProfile.outputDir.childFile('.last_build_id'), exists);
expect(testEnvironmentProfile.outputDir.childFile('.last_build_id').readAsStringSync(),
'c20b3747fb2aa148cc4fd39bfbbd894f');
// Verify debug output removeds

View File

@@ -35,7 +35,7 @@ void main() {
artifacts = Artifacts.test();
});
testWithoutContext('Android AOT targets has analyicsName', () {
testWithoutContext('Android AOT targets has analyticsName', () {
expect(androidArmProfile.analyticsName, 'android_aot');
});

View File

@@ -161,7 +161,7 @@ void main() {
);
expect(nextInvalidationResult.uris, contains(Uri.parse('.packages')));
// The PackagConfig should have been recreated too
// The PackageConfig should have been recreated too
expect(nextInvalidationResult.packageConfig,
isNot(invalidationResult.packageConfig));
});

View File

@@ -156,7 +156,7 @@ void main() {
OutputPreferences: () => OutputPreferences.test(),
});
testUsingContext('Doesnt crash on invalid .packages file', () async {
testUsingContext("Doesn't crash on invalid .packages file", () async {
final FlutterCommandRunner runner = createTestCommandRunner(DummyFlutterCommand()) as FlutterCommandRunner;
fileSystem.file('pubspec.yaml').createSync();
fileSystem.file('.packages')

View File

@@ -82,7 +82,7 @@ void main() {
}), throwsStateError);
});
test('Doesnt throw a StateError if Timer is left cleaned up', () async {
test("Doesn't throw a StateError if Timer is left cleaned up", () async {
final Testbed testbed = Testbed();
await testbed.run(() async {

View File

@@ -134,7 +134,7 @@ void main() {
cacheDir: fileSystem.currentDirectory,
);
// Create cache dir that the Chrome launcher will atttempt to persist, and a file
// Create cache dir that the Chrome launcher will attempt to persist, and a file
// that will thrown an exception when it is read.
const String directoryPrefix = '/.tmp_rand0/flutter_tools_chrome_device.rand0/Default';
fileSystem.directory('$directoryPrefix/Local Storage')
@@ -187,7 +187,7 @@ void main() {
cacheDir: fileSystem.currentDirectory,
);
// Create cache dir that the Chrome launcher will atttempt to persist.
// Create cache dir that the Chrome launcher will attempt to persist.
fileSystem.directory('/.tmp_rand0/flutter_tools_chrome_device.rand0/Default/Local Storage')
.createSync(recursive: true);

View File

@@ -30,13 +30,13 @@ void main() {
final FlutterRunTestDriver flutter = FlutterRunTestDriver(tempDir);
const String newBackgroundMessage = 'New Background';
final Completer<void> sawForgroundMessage = Completer<void>.sync();
final Completer<void> sawForegroundMessage = Completer<void>.sync();
final Completer<void> sawBackgroundMessage = Completer<void>.sync();
final Completer<void> sawNewBackgroundMessage = Completer<void>.sync();
final StreamSubscription<String> subscription = flutter.stdout.listen((String line) {
print('[LOG]:"$line"');
if (line.contains('Main thread') && !sawForgroundMessage.isCompleted) {
sawForgroundMessage.complete();
if (line.contains('Main thread') && !sawForegroundMessage.isCompleted) {
sawForegroundMessage.complete();
}
if (line.contains('Isolate thread')) {
sawBackgroundMessage.complete();
@@ -47,7 +47,7 @@ void main() {
},
);
await flutter.run();
await sawForgroundMessage.future;
await sawForegroundMessage.future;
await sawBackgroundMessage.future;
project.updateTestIsolatePhrase(newBackgroundMessage);

View File

@@ -35,7 +35,7 @@ const Map<String, String> localEngineDebugBuildModeRelease = <String, String>{
};
// Can't use a debug build with a profile engine.
const Map<String, String> localEngineProfileBuildeModeRelease = <String, String>{
const Map<String, String> localEngineProfileBuildModeRelease = <String, String>{
'SOURCE_ROOT': '../examples/hello_world',
'FLUTTER_ROOT': '../..',
'LOCAL_ENGINE': '/engine/src/out/ios_profile',
@@ -71,7 +71,7 @@ void main() {
await expectXcodeBackendFails(unknownConfiguration);
await expectXcodeBackendFails(unknownFlutterBuildMode);
await expectXcodeBackendFails(localEngineDebugBuildModeRelease);
await expectXcodeBackendFails(localEngineProfileBuildeModeRelease);
await expectXcodeBackendFails(localEngineProfileBuildModeRelease);
}, skip: !io.Platform.isMacOS);
test('Xcode backend warns archiving a non-release build.', () async {

View File

@@ -50,7 +50,7 @@ final Map<Type, Generator> _testbedDefaults = <Type, Generator>{
/// Manages interaction with the tool injection and runner system.
///
/// The Testbed automatically injects reasonable defaults through the context
/// DI system such as a [BufferLogger] and a [MemoryFileSytem].
/// DI system such as a [BufferLogger] and a [MemoryFileSystem].
///
/// Example:
///