From 29b44f79d98ce1daa4ec28791233ffad5ab8d192 Mon Sep 17 00:00:00 2001 From: Caio Agiani Date: Mon, 31 Jan 2022 13:43:15 -0300 Subject: [PATCH] packages: fix typos recieve => receive (#97488) --- .../debug_adapter/test_adapter_test.dart | 2 +- .../integration.shard/debug_adapter/test_client.dart | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/flutter_tools/test/integration.shard/debug_adapter/test_adapter_test.dart b/packages/flutter_tools/test/integration.shard/debug_adapter/test_adapter_test.dart index 11e6f0c1371..f1827a77787 100644 --- a/packages/flutter_tools/test/integration.shard/debug_adapter/test_adapter_test.dart +++ b/packages/flutter_tools/test/integration.shard/debug_adapter/test_adapter_test.dart @@ -135,7 +135,7 @@ final List _testsProjectExpectedOutput = [ /// A helper that verifies a full set of expected test results for the /// [TestsProject] script. void _expectStandardTestsProjectResults(TestEvents events) { - // Check we recieved all expected test events passed through from + // Check we received all expected test events passed through from // package:test. final List eventNames = events.testNotifications.map((Map e) => e['type']!).toList(); diff --git a/packages/flutter_tools/test/integration.shard/debug_adapter/test_client.dart b/packages/flutter_tools/test/integration.shard/debug_adapter/test_client.dart index 9c89c04eee2..ebae4cba241 100644 --- a/packages/flutter_tools/test/integration.shard/debug_adapter/test_client.dart +++ b/packages/flutter_tools/test/integration.shard/debug_adapter/test_client.dart @@ -76,7 +76,7 @@ class DapTestClient { /// Returns a Future that completes with the next [event] event. Future event(String event) => _eventController.stream.firstWhere( (Event e) => e.event == event, - orElse: () => throw 'Did not recieve $event event before stream closed'); + orElse: () => throw 'Did not receive $event event before stream closed'); /// Returns a stream for [event] events. Stream events(String event) { @@ -190,13 +190,13 @@ class DapTestClient { /// event for [extension]. Future> serviceExtensionAdded(String extension) => serviceExtensionAddedEvents.firstWhere( (Map body) => body['extensionRPC'] == extension, - orElse: () => throw 'Did not recieve $extension extension added event before stream closed'); + orElse: () => throw 'Did not receive $extension extension added event before stream closed'); /// Returns a Future that completes with the next serviceExtensionStateChanged /// event for [extension]. Future> serviceExtensionStateChanged(String extension) => serviceExtensionStateChangedEvents.firstWhere( (Map body) => body['extension'] == extension, - orElse: () => throw 'Did not recieve $extension extension state changed event before stream closed'); + orElse: () => throw 'Did not receive $extension extension state changed event before stream closed'); /// Initializes the debug adapter and launches [program]/[cwd] or calls the /// custom [launch] method. @@ -285,7 +285,7 @@ class _OutgoingRequest { extension DapTestClientExtension on DapTestClient { /// Collects all output events until the program terminates. /// - /// These results include all events in the order they are recieved, including + /// These results include all events in the order they are received, including /// console, stdout and stderr. /// /// Only one of [start] or [launch] may be provided. Use [start] to customise @@ -325,7 +325,7 @@ extension DapTestClientExtension on DapTestClient { /// Collects all output and test events until the program terminates. /// - /// These results include all events in the order they are recieved, including + /// These results include all events in the order they are received, including /// console, stdout, stderr and test notifications from the test JSON reporter. /// /// Only one of [start] or [launch] may be provided. Use [start] to customise