Fix typos (#121171)
* Fix typos * lowercase animated & opacity * Undo typo fix --------- Co-authored-by: Michael Goderbauer <goderbauer@google.com>
This commit is contained in:
@@ -1120,7 +1120,7 @@ void main() {
|
||||
expect(
|
||||
logger.statusText,
|
||||
contains(
|
||||
'Successfully resetted the custom devices config file and created a '
|
||||
'Successfully reset the custom devices config file and created a '
|
||||
'backup at "/.flutter_custom_devices.json.bak".'
|
||||
)
|
||||
);
|
||||
@@ -1152,7 +1152,7 @@ void main() {
|
||||
expect(
|
||||
logger.statusText,
|
||||
contains(
|
||||
'Successfully resetted the custom devices config file.'
|
||||
'Successfully reset the custom devices config file.'
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
@@ -605,7 +605,7 @@ class NeverEndingFlutterDriverFactory extends Fake implements FlutterDriverFacto
|
||||
|
||||
/// A [DriverService] that will return a Future from [startTest] that will never complete.
|
||||
///
|
||||
/// This is to similate when the test will take a long time, but a signal is
|
||||
/// This is to simulate when the test will take a long time, but a signal is
|
||||
/// expected to interrupt the process.
|
||||
class NeverEndingDriverService extends Fake implements DriverService {
|
||||
NeverEndingDriverService(this.callback);
|
||||
|
||||
@@ -1663,7 +1663,7 @@ void main() {
|
||||
expect(LineSplitter.split(metadata), contains('project_type: app'));
|
||||
});
|
||||
|
||||
testUsingContext('can re-gen default template over existing app project with no metadta and detect the type', () async {
|
||||
testUsingContext('can re-gen default template over existing app project with no metadata and detect the type', () async {
|
||||
Cache.flutterRoot = '../..';
|
||||
|
||||
final CreateCommand command = CreateCommand();
|
||||
|
||||
@@ -65,7 +65,7 @@ void main() {
|
||||
buildGradleTemplate.createSync(recursive: true);
|
||||
androidManifestTemplate.createSync(recursive: true);
|
||||
buildGradleTemplate.writeAsStringSync('fake build.gradle template {{componentName}}', flush: true, mode: FileMode.append);
|
||||
androidManifestTemplate.writeAsStringSync('fake AndroidManigest.xml template {{componentName}}', flush: true, mode: FileMode.append);
|
||||
androidManifestTemplate.writeAsStringSync('fake AndroidManifest.xml template {{componentName}}', flush: true, mode: FileMode.append);
|
||||
|
||||
final DeferredComponentsPrebuildValidator validator = DeferredComponentsPrebuildValidator(
|
||||
projectDir,
|
||||
@@ -107,7 +107,7 @@ void main() {
|
||||
buildGradleTemplate.createSync(recursive: true);
|
||||
androidManifestTemplate.createSync(recursive: true);
|
||||
buildGradleTemplate.writeAsStringSync('fake build.gradle template {{componentName}}', flush: true, mode: FileMode.append);
|
||||
androidManifestTemplate.writeAsStringSync('fake AndroidManigest.xml template {{componentName}}', flush: true, mode: FileMode.append);
|
||||
androidManifestTemplate.writeAsStringSync('fake AndroidManifest.xml template {{componentName}}', flush: true, mode: FileMode.append);
|
||||
|
||||
final DeferredComponentsPrebuildValidator validator = DeferredComponentsPrebuildValidator(
|
||||
projectDir,
|
||||
@@ -149,7 +149,7 @@ void main() {
|
||||
buildGradleTemplate.createSync(recursive: true);
|
||||
androidManifestTemplate.createSync(recursive: true);
|
||||
buildGradleTemplate.writeAsStringSync('fake build.gradle template {{componentName}}', flush: true, mode: FileMode.append);
|
||||
androidManifestTemplate.writeAsStringSync('fake AndroidManigest.xml template {{componentName}}', flush: true, mode: FileMode.append);
|
||||
androidManifestTemplate.writeAsStringSync('fake AndroidManifest.xml template {{componentName}}', flush: true, mode: FileMode.append);
|
||||
|
||||
final DeferredComponentsPrebuildValidator validator = DeferredComponentsPrebuildValidator(
|
||||
projectDir,
|
||||
|
||||
@@ -105,7 +105,7 @@ C:\\a.txt: C:\\b.txt
|
||||
});
|
||||
|
||||
|
||||
testWithoutContext('Resillient to weird whitespace', () {
|
||||
testWithoutContext('Resilient to weird whitespace', () {
|
||||
final File depfileSource = fileSystem.file('example.d')..writeAsStringSync(r'''
|
||||
a.txt
|
||||
: b.txt c.txt
|
||||
@@ -118,7 +118,7 @@ a.txt
|
||||
expect(depfile.outputs.single.path, 'a.txt');
|
||||
});
|
||||
|
||||
testWithoutContext('Resillient to duplicate files', () {
|
||||
testWithoutContext('Resilient to duplicate files', () {
|
||||
final File depfileSource = fileSystem.file('example.d')..writeAsStringSync(r'''
|
||||
a.txt: b.txt b.txt
|
||||
''');
|
||||
@@ -128,7 +128,7 @@ a.txt: b.txt b.txt
|
||||
expect(depfile.outputs.single.path, 'a.txt');
|
||||
});
|
||||
|
||||
testWithoutContext('Resillient to malformed file, missing :', () {
|
||||
testWithoutContext('Resilient to malformed file, missing :', () {
|
||||
final File depfileSource = fileSystem.file('example.d')..writeAsStringSync(r'''
|
||||
a.text b.txt
|
||||
''');
|
||||
|
||||
@@ -327,7 +327,7 @@ void main() {
|
||||
expect(fileSystem.file('/.tmp_rand0/0.8255140718871702.temp'), isNot(exists));
|
||||
});
|
||||
|
||||
testWithoutContext('DevelopmentShaderCompiler can compile JSON for web targts', () async {
|
||||
testWithoutContext('DevelopmentShaderCompiler can compile JSON for web targets', () async {
|
||||
final FakeProcessManager processManager = FakeProcessManager.list(<FakeCommand>[
|
||||
FakeCommand(
|
||||
command: <String>[
|
||||
|
||||
@@ -78,7 +78,7 @@ class MockFlutterDebugAdapter extends FlutterDebugAdapter {
|
||||
/// A list of all messages sent from the adapter to the `flutter run` processes `stdin`.
|
||||
final List<Map<String, Object?>> dapToFlutterMessages = <Map<String, Object?>>[];
|
||||
|
||||
/// The `method`s of all mesages sent to the `flutter run` processes `stdin`
|
||||
/// The `method`s of all messages sent to the `flutter run` processes `stdin`
|
||||
/// by the debug adapter.
|
||||
List<String> get dapToFlutterRequests => dapToFlutterMessages
|
||||
.map((Map<String, Object?> message) => message['method'] as String?)
|
||||
|
||||
@@ -144,7 +144,7 @@ migration:
|
||||
expect(projectMetadata.projectType, FlutterProjectType.app);
|
||||
expect(projectMetadata.migrateConfig.platformConfigs[SupportedPlatform.root]?.createRevision, 'abcdefg');
|
||||
expect(projectMetadata.migrateConfig.platformConfigs[SupportedPlatform.root]?.baseRevision, 'baserevision');
|
||||
// Tool uses default unamanged files list when malformed.
|
||||
// Tool uses default unmanaged files list when malformed.
|
||||
expect(projectMetadata.migrateConfig.unmanagedFiles[0], 'lib/main.dart');
|
||||
|
||||
expect(logger.traceText, contains('The value of key `unmanaged_files` in .metadata was expected to be YamlList but was YamlMap'));
|
||||
|
||||
@@ -2193,7 +2193,7 @@ import 'output-localization-file_en.dart' deferred as output-localization-file_e
|
||||
});
|
||||
|
||||
group('select messages', () {
|
||||
testWithoutContext('should auotmatically infer select placeholders that are not explicitly defined', () {
|
||||
testWithoutContext('should automatically infer select placeholders that are not explicitly defined', () {
|
||||
const String selectMessageWithoutPlaceholdersAttribute = '''
|
||||
{
|
||||
"genderSelect": "{gender, select, female {She} male {He} other {they} }",
|
||||
|
||||
@@ -21,7 +21,7 @@ void main() {
|
||||
|
||||
// Full chunk.
|
||||
controller.add(Uint8List.fromList(<int>[1, 2, 3, 4]));
|
||||
// Multiple of full chunks, on chunk bounraries.
|
||||
// Multiple of full chunks, on chunk boundaries.
|
||||
controller.add(Uint8List.fromList(<int>[5, 6, 7, 8, 9, 10, 11, 12]));
|
||||
// Larger than one chunk, starts on chunk boundary, ends not on chunk boundary.
|
||||
controller.add(Uint8List.fromList(<int>[13, 14, 15, 16, 17, 18]));
|
||||
|
||||
@@ -107,7 +107,7 @@ void main() {
|
||||
tryToDelete(tempDir);
|
||||
});
|
||||
|
||||
testUsingContext('analyze --suggesions --machine produces expected values', () async {
|
||||
testUsingContext('analyze --suggestions --machine produces expected values', () async {
|
||||
final ProcessResult result = await globals.processManager.run(<String>['flutter', 'analyze', '--suggestions', '--machine'], workingDirectory: tempDir.childDirectory('test_project').path);
|
||||
|
||||
expect(result.stdout is String, true);
|
||||
|
||||
@@ -13,7 +13,7 @@ import 'test_utils.dart';
|
||||
// TODO(egarciad): Migrate existing files, https://github.com/flutter/flutter/issues/54566
|
||||
void main() {
|
||||
test('android project using deprecated settings.gradle will still build', () async {
|
||||
final String woringDirectory = fileSystem.path.join(getFlutterRoot(), 'dev', 'integration_tests', 'gradle_deprecated_settings');
|
||||
final String workingDirectory = fileSystem.path.join(getFlutterRoot(), 'dev', 'integration_tests', 'gradle_deprecated_settings');
|
||||
final String flutterBin = fileSystem.path.join(getFlutterRoot(), 'bin', 'flutter');
|
||||
|
||||
final ProcessResult result = await processManager.run(<String>[
|
||||
@@ -23,7 +23,7 @@ void main() {
|
||||
'--debug',
|
||||
'--target-platform', 'android-arm',
|
||||
'--verbose',
|
||||
], workingDirectory: woringDirectory);
|
||||
], workingDirectory: workingDirectory);
|
||||
|
||||
printOnFailure('Output of flutter build apk:');
|
||||
printOnFailure(result.stdout.toString());
|
||||
@@ -32,7 +32,7 @@ void main() {
|
||||
expect(result.exitCode, 0);
|
||||
|
||||
final String apkPath = fileSystem.path.join(
|
||||
woringDirectory, 'build', 'app', 'outputs', 'flutter-apk', 'app-debug.apk');
|
||||
workingDirectory, 'build', 'app', 'outputs', 'flutter-apk', 'app-debug.apk');
|
||||
expect(fileSystem.file(apkPath), exists);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user