Fixed typos (#159331)
Here's another one of my PRs where I hunt for typos across `flutter` repo. ## Pre-launch Checklist - [x] I read the [Contributor Guide] and followed the process outlined there for submitting PRs. - [x] I read the [Tree Hygiene] wiki page, which explains my responsibilities. - [x] I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement]. - [x] I signed the [CLA]. - [ ] I listed at least one issue that this PR fixes in the description above. - [ ] I updated/added relevant documentation (doc comments with `///`). - [ ] I added new tests to check the change I am making, or this PR is [test-exempt]. - [x] All existing and new tests are passing. <!-- Links --> [Contributor Guide]: https://github.com/flutter/flutter/wiki/Tree-hygiene#overview [Tree Hygiene]: https://github.com/flutter/flutter/wiki/Tree-hygiene [test-exempt]: https://github.com/flutter/flutter/wiki/Tree-hygiene#tests [Flutter Style Guide]: https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo [Features we expect every widget to implement]: https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo#features-we-expect-every-widget-to-implement [CLA]: https://cla.developers.google.com/ [flutter/tests]: https://github.com/flutter/tests [breaking change policy]: https://github.com/flutter/flutter/wiki/Tree-hygiene#handling-breaking-changes [Discord]: https://github.com/flutter/flutter/wiki/Chat
This commit is contained in:
@@ -11,7 +11,7 @@ import 'package:process/process.dart';
|
||||
/// A minimal wrapper around the `adb` command-line tool.
|
||||
@internal
|
||||
class Adb {
|
||||
const Adb._(this._prefixArgs, this._proccess);
|
||||
const Adb._(this._prefixArgs, this._process);
|
||||
|
||||
/// Creates a new `adb` command runner that uses the `adb` command-line tool.
|
||||
///
|
||||
@@ -41,7 +41,7 @@ class Adb {
|
||||
}
|
||||
|
||||
Future<AdbStringResult> _runString(List<String> args) async {
|
||||
final io.ProcessResult result = await _proccess.run(
|
||||
final io.ProcessResult result = await _process.run(
|
||||
<String>[
|
||||
..._prefixArgs,
|
||||
...args,
|
||||
@@ -55,7 +55,7 @@ class Adb {
|
||||
}
|
||||
|
||||
Future<AdbBinaryResult> _runBinary(List<String> args) async {
|
||||
final io.ProcessResult result = await _proccess.run(
|
||||
final io.ProcessResult result = await _process.run(
|
||||
<String>[
|
||||
..._prefixArgs,
|
||||
...args,
|
||||
@@ -70,7 +70,7 @@ class Adb {
|
||||
}
|
||||
|
||||
final List<String> _prefixArgs;
|
||||
final ProcessManager _proccess;
|
||||
final ProcessManager _process;
|
||||
|
||||
/// Returns whether the device is currently connected.
|
||||
///
|
||||
@@ -161,7 +161,7 @@ class Adb {
|
||||
}
|
||||
}
|
||||
|
||||
/// Disable confirnations for immersive mode.
|
||||
/// Disable confirmations for immersive mode.
|
||||
Future<void> disableImmersiveModeConfirmations() async {
|
||||
final AdbStringResult result = await _runString(<String>[
|
||||
'shell',
|
||||
|
||||
@@ -86,7 +86,7 @@ final class AndroidNativeDriver implements NativeDriver {
|
||||
|
||||
@override
|
||||
Future<NativeScreenshot> screenshot() async {
|
||||
// Indentical wait to what `FlutterDriver.screenshot` does.
|
||||
// Identical wait to what `FlutterDriver.screenshot` does.
|
||||
await _waitFor2s();
|
||||
return _AdbScreencap(await _adb.screencap(), _tmpDir);
|
||||
}
|
||||
|
||||
@@ -62,7 +62,7 @@ final class NativeResult extends Result {
|
||||
Map<String, dynamic> toJson() => const <String, Object?>{};
|
||||
}
|
||||
|
||||
/// An object that descrbes searching for _native_ elements.
|
||||
/// An object that describes searching for _native_ elements.
|
||||
sealed class NativeFinder {
|
||||
const NativeFinder();
|
||||
|
||||
|
||||
@@ -136,7 +136,7 @@ final class NaiveLocalFileComparator extends GoldenFileComparator {
|
||||
// late NativeDriver nativeDriver;
|
||||
|
||||
/// Asserts that a [NativeScreenshot], [Future<NativeScreenshot>], or
|
||||
/// [List<int>] matches the golden image file indentified by [key], with an
|
||||
/// [List<int>] matches the golden image file identified by [key], with an
|
||||
/// optional [version] number].
|
||||
///
|
||||
/// The [key] may be either a [Uri] or a [String] representation of a URL.
|
||||
@@ -151,7 +151,7 @@ final class NaiveLocalFileComparator extends GoldenFileComparator {
|
||||
/// ## Golden File Testing
|
||||
///
|
||||
/// The term __golden file__ refers to a master image that is considered the
|
||||
/// true renmdering of a given widget, state, application, or other visual
|
||||
/// true rendering of a given widget, state, application, or other visual
|
||||
/// representation you have chosen to capture.
|
||||
///
|
||||
/// The master golden image files are tested against can be created or updated
|
||||
|
||||
Reference in New Issue
Block a user