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:
Anis Alibegić
2024-12-05 17:54:09 +01:00
committed by GitHub
parent c5132b52c2
commit e2ada1c939
59 changed files with 177 additions and 177 deletions

View File

@@ -14,7 +14,7 @@ void main() {
expect(find.byType(ExpansionTile), findsExactly(3));
});
testWidgets('exapansion tile has one h1 tag', (WidgetTester tester) async {
testWidgets('expansion tile has one h1 tag', (WidgetTester tester) async {
await pumpsUseCase(tester, ExpansionTileUseCase());
final Finder findHeadingLevelOnes = find.bySemanticsLabel('ExpansionTile Demo');
await tester.pumpAndSettle();

View File

@@ -127,8 +127,8 @@ Future<void> main() async {
final ArgResults results = parser.parse(mainArgs);
final List<String> selectedTests = results.multiOption('tests');
// Shuffle the tests becauase we don't want order dependent tests.
// It is the responsibily of the infra to tell us what the seed value is,
// Shuffle the tests because we don't want order dependent tests.
// It is the responsibility of the infra to tell us what the seed value is,
// in case we want to have the seed stable for some time period.
final List<Benchmark> tests = benchmarks.where((Benchmark e) => selectedTests.contains(e.$1)).toList();
tests.shuffle(Random(int.parse(results.option('seed')!)));

View File

@@ -25,7 +25,7 @@ Future<void> execute() async {
final BenchmarkResultPrinter printer = BenchmarkResultPrinter();
void runNotifiyListenersLoopWithObserverList(
void runNotifyListenersLoopWithObserverList(
int totalIterations, {
bool failRemoval = false,
bool addResult = true,
@@ -79,7 +79,7 @@ Future<void> execute() async {
}
}
void runNotifiyListenersLoopWithHashedObserverList(
void runNotifyListenersLoopWithHashedObserverList(
int totalIterations, {
bool addResult = true,
}) {
@@ -124,7 +124,7 @@ Future<void> execute() async {
}
}
void runNotifiyListenersLoopWithAnimationController(
void runNotifyListenersLoopWithAnimationController(
int totalIterations, {
bool addResult = true,
}) {
@@ -162,11 +162,11 @@ Future<void> execute() async {
}
}
runNotifiyListenersLoopWithObserverList(_kNumIterationsList);
runNotifiyListenersLoopWithObserverList(_kNumIterationsList,
runNotifyListenersLoopWithObserverList(_kNumIterationsList);
runNotifyListenersLoopWithObserverList(_kNumIterationsList,
failRemoval: true);
runNotifiyListenersLoopWithHashedObserverList(_kNumIterationsHashed);
runNotifiyListenersLoopWithAnimationController(_kNumIterationsHashed);
runNotifyListenersLoopWithHashedObserverList(_kNumIterationsHashed);
runNotifyListenersLoopWithAnimationController(_kNumIterationsHashed);
printer.printToStdout();
}

View File

@@ -74,7 +74,7 @@ final List<String> flutterTestArgs = <String>[];
/// Whether execution should be simulated for debugging purposes.
///
/// When `true`, calls to [runCommand] print to [io.stdout] instead of running
/// the process. This is useful for determing what an invocation of `test.dart`
/// the process. This is useful for determining what an invocation of `test.dart`
/// _might_ due if not invoked with `--dry-run`, or otherwise determine what the
/// different test shards and sub-shards are configured as.
bool get dryRun => _dryRun ?? false;
@@ -621,7 +621,7 @@ List<T> selectIndexOfTotalSubshard<T>(List<T> tests, {String subshardKey = kSubs
required int subShardCount,
}) {
// While there exists a closed formula figuring out the range of tests the
// subshard is resposible for, modeling this as a simulation of distributing
// subshard is responsible for, modeling this as a simulation of distributing
// items equally into buckets is more intuitive.
//
// A bucket represents how many tests a subshard should be allocated.

View File

@@ -2042,7 +2042,7 @@ class MemoryTest {
await receivedNextMessage;
}
/// Taps the application and looks for acknowldgement.
/// Taps the application and looks for acknowledgement.
///
/// This is used by several tests to ensure scrolling gestures are installed.
Future<void> tapNotification() async {

View File

@@ -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',

View File

@@ -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);
}

View File

@@ -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();

View File

@@ -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