Fixed several typos (#89485)

This commit is contained in:
Anis Alibegić
2021-09-07 23:56:04 +02:00
committed by GitHub
parent 2382b4c046
commit a753d09cc9
28 changed files with 39 additions and 39 deletions

View File

@@ -187,7 +187,7 @@ Return a list of all connected devices. The `params` field will be a List; each
`category` is a string description of the kind of workflow the device supports. The current categories are "mobile", "web" and "desktop", or null if none.
`platformType` is a string description of the platform sub-folder the device
supports. The current catgetories are "android", "ios", "linux", "macos",
supports. The current categories are "android", "ios", "linux", "macos",
"fuchsia", "windows", and "web". These are kept in sync with the response from `daemon.getSupportedPlatforms`.
`ephemeral` is a boolean which indicates where the device needs to be manually connected to a development machine. For example, a physical Android device is ephemeral, but the "web" device (that is always present) is not.

View File

@@ -43,7 +43,7 @@ class Config {
);
}
/// Similiar to the default config constructor, but with some different
/// Similar to the default config constructor, but with some different
/// behaviours:
/// - will not delete the config if it's not valid JSON
/// - will log but also rethrow any exceptions while loading the JSON, so

View File

@@ -328,8 +328,8 @@ class IosProject extends XcodeBasedProject {
if (fromPlist != null && fromPlist.contains(r'$')) {
final Map<String, String>? allBuildSettings = await buildSettingsForBuildInfo(buildInfo);
if (allBuildSettings != null) {
final String substituedVariable = substituteXcodeVariables(fromPlist, allBuildSettings);
if (substituedVariable == bundleIdentifier) {
final String substitutedVariable = substituteXcodeVariables(fromPlist, allBuildSettings);
if (substitutedVariable == bundleIdentifier) {
return true;
}
}

View File

@@ -102,7 +102,7 @@
]
},
"forwardPort": {
"description": "The command to be invoked to forward a specific device port to a port on the host device. The host port is available via ${hostPort} and the device port via ${devicePort}. On success, the command should stay running for the duration of the forwarding. The command will be terminated using SIGTERM when the forwarding should be stopped. When using ssh, make sure ssh quits when the forwarding fails since thats not the default behaviour.",
"description": "The command to be invoked to forward a specific device port to a port on the host device. The host port is available via ${hostPort} and the device port via ${devicePort}. On success, the command should stay running for the duration of the forwarding. The command will be terminated using SIGTERM when the forwarding should be stopped. When using ssh, make sure ssh quits when the forwarding fails since that's not the default behaviour.",
"type": ["array", "null"],
"items": {
"type": "string"

View File

@@ -77,7 +77,7 @@ void main() {
FileSystem: () => fileSystem,
});
testUsingContext('pub get skips example directory if it dooes not contain a pubspec.yaml', () async {
testUsingContext("pub get skips example directory if it doesn't contain a pubspec.yaml", () async {
fileSystem.currentDirectory.childFile('pubspec.yaml').createSync();
fileSystem.currentDirectory.childDirectory('example').createSync(recursive: true);

View File

@@ -829,7 +829,7 @@ void main() {
const int kUserMappedSectionOpened = 1224;
const int kUserPermissionDenied = 5;
testWithoutContext('when PackageProcess throws an exception containg non-executable bits', () {
testWithoutContext('when PackageProcess throws an exception containing non-executable bits', () {
final FakeProcessManager fakeProcessManager = FakeProcessManager.list(<FakeCommand>[
const FakeCommand(command: <String>['foo'], exception: ProcessPackageExecutableNotFoundException('', candidates: <String>['not-empty'])),
const FakeCommand(command: <String>['foo'], exception: ProcessPackageExecutableNotFoundException('', candidates: <String>['not-empty'])),

View File

@@ -187,7 +187,7 @@ void main() {
]);
});
testWithoutContext('encodeDartDefines encodes define values with base64 encoded compnents', () {
testWithoutContext('encodeDartDefines encodes define values with base64 encoded components', () {
expect(encodeDartDefines(<String>['"hello"']), 'ImhlbGxvIg==');
expect(encodeDartDefines(<String>['https://www.google.com']), 'aHR0cHM6Ly93d3cuZ29vZ2xlLmNvbQ==');
expect(encodeDartDefines(<String>['2,3,4', '5']), 'MiwzLDQ=,NQ==');

View File

@@ -597,7 +597,7 @@ void main() {
expect(testEnvironmentProfile.outputDir.childFile('.last_build_id').readAsStringSync(),
'c20b3747fb2aa148cc4fd39bfbbd894f');
// Verify debug output removeds
// Verify debug output removed
expect(fileSystem.file('output/debug'), isNot(exists));
expect(fileSystem.file('output/release'), exists);
});

View File

@@ -275,7 +275,7 @@ void main() {
expect(result.started, true);
});
testWithoutContext('Device logger captues all output', () async {
testWithoutContext('Device logger captures all output', () async {
final Completer<void> exitCompleter = Completer<void>();
final FakeProcessManager processManager = FakeProcessManager.list(<FakeCommand>[
FakeCommand(

View File

@@ -314,9 +314,9 @@ void main() {
expect(ce.title, 'IntelliJ IDEA Community Edition');
expect(ce.installPath, ceRandomLocation);
final IntelliJValidatorOnMac utlimate = validators.where((IntelliJValidatorOnMac validator) => validator.id == 'IntelliJIdea').single;
expect(utlimate.title, 'IntelliJ IDEA Ultimate Edition');
expect(utlimate.installPath, ultimateRandomLocation);
final IntelliJValidatorOnMac ultimate = validators.where((IntelliJValidatorOnMac validator) => validator.id == 'IntelliJIdea').single;
expect(ultimate.title, 'IntelliJ IDEA Ultimate Edition');
expect(ultimate.installPath, ultimateRandomLocation);
});
testWithoutContext('Intellij plugins path checking on mac', () async {

View File

@@ -26,7 +26,7 @@ void main() {
MacOSDesignedForIPadDevices.allowDiscovery = false;
});
testWithoutContext('does not support non-macOS plaforms', () async {
testWithoutContext('does not support non-macOS platforms', () async {
MacOSDesignedForIPadDevices.allowDiscovery = true;
final MacOSDesignedForIPadDevices discoverer = MacOSDesignedForIPadDevices(
platform: FakePlatform(operatingSystem: 'windows'),

View File

@@ -569,7 +569,7 @@ void main() {
expect((await response.read().toList()).first, source.readAsBytesSync());
}));
test('serves valid etag header for asset files with non-ascii chracters', () => testbed.run(() async {
test('serves valid etag header for asset files with non-ascii characters', () => testbed.run(() async {
globals.fs.file(globals.fs.path.join('build', 'flutter_assets', 'fooπ'))
..createSync(recursive: true)
..writeAsBytesSync(<int>[1, 2, 3]);

View File

@@ -13,14 +13,14 @@ import 'test_utils.dart';
void main() {
test('flutter build ios --config only updates generated xcconfig file without performing build', () async {
final String woringDirectory = fileSystem.path.join(getFlutterRoot(), 'examples', 'hello_world');
final String workingDirectory = fileSystem.path.join(getFlutterRoot(), 'examples', 'hello_world');
final String flutterBin = fileSystem.path.join(getFlutterRoot(), 'bin', 'flutter');
await processManager.run(<String>[
flutterBin,
...getLocalEngineArguments(),
'clean',
], workingDirectory: woringDirectory);
], workingDirectory: workingDirectory);
final ProcessResult result = await processManager.run(<String>[
flutterBin,
...getLocalEngineArguments(),
@@ -31,7 +31,7 @@ void main() {
'--obfuscate',
'--split-debug-info=info',
'--no-codesign',
], workingDirectory: woringDirectory);
], workingDirectory: workingDirectory);
print(result.stdout);
print(result.stderr);
@@ -39,7 +39,7 @@ void main() {
expect(result.exitCode, 0);
final File generatedConfig = fileSystem.file(
fileSystem.path.join(woringDirectory, 'ios', 'Flutter', 'Generated.xcconfig'));
fileSystem.path.join(workingDirectory, 'ios', 'Flutter', 'Generated.xcconfig'));
// Config is updated if command succeeded.
expect(generatedConfig, exists);
@@ -47,7 +47,7 @@ void main() {
// file that only exists if app was fully built.
final File frameworkPlist = fileSystem.file(
fileSystem.path.join(woringDirectory, 'build', 'ios', 'iphoneos', 'Runner.app', 'AppFrameworkInfo.plist'));
fileSystem.path.join(workingDirectory, 'build', 'ios', 'iphoneos', 'Runner.app', 'AppFrameworkInfo.plist'));
expect(frameworkPlist, isNot(exists));
}, skip: !platform.isMacOS); // [intended] iOS builds only work on macos.