Fixed several typos (#89485)
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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'])),
|
||||
|
||||
@@ -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==');
|
||||
|
||||
@@ -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);
|
||||
});
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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'),
|
||||
|
||||
@@ -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]);
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user