Correct typos (#33322)
Corects a bnuch of typeos throuhgout teh Fluter codebsae. Made use of the `misspell` tool: https://github.com/client9/misspell
This commit is contained in:
@@ -72,7 +72,7 @@ BuildApp() {
|
||||
EchoError "========================================================================"
|
||||
EchoError "ERROR: Unknown FLUTTER_BUILD_MODE: ${build_mode}."
|
||||
EchoError "Valid values are 'Debug', 'Profile', or 'Release' (case insensitive)."
|
||||
EchoError "This is controlled by the FLUTTER_BUILD_MODE environment varaible."
|
||||
EchoError "This is controlled by the FLUTTER_BUILD_MODE environment variable."
|
||||
EchoError "If that is not set, the CONFIGURATION environment variable is used."
|
||||
EchoError ""
|
||||
EchoError "You can fix this by either adding an appropriately named build"
|
||||
|
||||
@@ -131,7 +131,7 @@ abstract class Logger {
|
||||
/// The `timeout` argument sets a duration after which an additional message
|
||||
/// may be shown saying that the operation is taking a long time. (Not all
|
||||
/// [Status] subclasses show such a message.) Set this to null if the
|
||||
/// operation can legitimately take an abritrary amount of time (e.g. waiting
|
||||
/// operation can legitimately take an arbitrary amount of time (e.g. waiting
|
||||
/// for the user).
|
||||
///
|
||||
/// The `progressId` argument provides an ID that can be used to identify
|
||||
|
||||
@@ -13,7 +13,7 @@ import 'dart/package_map.dart';
|
||||
import 'globals.dart';
|
||||
import 'project.dart';
|
||||
|
||||
// Arbitrarily choosen multi-root file scheme. This is used to configure the
|
||||
// Arbitrarily chosen multi-root file scheme. This is used to configure the
|
||||
// frontend_server to resolve a package uri to multiple filesystem directories.
|
||||
// In this case, the source directory and a generated directory.
|
||||
const String kMultiRootScheme = 'org-dartlang-app';
|
||||
|
||||
@@ -72,7 +72,7 @@ class UpgradeCommandRunner {
|
||||
);
|
||||
}
|
||||
}
|
||||
// If there are uncomitted changes we might be on the right commit but
|
||||
// If there are uncommitted changes we might be on the right commit but
|
||||
// we should still warn.
|
||||
if (!force && await hasUncomittedChanges()) {
|
||||
throwToolExit(
|
||||
|
||||
@@ -38,7 +38,7 @@ class KernelCompilerFactory {
|
||||
|
||||
typedef CompilerMessageConsumer = void Function(String message, { bool emphasis, TerminalColor color });
|
||||
|
||||
/// The target model describes the set of core libraries that are availible within
|
||||
/// The target model describes the set of core libraries that are available within
|
||||
/// the SDK.
|
||||
class TargetModel {
|
||||
/// Parse a [TargetModel] from a raw string.
|
||||
@@ -734,7 +734,7 @@ class ResidentCompiler {
|
||||
}
|
||||
|
||||
Future<dynamic> shutdown() async {
|
||||
// Server was never sucessfully created.
|
||||
// Server was never successfully created.
|
||||
if (_server == null) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -190,7 +190,7 @@ class FuchsiaPackageServer {
|
||||
/// Usees [FuchiaPM.newrepo] and [FuchsiaPM.serve] to spin up a new Fuchsia
|
||||
/// package server.
|
||||
///
|
||||
/// Returns false if ther repo could not be created or the server could not
|
||||
/// Returns false if the repo could not be created or the server could not
|
||||
/// be spawned, and true otherwise.
|
||||
Future<bool> start() async {
|
||||
if (_process != null) {
|
||||
|
||||
@@ -84,7 +84,7 @@ class FuchsiaTilesCtl {
|
||||
/// Instructs tiles on the device to begin running the app at [url] in a new
|
||||
/// tile.
|
||||
///
|
||||
/// The app is passed the arguemnts in [args]. Flutter apps receive these
|
||||
/// The app is passed the arguments in [args]. Flutter apps receive these
|
||||
/// arguments as arguments to `main()`. [url] should be formatted as a
|
||||
/// Fuchsia-style package url, e.g.:
|
||||
/// fuchsia-pkg://fuchsia.com/flutter_gallery#meta/flutter_gallery.cmx
|
||||
|
||||
@@ -591,7 +591,7 @@ class MacOSProject {
|
||||
|
||||
/// The file where the Xcode build will write the name of the built app.
|
||||
///
|
||||
/// Ideally this will be replaced in the future with inpection of the Runner
|
||||
/// Ideally this will be replaced in the future with inspection of the Runner
|
||||
/// scheme's target.
|
||||
File get nameFile => _cacheDirectory.childFile('.app_filename');
|
||||
}
|
||||
|
||||
@@ -195,7 +195,7 @@ void main() {
|
||||
await commands.close();
|
||||
});
|
||||
|
||||
testUsingContext('device.getDevices reports avaiable devices', () async {
|
||||
testUsingContext('device.getDevices reports available devices', () async {
|
||||
final StreamController<Map<String, dynamic>> commands = StreamController<Map<String, dynamic>>();
|
||||
final StreamController<Map<String, dynamic>> responses = StreamController<Map<String, dynamic>>();
|
||||
daemon = Daemon(
|
||||
|
||||
@@ -190,7 +190,7 @@ void main() {
|
||||
});
|
||||
});
|
||||
|
||||
group('doctor with overriden validators', () {
|
||||
group('doctor with overridden validators', () {
|
||||
testUsingContext('validate non-verbose output format for run without issues', () async {
|
||||
expect(await doctor.diagnose(verbose: false), isTrue);
|
||||
expect(testLogger.statusText, equals(
|
||||
|
||||
@@ -50,7 +50,7 @@ void main() {
|
||||
expect(await result, null);
|
||||
});
|
||||
|
||||
test('throws tool exit with uncommited changes', () async {
|
||||
test('throws tool exit with uncommitted changes', () async {
|
||||
fakeCommandRunner.willHaveUncomittedChanges = true;
|
||||
final Future<FlutterCommandResult> result = fakeCommandRunner.runCommand(
|
||||
false,
|
||||
@@ -60,7 +60,7 @@ void main() {
|
||||
expect(result, throwsA(isA<ToolExit>()));
|
||||
});
|
||||
|
||||
test('does not throw tool exit with uncommited changes and force', () async {
|
||||
test('does not throw tool exit with uncommitted changes and force', () async {
|
||||
fakeCommandRunner.willHaveUncomittedChanges = true;
|
||||
final Future<FlutterCommandResult> result = fakeCommandRunner.runCommand(
|
||||
true,
|
||||
|
||||
Reference in New Issue
Block a user