Correct misspellings throughout the codebase (#79500)

This commit is contained in:
Chris Bracken
2021-04-01 10:04:03 -07:00
committed by GitHub
parent 25a557d49e
commit 3e7e06512c
35 changed files with 51 additions and 51 deletions

View File

@@ -227,13 +227,13 @@ abstract class TestWidgetsFlutterBinding extends BindingBase
@protected
bool get disableShadows => false;
/// Determines whether the Dart [HttpClient] class should be overriden to
/// Determines whether the Dart [HttpClient] class should be overridden to
/// always return a failure response.
///
/// By default, this value is true, so that unit tests will not become flaky
/// due to intermitten network errors. The value may be overriden by a binding
/// intended for use in integration tests that do end to end application
/// testing, including working with real network responses.
/// due to intermittent network errors. The value may be overridden by a
/// binding intended for use in integration tests that do end to end
/// application testing, including working with real network responses.
@protected
bool get overrideHttpClient => true;
@@ -284,7 +284,7 @@ abstract class TestWidgetsFlutterBinding extends BindingBase
/// typically used in `flutter test`), this advances the fake [clock] for the
/// period and also increases timeout (see [addTime]).
///
/// In the live test environemnt ([LiveTestWidgetsFlutterBinding], typically
/// In the live test environment ([LiveTestWidgetsFlutterBinding], typically
/// used for `flutter run` and for [e2e](https://pub.dev/packages/e2e)), it is
/// equivalent as [Future.delayed].
Future<void> delayed(Duration duration);
@@ -1293,7 +1293,7 @@ enum LiveTestWidgetsFlutterBindingFramePolicy {
/// Strictly show only frames that are explicitly pumped.
///
/// This most closely matches the [AutomatedTestWidgetsFlutterBinding]
/// (the defualt binding for `flutter test`) behavior.
/// (the default binding for `flutter test`) behavior.
onlyPumps,
/// Show pumped frames, and additionally schedule and run frames to fade

View File

@@ -910,7 +910,7 @@ abstract class WidgetController {
if (renderObject is! RenderBox) {
throw FlutterError(
'The finder "$finder" (used in a call to "$callee()") found an element whose corresponding render object is not a RenderBox (it is a ${renderObject.runtimeType}: "$renderObject"). '
'Unfortunately "$callee()" only supports targetting widgets that correspond to RenderBox objects in the rendering.'
'Unfortunately "$callee()" only supports targeting widgets that correspond to RenderBox objects in the rendering.'
);
}
final RenderBox box = element.renderObject! as RenderBox;