Unverified Commit 3e7e0651 authored by Chris Bracken's avatar Chris Bracken Committed by GitHub

Correct misspellings throughout the codebase (#79500)

parent 25a557d4
...@@ -53,7 +53,7 @@ task printEngineMavenUrl() { ...@@ -53,7 +53,7 @@ task printEngineMavenUrl() {
'$mavenUrl instead'); '$mavenUrl instead');
} }
section('Checking overriden maven URL'); section('Checking overridden maven URL');
mavenUrl = await eval( mavenUrl = await eval(
gradlewExecutable, gradlewExecutable,
<String>['printEngineMavenUrl', '-q'], <String>['printEngineMavenUrl', '-q'],
...@@ -63,7 +63,7 @@ task printEngineMavenUrl() { ...@@ -63,7 +63,7 @@ task printEngineMavenUrl() {
); );
if (mavenUrl != 'https://my.special.proxy/download.flutter.io') { if (mavenUrl != 'https://my.special.proxy/download.flutter.io') {
throw TaskResult.failure('Expected overriden Android engine maven ' throw TaskResult.failure('Expected overridden Android engine maven '
'dependency URL to resolve to proxy location ' 'dependency URL to resolve to proxy location '
'https://my.special.proxy/download.flutter.io. Got ' 'https://my.special.proxy/download.flutter.io. Got '
'$mavenUrl instead'); '$mavenUrl instead');
......
...@@ -31,7 +31,7 @@ class MyHomePage extends StatefulWidget { ...@@ -31,7 +31,7 @@ class MyHomePage extends StatefulWidget {
class _MyHomePageState extends State<MyHomePage> { class _MyHomePageState extends State<MyHomePage> {
String infoText = 'no-enter'; String infoText = 'no-enter';
// Controller with no inital value; // Controller with no initial value;
final TextEditingController _emptyController = TextEditingController(); final TextEditingController _emptyController = TextEditingController();
final TextEditingController _controller = final TextEditingController _controller =
......
...@@ -30,7 +30,7 @@ const EdgeInsetsGeometry _kDefaultPadding = ...@@ -30,7 +30,7 @@ const EdgeInsetsGeometry _kDefaultPadding =
/// The [helper] and [error] parameters are both optional widgets targeted at /// The [helper] and [error] parameters are both optional widgets targeted at
/// displaying more information about the row. Both widgets are placed /// displaying more information about the row. Both widgets are placed
/// underneath the [prefix] and [child], and will expand the row's height to /// underneath the [prefix] and [child], and will expand the row's height to
/// accomodate for their presence. When a [Text] is given to [error], it will /// accommodate for their presence. When a [Text] is given to [error], it will
/// be shown in [CupertinoColors.destructiveRed] coloring and /// be shown in [CupertinoColors.destructiveRed] coloring and
/// medium-weighted font. /// medium-weighted font.
/// ///
...@@ -96,7 +96,7 @@ class CupertinoFormRow extends StatelessWidget { ...@@ -96,7 +96,7 @@ class CupertinoFormRow extends StatelessWidget {
/// The [helper] and [error] parameters are both optional widgets targeted at /// The [helper] and [error] parameters are both optional widgets targeted at
/// displaying more information about the row. Both widgets are placed /// displaying more information about the row. Both widgets are placed
/// underneath the [prefix] and [child], and will expand the row's height to /// underneath the [prefix] and [child], and will expand the row's height to
/// accomodate for their presence. When a [Text] is given to [error], it will /// accommodate for their presence. When a [Text] is given to [error], it will
/// be shown in [CupertinoColors.destructiveRed] coloring and /// be shown in [CupertinoColors.destructiveRed] coloring and
/// medium-weighted font. /// medium-weighted font.
const CupertinoFormRow({ const CupertinoFormRow({
......
...@@ -218,7 +218,7 @@ class _RenderCupertinoTextSelectionToolbarShape extends RenderShiftedBox { ...@@ -218,7 +218,7 @@ class _RenderCupertinoTextSelectionToolbarShape extends RenderShiftedBox {
// top and bottom. Since _kToolbarHeight includes the height of one arrow, the // top and bottom. Since _kToolbarHeight includes the height of one arrow, the
// total height that the child is given is that plus one more arrow height. // total height that the child is given is that plus one more arrow height.
// The extra height on the opposite side of the arrow will be clipped out. By // The extra height on the opposite side of the arrow will be clipped out. By
// using this appraoch, the buttons don't need any special padding that // using this approach, the buttons don't need any special padding that
// depends on isAbove. // depends on isAbove.
final BoxConstraints _heightConstraint = BoxConstraints.tightFor( final BoxConstraints _heightConstraint = BoxConstraints.tightFor(
height: _kToolbarHeight + _kToolbarArrowSize.height, height: _kToolbarHeight + _kToolbarArrowSize.height,
......
...@@ -311,7 +311,7 @@ class IOSScrollViewFlingVelocityTracker extends VelocityTracker { ...@@ -311,7 +311,7 @@ class IOSScrollViewFlingVelocityTracker extends VelocityTracker {
// Computes the velocity using 2 adjacent points in history. When index = 0, // Computes the velocity using 2 adjacent points in history. When index = 0,
// it uses the latest point recorded and the point recorded immediately before // it uses the latest point recorded and the point recorded immediately before
// it. The smaller index is, the ealier in history the points used are. // it. The smaller index is, the earlier in history the points used are.
Offset _previousVelocityAt(int index) { Offset _previousVelocityAt(int index) {
final int endIndex = (_index + index) % _sampleSize; final int endIndex = (_index + index) % _sampleSize;
final int startIndex = (_index + index - 1) % _sampleSize; final int startIndex = (_index + index - 1) % _sampleSize;
......
...@@ -69,7 +69,7 @@ Future<T?> showSearch<T>({ ...@@ -69,7 +69,7 @@ Future<T?> showSearch<T>({
/// The search page always shows an [AppBar] at the top where users can /// The search page always shows an [AppBar] at the top where users can
/// enter their search queries. The buttons shown before and after the search /// enter their search queries. The buttons shown before and after the search
/// query text field can be customized via [SearchDelegate.buildLeading] /// query text field can be customized via [SearchDelegate.buildLeading]
/// and [SearchDelegate.buildActions]. Additonally, a widget can be placed /// and [SearchDelegate.buildActions]. Additionally, a widget can be placed
/// across the bottom of the [AppBar] via [SearchDelegate.buildBottom]. /// across the bottom of the [AppBar] via [SearchDelegate.buildBottom].
/// ///
/// The body below the [AppBar] can either show suggested queries (returned by /// The body below the [AppBar] can either show suggested queries (returned by
......
...@@ -281,7 +281,7 @@ class AssetImage extends AssetBundleImageProvider { ...@@ -281,7 +281,7 @@ class AssetImage extends AssetBundleImageProvider {
return _findBestVariant(mapping, config.devicePixelRatio!); return _findBestVariant(mapping, config.devicePixelRatio!);
} }
// Returns the "best" asset variant amongst the availabe `candidates`. // Returns the "best" asset variant amongst the available `candidates`.
// //
// The best variant is chosen as follows: // The best variant is chosen as follows:
// - Choose a variant whose key matches `value` exactly, if available. // - Choose a variant whose key matches `value` exactly, if available.
......
...@@ -127,7 +127,7 @@ class DefaultShaderWarmUp extends ShaderWarmUp { ...@@ -127,7 +127,7 @@ class DefaultShaderWarmUp extends ShaderWarmUp {
/// Defaults to 0.0. /// Defaults to 0.0.
/// ///
/// When changing this value, the [canvasSize] must also be changed to /// When changing this value, the [canvasSize] must also be changed to
/// accomodate the bigger canvas. /// accommodate the bigger canvas.
final double drawCallSpacing; final double drawCallSpacing;
/// The [size] of the canvas required to paint the shapes in [warmUpOnCanvas]. /// The [size] of the canvas required to paint the shapes in [warmUpOnCanvas].
......
...@@ -21,7 +21,7 @@ class ChildLayoutHelper { ...@@ -21,7 +21,7 @@ class ChildLayoutHelper {
const ChildLayoutHelper._(); const ChildLayoutHelper._();
/// Returns the [Size] that the [RenderBox] would have if it were to /// Returns the [Size] that the [RenderBox] would have if it were to
/// be layed out with the given [BoxConstraints]. /// be laid out with the given [BoxConstraints].
/// ///
/// This method calls [RenderBox.getDryLayout] on the given [RenderBox]. /// This method calls [RenderBox.getDryLayout] on the given [RenderBox].
/// ///
......
...@@ -654,7 +654,7 @@ class RenderConstrainedOverflowBox extends RenderAligningShiftedBox { ...@@ -654,7 +654,7 @@ class RenderConstrainedOverflowBox extends RenderAligningShiftedBox {
/// When [child] is null, this [RenderBox] takes the smallest possible size and /// When [child] is null, this [RenderBox] takes the smallest possible size and
/// never overflows. /// never overflows.
/// ///
/// This [RenderBox] can be used to ensure some of [child]'s natrual dimensions /// This [RenderBox] can be used to ensure some of [child]'s natural dimensions
/// are honored, and get an early warning during development otherwise. For /// are honored, and get an early warning during development otherwise. For
/// instance, if [child] requires a minimum height to fully display its content, /// instance, if [child] requires a minimum height to fully display its content,
/// [constraintsTransform] can be set to a function that removes the `maxHeight` /// [constraintsTransform] can be set to a function that removes the `maxHeight`
......
...@@ -754,7 +754,7 @@ abstract class RenderSliverFloatingPersistentHeader extends RenderSliverPersiste ...@@ -754,7 +754,7 @@ abstract class RenderSliverFloatingPersistentHeader extends RenderSliverPersiste
showOnScreen.maxShowOnScreenExtent, showOnScreen.maxShowOnScreenExtent,
) )
// Clamp the value back to the valid range after applying additional // Clamp the value back to the valid range after applying additional
// constriants. Contracting is not allowed. // constraints. Contracting is not allowed.
.clamp(childExtent, effectiveMaxExtent); .clamp(childExtent, effectiveMaxExtent);
// Expands the header if needed, with animation. // Expands the header if needed, with animation.
......
...@@ -10,7 +10,7 @@ import 'system_channels.dart'; ...@@ -10,7 +10,7 @@ import 'system_channels.dart';
/// ///
/// Deferred components allow Flutter applications to download precompiled AOT /// Deferred components allow Flutter applications to download precompiled AOT
/// dart code and assets at runtime, reducing the install size of apps and /// dart code and assets at runtime, reducing the install size of apps and
/// avoiding installing unnessecary code/assets on end user devices. Common /// avoiding installing unnecessary code/assets on end user devices. Common
/// use cases include deferring installation of advanced or infrequently /// use cases include deferring installation of advanced or infrequently
/// used features and limiting locale specific features to users of matching /// used features and limiting locale specific features to users of matching
/// locales. Deferred components can only deliver split off parts of the same /// locales. Deferred components can only deliver split off parts of the same
......
...@@ -2336,7 +2336,7 @@ class ConstrainedBox extends SingleChildRenderObjectWidget { ...@@ -2336,7 +2336,7 @@ class ConstrainedBox extends SingleChildRenderObjectWidget {
/// When [child] is null, this widget becomes as small as possible and never /// When [child] is null, this widget becomes as small as possible and never
/// overflows /// overflows
/// ///
/// This widget can be used to ensure some of [child]'s natrual dimensions are /// This widget can be used to ensure some of [child]'s natural dimensions are
/// honored, and get an early warning otherwise during development. For /// honored, and get an early warning otherwise during development. For
/// instance, if [child] requires a minimum height to fully display its content, /// instance, if [child] requires a minimum height to fully display its content,
/// [constraintsTransform] can be set to [maxHeightUnconstrained], so that if /// [constraintsTransform] can be set to [maxHeightUnconstrained], so that if
...@@ -2346,8 +2346,8 @@ class ConstrainedBox extends SingleChildRenderObjectWidget { ...@@ -2346,8 +2346,8 @@ class ConstrainedBox extends SingleChildRenderObjectWidget {
/// ///
/// {@tool snippet} /// {@tool snippet}
/// In the following snippet, the [Card] is guaranteed to be at least as tall as /// In the following snippet, the [Card] is guaranteed to be at least as tall as
/// its "natrual" height. Unlike [UnconstrainedBox], it will become taller if /// its "natural" height. Unlike [UnconstrainedBox], it will become taller if
/// its "natrual" height is smaller than 40 px. If the [Container] isn't high /// its "natural" height is smaller than 40 px. If the [Container] isn't high
/// enough to show the full content of the [Card], in debug mode a warning will /// enough to show the full content of the [Card], in debug mode a warning will
/// be given. /// be given.
/// ///
......
...@@ -68,7 +68,7 @@ typedef DragTargetMove<T> = void Function(DragTargetDetails<T> details); ...@@ -68,7 +68,7 @@ typedef DragTargetMove<T> = void Function(DragTargetDetails<T> details);
/// Signature for the strategy that determines the drag start point. /// Signature for the strategy that determines the drag start point.
/// ///
/// Used for the built-in strategies switched via [DragAnchor] and the optinally /// Used for the built-in strategies switched via [DragAnchor] and the optimally
/// injectable [Draggable.dragAnchorStrategy] /// injectable [Draggable.dragAnchorStrategy]
typedef DragAnchorStrategy = Offset Function(Draggable<Object> draggable, BuildContext context, Offset position); typedef DragAnchorStrategy = Offset Function(Draggable<Object> draggable, BuildContext context, Offset position);
......
...@@ -2240,9 +2240,9 @@ class EditableTextState extends State<EditableText> with AutomaticKeepAliveClien ...@@ -2240,9 +2240,9 @@ class EditableTextState extends State<EditableText> with AutomaticKeepAliveClien
// send unrecognized exceptions to the engine/platform. Make sure the // send unrecognized exceptions to the engine/platform. Make sure the
// exceptions that user callbacks throw are handled within this method. // exceptions that user callbacks throw are handled within this method.
void _formatAndSetValue(TextEditingValue newTextEditingValue, SelectionChangedCause? cause, {bool userInteraction = false}) { void _formatAndSetValue(TextEditingValue newTextEditingValue, SelectionChangedCause? cause, {bool userInteraction = false}) {
// Only apply input formatters if the text has changed (including uncommited // Only apply input formatters if the text has changed (including
// text in the composing region), or when the user committed the composing // uncommitted text in the composing region), or when the user committed
// text. // the composing text.
// Gboard is very persistent in restoring the composing region. Applying // Gboard is very persistent in restoring the composing region. Applying
// input formatters on composing-region-only changes (except clearing the // input formatters on composing-region-only changes (except clearing the
// current composing region) is very infinite-loop-prone: the formatters // current composing region) is very infinite-loop-prone: the formatters
......
...@@ -41,7 +41,7 @@ void main() { ...@@ -41,7 +41,7 @@ void main() {
), ),
); );
// Originall at full opacity. // Original at full opacity.
FadeTransition opacity = tester.widget(find.descendant( FadeTransition opacity = tester.widget(find.descendant(
of: find.byType(CupertinoTextSelectionToolbarButton), of: find.byType(CupertinoTextSelectionToolbarButton),
matching: find.byType(FadeTransition), matching: find.byType(FadeTransition),
......
...@@ -98,7 +98,7 @@ void main() { ...@@ -98,7 +98,7 @@ void main() {
expect(actual, 5); expect(actual, 5);
}); });
test('should be 0 when offset is 0.00000001 times greater than item extent where the divison will return more than 13 zero decimals', () { test('should be 0 when offset is 0.00000001 times greater than item extent where the division will return more than 13 zero decimals', () {
final int actual = testGetMaxChildIndexForScrollOffset( final int actual = testGetMaxChildIndexForScrollOffset(
genericItemExtent + extraValueToHaveRoundingIssues, genericItemExtent); genericItemExtent + extraValueToHaveRoundingIssues, genericItemExtent);
expect(actual, 0); expect(actual, 0);
......
...@@ -224,7 +224,7 @@ void main() { ...@@ -224,7 +224,7 @@ void main() {
expect(controller.position.pixels, equals(0.0)); expect(controller.position.pixels, equals(0.0));
}); });
testWidgets('jumpTo recomends deferred loading', (WidgetTester tester) async { testWidgets('jumpTo recommends deferred loading', (WidgetTester tester) async {
int loadedWithDeferral = 0; int loadedWithDeferral = 0;
int buildCount = 0; int buildCount = 0;
const double height = 500; const double height = 500;
......
...@@ -565,7 +565,7 @@ void main() { ...@@ -565,7 +565,7 @@ void main() {
), ),
), ),
), ),
TextSpan(text: 'hello world! sieze the day!'), TextSpan(text: 'hello world! seize the day!'),
WidgetSpan( WidgetSpan(
child: Checkbox(value: false, onChanged: null), child: Checkbox(value: false, onChanged: null),
), ),
...@@ -837,7 +837,7 @@ void main() { ...@@ -837,7 +837,7 @@ void main() {
), ),
), ),
), ),
TextSpan(text: 'hello world! sieze the day!'), TextSpan(text: 'hello world! seize the day!'),
WidgetSpan( WidgetSpan(
alignment: PlaceholderAlignment.baseline, alignment: PlaceholderAlignment.baseline,
baseline: TextBaseline.alphabetic, baseline: TextBaseline.alphabetic,
...@@ -944,7 +944,7 @@ void main() { ...@@ -944,7 +944,7 @@ void main() {
), ),
), ),
), ),
TextSpan(text: 'hello world! sieze the day!'), TextSpan(text: 'hello world! seize the day!'),
WidgetSpan( WidgetSpan(
alignment: PlaceholderAlignment.aboveBaseline, alignment: PlaceholderAlignment.aboveBaseline,
baseline: TextBaseline.alphabetic, baseline: TextBaseline.alphabetic,
...@@ -1051,7 +1051,7 @@ void main() { ...@@ -1051,7 +1051,7 @@ void main() {
), ),
), ),
), ),
TextSpan(text: 'hello world! sieze the day!'), TextSpan(text: 'hello world! seize the day!'),
WidgetSpan( WidgetSpan(
alignment: PlaceholderAlignment.belowBaseline, alignment: PlaceholderAlignment.belowBaseline,
baseline: TextBaseline.alphabetic, baseline: TextBaseline.alphabetic,
...@@ -1158,7 +1158,7 @@ void main() { ...@@ -1158,7 +1158,7 @@ void main() {
), ),
), ),
), ),
TextSpan(text: 'hello world! sieze the day!'), TextSpan(text: 'hello world! seize the day!'),
WidgetSpan( WidgetSpan(
alignment: PlaceholderAlignment.top, alignment: PlaceholderAlignment.top,
baseline: TextBaseline.alphabetic, baseline: TextBaseline.alphabetic,
...@@ -1265,7 +1265,7 @@ void main() { ...@@ -1265,7 +1265,7 @@ void main() {
), ),
), ),
), ),
TextSpan(text: 'hello world! sieze the day!'), TextSpan(text: 'hello world! seize the day!'),
WidgetSpan( WidgetSpan(
alignment: PlaceholderAlignment.middle, alignment: PlaceholderAlignment.middle,
baseline: TextBaseline.alphabetic, baseline: TextBaseline.alphabetic,
......
...@@ -227,13 +227,13 @@ abstract class TestWidgetsFlutterBinding extends BindingBase ...@@ -227,13 +227,13 @@ abstract class TestWidgetsFlutterBinding extends BindingBase
@protected @protected
bool get disableShadows => false; 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. /// always return a failure response.
/// ///
/// By default, this value is true, so that unit tests will not become flaky /// 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 /// due to intermittent network errors. The value may be overridden by a
/// intended for use in integration tests that do end to end application /// binding intended for use in integration tests that do end to end
/// testing, including working with real network responses. /// application testing, including working with real network responses.
@protected @protected
bool get overrideHttpClient => true; bool get overrideHttpClient => true;
...@@ -284,7 +284,7 @@ abstract class TestWidgetsFlutterBinding extends BindingBase ...@@ -284,7 +284,7 @@ abstract class TestWidgetsFlutterBinding extends BindingBase
/// typically used in `flutter test`), this advances the fake [clock] for the /// typically used in `flutter test`), this advances the fake [clock] for the
/// period and also increases timeout (see [addTime]). /// 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 /// used for `flutter run` and for [e2e](https://pub.dev/packages/e2e)), it is
/// equivalent as [Future.delayed]. /// equivalent as [Future.delayed].
Future<void> delayed(Duration duration); Future<void> delayed(Duration duration);
...@@ -1293,7 +1293,7 @@ enum LiveTestWidgetsFlutterBindingFramePolicy { ...@@ -1293,7 +1293,7 @@ enum LiveTestWidgetsFlutterBindingFramePolicy {
/// Strictly show only frames that are explicitly pumped. /// Strictly show only frames that are explicitly pumped.
/// ///
/// This most closely matches the [AutomatedTestWidgetsFlutterBinding] /// This most closely matches the [AutomatedTestWidgetsFlutterBinding]
/// (the defualt binding for `flutter test`) behavior. /// (the default binding for `flutter test`) behavior.
onlyPumps, onlyPumps,
/// Show pumped frames, and additionally schedule and run frames to fade /// Show pumped frames, and additionally schedule and run frames to fade
......
...@@ -910,7 +910,7 @@ abstract class WidgetController { ...@@ -910,7 +910,7 @@ abstract class WidgetController {
if (renderObject is! RenderBox) { if (renderObject is! RenderBox) {
throw FlutterError( 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"). ' '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; final RenderBox box = element.renderObject! as RenderBox;
......
...@@ -110,7 +110,7 @@ void addAarTask(Project project, variant) { ...@@ -110,7 +110,7 @@ void addAarTask(Project project, variant) {
// This method mimics the logic in AGP when `android.defaultPublishConfig` is set in `build.gradle`: // This method mimics the logic in AGP when `android.defaultPublishConfig` is set in `build.gradle`:
// https://android.googlesource.com/platform/tools/base/+/studio-master-dev/build-system/gradle-core/src/main/java/com/android/build/gradle/internal/variant/VariantHelper.java // https://android.googlesource.com/platform/tools/base/+/studio-master-dev/build-system/gradle-core/src/main/java/com/android/build/gradle/internal/variant/VariantHelper.java
// //
// Unfortunately, `android.defaultPublishConfig` cannot be overriden at this point since // Unfortunately, `android.defaultPublishConfig` cannot be overridden at this point since
// AGP already run this code. // AGP already run this code.
void overrideDefaultPublishConfig(Project project, variant) { void overrideDefaultPublishConfig(Project project, variant) {
String variantName = variant.name.capitalize() String variantName = variant.name.capitalize()
......
...@@ -84,7 +84,7 @@ abstract class DeferredComponentsValidator { ...@@ -84,7 +84,7 @@ abstract class DeferredComponentsValidator {
/// Returns true if there were any recommended changes that should /// Returns true if there were any recommended changes that should
/// be applied. /// be applied.
/// ///
/// Retuns false if no problems or recommendations were detected. /// Returns false if no problems or recommendations were detected.
/// ///
/// If no checks are run, then this will default to false and will remain so /// If no checks are run, then this will default to false and will remain so
/// until a failing check finishes running. /// until a failing check finishes running.
......
...@@ -768,7 +768,7 @@ final Converter<String, String> _defineDecoder = base64.decoder.fuse(utf8.decode ...@@ -768,7 +768,7 @@ final Converter<String, String> _defineDecoder = base64.decoder.fuse(utf8.decode
/// control character on windows command lines. /// control character on windows command lines.
/// ///
/// When decoding this string, it can be safely split on commas, since any /// When decoding this string, it can be safely split on commas, since any
/// user provided commans will still be encoded. /// user provided commands will still be encoded.
/// ///
/// If the presence of the `/` character ends up being an issue, this can /// If the presence of the `/` character ends up being an issue, this can
/// be changed to use base32 instead. /// be changed to use base32 instead.
......
...@@ -22,7 +22,7 @@ class DepfileService { ...@@ -22,7 +22,7 @@ class DepfileService {
/// Given an [depfile] File, write the depfile contents. /// Given an [depfile] File, write the depfile contents.
/// ///
/// If both [inputs] and [outputs] are empty, ensures the file does not /// If both [inputs] and [outputs] are empty, ensures the file does not
/// exist. This can be overriden with the [writeEmpty] parameter when /// exist. This can be overridden with the [writeEmpty] parameter when
/// both static and runtime dependencies exist and it is not desired /// both static and runtime dependencies exist and it is not desired
/// to force a rerun due to no depfile. /// to force a rerun due to no depfile.
void writeToFile(Depfile depfile, File output, {bool writeEmpty = false}) { void writeToFile(Depfile depfile, File output, {bool writeEmpty = false}) {
......
...@@ -8,7 +8,7 @@ import '../base/file_system.dart'; ...@@ -8,7 +8,7 @@ import '../base/file_system.dart';
import '../base/utils.dart'; import '../base/utils.dart';
import '../convert.dart'; import '../convert.dart';
/// A psuedo-filesystem stored in memory. /// A pseudo-filesystem stored in memory.
/// ///
/// To support output to arbitrary multi-root file schemes, the frontend server /// To support output to arbitrary multi-root file schemes, the frontend server
/// will output web sources, sourcemaps, and metadata to concatenated single files /// will output web sources, sourcemaps, and metadata to concatenated single files
......
...@@ -44,7 +44,7 @@ void main() { ...@@ -44,7 +44,7 @@ void main() {
}); });
}); });
test('configures implicit vs explict correctly', () => testbed.run(() { test('configures implicit vs explicit correctly', () => testbed.run(() {
expect(const Source.pattern('{PROJECT_DIR}/foo').implicit, false); expect(const Source.pattern('{PROJECT_DIR}/foo').implicit, false);
expect(const Source.pattern('{PROJECT_DIR}/*foo').implicit, true); expect(const Source.pattern('{PROJECT_DIR}/*foo').implicit, true);
})); }));
......
...@@ -20,7 +20,7 @@ void main() { ...@@ -20,7 +20,7 @@ void main() {
fileSystem.file('inputs/a.txt').createSync(); fileSystem.file('inputs/a.txt').createSync();
fileSystem.file('inputs/b.txt').createSync(); fileSystem.file('inputs/b.txt').createSync();
fileSystem.file('foo/c.txt').createSync(recursive: true); fileSystem.file('foo/c.txt').createSync(recursive: true);
// Sould not be copied. // Should not be copied.
fileSystem.file('inputs/d.txt').createSync(); fileSystem.file('inputs/d.txt').createSync();
final Depfile depfile = unpackDesktopArtifacts( final Depfile depfile = unpackDesktopArtifacts(
......
...@@ -129,7 +129,7 @@ void main() { ...@@ -129,7 +129,7 @@ void main() {
expect(environment.outputDir.childDirectory('assets') expect(environment.outputDir.childDirectory('assets')
.childFile('AssetManifest.json').existsSync(), true); .childFile('AssetManifest.json').existsSync(), true);
// Update to arbitary resource file triggers rebuild. // Update to arbitrary resource file triggers rebuild.
webResources.childFile('foo.txt').writeAsStringSync('B'); webResources.childFile('foo.txt').writeAsStringSync('B');
await const WebReleaseBundle().build(environment); await const WebReleaseBundle().build(environment);
......
...@@ -1233,7 +1233,7 @@ void main() { ...@@ -1233,7 +1233,7 @@ void main() {
when<String>(emptyStdoutProcessResult.stderr as String).thenReturn(''); when<String>(emptyStdoutProcessResult.stderr as String).thenReturn('');
}); });
testUsingContext('does not throw on non-existant ssh config', () async { testUsingContext('does not throw on non-existent ssh config', () async {
final FuchsiaDevice device = FuchsiaDevice('123'); final FuchsiaDevice device = FuchsiaDevice('123');
expect(await device.sdkNameAndVersion, equals('Fuchsia')); expect(await device.sdkNameAndVersion, equals('Fuchsia'));
}, overrides: <Type, Generator>{ }, overrides: <Type, Generator>{
......
...@@ -534,7 +534,7 @@ void main() { ...@@ -534,7 +534,7 @@ void main() {
expect(gitTagVersion.frameworkVersionFor('abcd1234'), stableTag); expect(gitTagVersion.frameworkVersionFor('abcd1234'), stableTag);
}); });
testUsingContext('determine favors stable tag over dev tag if both idenitfy HEAD', () { testUsingContext('determine favors stable tag over dev tag if both identify HEAD', () {
const String stableTag = '1.2.3'; const String stableTag = '1.2.3';
final FakeProcessManager fakeProcessManager = FakeProcessManager.list( final FakeProcessManager fakeProcessManager = FakeProcessManager.list(
<FakeCommand>[ <FakeCommand>[
......
...@@ -259,7 +259,7 @@ void setMockEncodedAnyVisualStudioInstallation( ...@@ -259,7 +259,7 @@ void setMockEncodedAnyVisualStudioInstallation(
// Sets up the mock environment for a Windows 10 SDK query. // Sets up the mock environment for a Windows 10 SDK query.
// //
// registryPresent controls whether or not the registry key is found. // registryPresent controls whether or not the registry key is found.
// filesPresent controles where or not there are any SDK folders at the location // filesPresent controls where or not there are any SDK folders at the location
// returned by the registry query. // returned by the registry query.
void setMockSdkRegResponse( void setMockSdkRegResponse(
FileSystem fileSystem, FileSystem fileSystem,
......
...@@ -241,7 +241,7 @@ zip -r "ios_tests.zip" "Release-iphoneos" "Runner_iphoneos$dev_target-arm64.xcte ...@@ -241,7 +241,7 @@ zip -r "ios_tests.zip" "Release-iphoneos" "Runner_iphoneos$dev_target-arm64.xcte
popd popd
``` ```
You can verify locally that your tests are succesful by running the following command: You can verify locally that your tests are successful by running the following command:
```sh ```sh
xcodebuild test-without-building -xctestrun "build/ios_integ/Build/Products/Runner_iphoneos14.3-arm64.xctestrun" -destination id=<YOUR_DEVICE_ID> xcodebuild test-without-building -xctestrun "build/ios_integ/Build/Products/Runner_iphoneos14.3-arm64.xctestrun" -destination id=<YOUR_DEVICE_ID>
......
...@@ -293,6 +293,6 @@ abstract class IntegrationTestResults { ...@@ -293,6 +293,6 @@ abstract class IntegrationTestResults {
/// The extra data for the reported result. /// The extra data for the reported result.
Map<String, dynamic>? get reportData; Map<String, dynamic>? get reportData;
/// Whether all the test methods completed succesfully. /// Whether all the test methods completed successfully.
Completer<bool> get allTestsPassed; Completer<bool> get allTestsPassed;
} }
...@@ -104,7 +104,7 @@ Future<void> main() async { ...@@ -104,7 +104,7 @@ Future<void> main() async {
tearDownAll(() async { tearDownAll(() async {
// This part is outside the group so that `request` has been compeleted as // This part is outside the group so that `request` has been compeleted as
// part of the `tearDownAll` registerred in the group during // part of the `tearDownAll` registered in the group during
// `IntegrationTestWidgetsFlutterBinding` initialization. // `IntegrationTestWidgetsFlutterBinding` initialization.
final Map<String, dynamic> response = final Map<String, dynamic> response =
(await request)!['response'] as Map<String, dynamic>; (await request)!['response'] as Map<String, dynamic>;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment