diff --git a/CHANGELOG.md b/CHANGELOG.md index b6fdcb85635..4ef3c04d630 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7478,7 +7478,7 @@ Patch release, resolves three issues: - A stack overflow caused by a transformer being run multiple times on the package that defines it has been fixed. - - A transformer that tries to read a non-existent asset in another package + - A transformer that tries to read a nonexistent asset in another package will now be re-run if that asset is later created. [package spec proposal]: https://github.com/lrhn/dep-pkgspec diff --git a/docs/process/language-versions-and-experiments.md b/docs/process/language-versions-and-experiments.md index 54147cadb4d..0dcbea11aa1 100644 --- a/docs/process/language-versions-and-experiments.md +++ b/docs/process/language-versions-and-experiments.md @@ -138,7 +138,7 @@ version of the version reported by tools in that SDK.** This means that: Internally in the Dart SDK repo, the source of truth for the SDK version number is `tools/VERSION`. That file gets updated during the release process when various branches are cut and releases shipped. We could calculate the language -version from that using the above rule, but we're worried that that means the +version from that using the above rule, but we're worried that means the language version could change inadvertently as a consequence of release administrivia. Instead, the repo stores the language version explicitly in `tools/experimental_features.yaml`. diff --git a/pkg/analyzer/lib/src/dart/analysis/context_builder.dart b/pkg/analyzer/lib/src/dart/analysis/context_builder.dart index f872699841b..cca1f5e63d8 100644 --- a/pkg/analyzer/lib/src/dart/analysis/context_builder.dart +++ b/pkg/analyzer/lib/src/dart/analysis/context_builder.dart @@ -175,7 +175,7 @@ class ContextBuilderImpl implements ContextBuilder { } } - /// Return the SDK that that should be used to analyze code. + /// Return the SDK that should be used to analyze code. DartSdk _createSdk({ required Workspace workspace, String? sdkPath, diff --git a/pkg/analyzer/lib/src/dart/ast/utilities.dart b/pkg/analyzer/lib/src/dart/ast/utilities.dart index 4e1fa5cd7a0..57a0bcdfa63 100644 --- a/pkg/analyzer/lib/src/dart/ast/utilities.dart +++ b/pkg/analyzer/lib/src/dart/ast/utilities.dart @@ -1722,7 +1722,7 @@ class NodeLocator extends UnifyingAstVisitor { @override void visitConstructorDeclaration(ConstructorDeclaration node) { // Names do not have AstNodes but offsets at the end should be treated as - // part of the decleration (not parameter list). + // part of the declaration (not parameter list). if (_startOffset == _endOffset && _startOffset == (node.name ?? node.returnType).end) { _foundNode = node; @@ -1735,7 +1735,7 @@ class NodeLocator extends UnifyingAstVisitor { @override void visitFunctionDeclaration(FunctionDeclaration node) { // Names do not have AstNodes but offsets at the end should be treated as - // part of the decleration (not parameter list). + // part of the declaration (not parameter list). if (_startOffset == _endOffset && _startOffset == node.name.end) { _foundNode = node; return; @@ -1747,7 +1747,7 @@ class NodeLocator extends UnifyingAstVisitor { @override void visitMethodDeclaration(MethodDeclaration node) { // Names do not have AstNodes but offsets at the end should be treated as - // part of the decleration (not parameter list). + // part of the declaration (not parameter list). if (_startOffset == _endOffset && _startOffset == node.name.end) { _foundNode = node; return; @@ -1852,7 +1852,7 @@ class NodeLocator2 extends UnifyingAstVisitor { @override void visitConstructorDeclaration(ConstructorDeclaration node) { // Names do not have AstNodes but offsets at the end should be treated as - // part of the decleration (not parameter list). + // part of the declaration (not parameter list). if (_startOffset == _endOffset && _startOffset == (node.name ?? node.returnType).end) { _foundNode = node; @@ -1865,7 +1865,7 @@ class NodeLocator2 extends UnifyingAstVisitor { @override void visitFunctionDeclaration(FunctionDeclaration node) { // Names do not have AstNodes but offsets at the end should be treated as - // part of the decleration (not parameter list). + // part of the declaration (not parameter list). if (_startOffset == _endOffset && _startOffset == node.name.end) { _foundNode = node; return; @@ -1877,7 +1877,7 @@ class NodeLocator2 extends UnifyingAstVisitor { @override void visitMethodDeclaration(MethodDeclaration node) { // Names do not have AstNodes but offsets at the end should be treated as - // part of the decleration (not parameter list). + // part of the declaration (not parameter list). if (_startOffset == _endOffset && _startOffset == node.name.end) { _foundNode = node; return; diff --git a/pkg/analyzer/lib/src/dart/element/element.dart b/pkg/analyzer/lib/src/dart/element/element.dart index f1887b6eb95..f95141d3d00 100644 --- a/pkg/analyzer/lib/src/dart/element/element.dart +++ b/pkg/analyzer/lib/src/dart/element/element.dart @@ -409,7 +409,7 @@ abstract class AbstractClassElementImpl extends _ExistingElementImpl } /// Return an iterable containing all of the implementations of a getter with - /// the given [getterName] that are defined in this class any any superclass + /// the given [getterName] that are defined in this class and any superclass /// of this class (but not in interfaces). /// /// The getters that are returned are not filtered in any way. In particular, @@ -439,7 +439,7 @@ abstract class AbstractClassElementImpl extends _ExistingElementImpl } /// Return an iterable containing all of the implementations of a method with - /// the given [methodName] that are defined in this class any any superclass + /// the given [methodName] that are defined in this class and any superclass /// of this class (but not in interfaces). /// /// The methods that are returned are not filtered in any way. In particular, @@ -468,7 +468,7 @@ abstract class AbstractClassElementImpl extends _ExistingElementImpl } /// Return an iterable containing all of the implementations of a setter with - /// the given [setterName] that are defined in this class any any superclass + /// the given [setterName] that are defined in this class and any superclass /// of this class (but not in interfaces). /// /// The setters that are returned are not filtered in any way. In particular, @@ -4829,7 +4829,7 @@ class MixinElementImpl extends ClassOrMixinElementImpl implements MixinElement { @override set supertype(InterfaceType? supertype) { - throw StateError('Attempt to set a supertype for a mixin declaratio.'); + throw StateError('Attempt to set a supertype for a mixin declaration.'); } @override diff --git a/pkg/analyzer/lib/src/dart/element/generic_inferrer.dart b/pkg/analyzer/lib/src/dart/element/generic_inferrer.dart index b542af510a2..67357d95309 100644 --- a/pkg/analyzer/lib/src/dart/element/generic_inferrer.dart +++ b/pkg/analyzer/lib/src/dart/element/generic_inferrer.dart @@ -459,21 +459,21 @@ class GenericInferrer { } // Only report unique constraint origins. - Iterable<_TypeConstraint> isSatisified(bool expected) => constraintsByOrigin + Iterable<_TypeConstraint> isSatisfied(bool expected) => constraintsByOrigin .values .where((l) => l.every((c) => c.isSatisfiedBy(_typeSystem, inferred)) == expected) .expand((i) => i); - String unsatisified = _formatConstraints(isSatisified(false)); - String satisified = _formatConstraints(isSatisified(true)); + String unsatisfied = _formatConstraints(isSatisfied(false)); + String satisfied = _formatConstraints(isSatisfied(true)); - assert(unsatisified.isNotEmpty); - if (satisified.isNotEmpty) { - satisified = "\nThe type '$inferredStr' was inferred from:\n$satisified"; + assert(unsatisfied.isNotEmpty); + if (satisfied.isNotEmpty) { + satisfied = "\nThe type '$inferredStr' was inferred from:\n$satisfied"; } - return '\n\n$intro\n$unsatisified$satisified\n\n' + return '\n\n$intro\n$unsatisfied$satisfied\n\n' 'Consider passing explicit type argument(s) to the generic.\n\n'; } diff --git a/pkg/analyzer/lib/src/dart/element/type_system.dart b/pkg/analyzer/lib/src/dart/element/type_system.dart index 97cd2eba60f..745f5f9341a 100644 --- a/pkg/analyzer/lib/src/dart/element/type_system.dart +++ b/pkg/analyzer/lib/src/dart/element/type_system.dart @@ -1409,7 +1409,7 @@ class TypeSystemImpl implements TypeSystem { } } - /// Given two lists of type parameters, check that that they have the same + /// Given two lists of type parameters, check that they have the same /// number of elements, and their bounds are equal. /// /// The return value will be a new list of fresh type parameters, that can diff --git a/pkg/analyzer/lib/src/dart/error/hint_codes.g.dart b/pkg/analyzer/lib/src/dart/error/hint_codes.g.dart index 9b83e086ecc..36675c1ac2a 100644 --- a/pkg/analyzer/lib/src/dart/error/hint_codes.g.dart +++ b/pkg/analyzer/lib/src/dart/error/hint_codes.g.dart @@ -188,7 +188,7 @@ class HintCode extends AnalyzerErrorCode { "directory.", ); - /// It is a bad practice for a source file ouside a package "lib" directory + /// It is a bad practice for a source file outside a package "lib" directory /// hierarchy to traverse into that directory hierarchy. For example, a source /// file in the "web" directory should not contain a directive such as /// `import '../lib/some.dart'` which references a file inside the lib diff --git a/pkg/analyzer/lib/src/error/codes.g.dart b/pkg/analyzer/lib/src/error/codes.g.dart index fef7e4ad6fc..037f83c6ddc 100644 --- a/pkg/analyzer/lib/src/error/codes.g.dart +++ b/pkg/analyzer/lib/src/error/codes.g.dart @@ -5028,7 +5028,7 @@ class CompileTimeErrorCode extends AnalyzerErrorCode { ); /// Parameters: - /// 0: the URI pointing to a non-existent file + /// 0: the URI pointing to a nonexistent file static const CompileTimeErrorCode URI_DOES_NOT_EXIST = CompileTimeErrorCode( 'URI_DOES_NOT_EXIST', "Target of URI doesn't exist: '{0}'.", @@ -5039,7 +5039,7 @@ class CompileTimeErrorCode extends AnalyzerErrorCode { ); /// Parameters: - /// 0: the URI pointing to a non-existent file + /// 0: the URI pointing to a nonexistent file static const CompileTimeErrorCode URI_HAS_NOT_BEEN_GENERATED = CompileTimeErrorCode( 'URI_HAS_NOT_BEEN_GENERATED', diff --git a/pkg/analyzer/lib/src/error/dead_code_verifier.dart b/pkg/analyzer/lib/src/error/dead_code_verifier.dart index 9e86d956ed2..2deeb0143ac 100644 --- a/pkg/analyzer/lib/src/error/dead_code_verifier.dart +++ b/pkg/analyzer/lib/src/error/dead_code_verifier.dart @@ -67,7 +67,7 @@ class DeadCodeVerifier extends RecursiveAstVisitor { final importElement = node.element; if (importElement != null) { // The element is null when the URI is invalid, but not when the URI is - // valid but refers to a non-existent file. + // valid but refers to a nonexistent file. LibraryElement? library = importElement.importedLibrary; if (library != null && !library.isSynthetic) { for (Combinator combinator in node.combinators) { diff --git a/pkg/analyzer/lib/src/generated/source.dart b/pkg/analyzer/lib/src/generated/source.dart index 80af1a5e9d1..ab917f2e9b8 100644 --- a/pkg/analyzer/lib/src/generated/source.dart +++ b/pkg/analyzer/lib/src/generated/source.dart @@ -129,7 +129,7 @@ class NonExistingSource extends Source { /// /// If the instances that implement this API are the system of record, then they /// will typically be unique. In that case, sources that are created that -/// represent non-existent files must also be retained so that if those files +/// represent nonexistent files must also be retained so that if those files /// are created at a later date the long-lived sources representing those files /// will know that they now exist. abstract class Source { diff --git a/pkg/analyzer/lib/src/services/top_level_declarations.dart b/pkg/analyzer/lib/src/services/top_level_declarations.dart index aa6a42053ec..44ce77f5ddd 100644 --- a/pkg/analyzer/lib/src/services/top_level_declarations.dart +++ b/pkg/analyzer/lib/src/services/top_level_declarations.dart @@ -19,7 +19,7 @@ class TopLevelDeclarations { return analysisContext as DriverBasedAnalysisContext; } - /// Return the first public library that that exports (but does not necessary + /// Return the first public library that exports (but does not necessary /// declare) [element]. Future publiclyExporting(Element element, {Map? resultCache}) async { diff --git a/pkg/analyzer/messages.yaml b/pkg/analyzer/messages.yaml index c67686256b8..0c512eb7b6c 100644 --- a/pkg/analyzer/messages.yaml +++ b/pkg/analyzer/messages.yaml @@ -15262,7 +15262,7 @@ CompileTimeErrorCode: hasPublishedDocs: true comment: |- Parameters: - 0: the URI pointing to a non-existent file + 0: the URI pointing to a nonexistent file documentation: |- #### Description @@ -15289,7 +15289,7 @@ CompileTimeErrorCode: hasPublishedDocs: true comment: |- Parameters: - 0: the URI pointing to a non-existent file + 0: the URI pointing to a nonexistent file documentation: |- #### Description @@ -18145,7 +18145,7 @@ HintCode: problemMessage: "A file outside the 'lib' directory shouldn't reference a file inside the 'lib' directory using a relative path." correctionMessage: "Try using a 'package:' URI instead." comment: |- - It is a bad practice for a source file ouside a package "lib" directory + It is a bad practice for a source file outside a package "lib" directory hierarchy to traverse into that directory hierarchy. For example, a source file in the "web" directory should not contain a directive such as `import '../lib/some.dart'` which references a file inside the lib diff --git a/pkg/analyzer/test/src/diagnostics/final_initialized_in_delcaration_and_constructor_test.dart b/pkg/analyzer/test/src/diagnostics/final_initialized_in_declaration_and_constructor_test.dart similarity index 100% rename from pkg/analyzer/test/src/diagnostics/final_initialized_in_delcaration_and_constructor_test.dart rename to pkg/analyzer/test/src/diagnostics/final_initialized_in_declaration_and_constructor_test.dart diff --git a/pkg/analyzer/test/src/diagnostics/test_all.dart b/pkg/analyzer/test/src/diagnostics/test_all.dart index 92afb5bfaf3..0263ccc98e4 100644 --- a/pkg/analyzer/test/src/diagnostics/test_all.dart +++ b/pkg/analyzer/test/src/diagnostics/test_all.dart @@ -261,7 +261,7 @@ import 'field_initializing_formal_not_assignable_test.dart' as field_initializing_formal_not_assignable; import 'field_must_be_external_in_struct_test.dart' as field_must_be_external_in_struct; -import 'final_initialized_in_delcaration_and_constructor_test.dart' +import 'final_initialized_in_declaration_and_constructor_test.dart' as final_initialized_in_declaration_and_constructor; import 'final_not_initialized_constructor_test.dart' as final_not_initialized_constructor; diff --git a/pkg/analyzer/test/src/diagnostics/wrong_number_of_parameters_for_operator_test.dart b/pkg/analyzer/test/src/diagnostics/wrong_number_of_parameters_for_operator_test.dart index ee8099d0efc..6ef5b858deb 100644 --- a/pkg/analyzer/test/src/diagnostics/wrong_number_of_parameters_for_operator_test.dart +++ b/pkg/analyzer/test/src/diagnostics/wrong_number_of_parameters_for_operator_test.dart @@ -38,8 +38,8 @@ class WrongNumberOfParametersForOperatorTest extends PubPackageResolutionTest { test_compound_assignment_ok_in_legacy_code() async { // Prior to the fix for https://github.com/dart-lang/sdk/issues/46569, // attempting to use a binary operator with no args as part of a compound - // assignment would crash the analyzer. Check that that doesn't happen - // anymore. + // assignment would crash the analyzer. Check that the crash no longer + // occurs. noSoundNullSafety = false; await assertErrorsInCode(''' // @dart=2.9 diff --git a/pkg/compiler/lib/src/js_backend/native_data.dart b/pkg/compiler/lib/src/js_backend/native_data.dart index 6574c759a6d..f8b214161ff 100644 --- a/pkg/compiler/lib/src/js_backend/native_data.dart +++ b/pkg/compiler/lib/src/js_backend/native_data.dart @@ -321,7 +321,7 @@ class NativeBasicData { } /// Returns `true` if [element] or any of its superclasses is native. Supports - /// nullable element for checks on non-existent enclosing class of top-level + /// nullable element for checks on nonexistent enclosing class of top-level /// functions. bool isNativeOrExtendsNative(ClassEntity? element) { if (element == null) return false; diff --git a/pkg/compiler/lib/src/js_model/js_strategy.dart b/pkg/compiler/lib/src/js_model/js_strategy.dart index 1ba4dfe94f7..48e1aebe8bb 100644 --- a/pkg/compiler/lib/src/js_model/js_strategy.dart +++ b/pkg/compiler/lib/src/js_model/js_strategy.dart @@ -424,7 +424,7 @@ class JsBackendStrategy { /// the serialized data. /// /// The needed members include members computed on demand during non-modular - /// code generation, such as constructor bodies and and generator bodies. + /// code generation, such as constructor bodies and generator bodies. EntityWriter forEachCodegenMember(void Function(MemberEntity member) f) { int earlyMemberIndexLimit = _elementMap.prepareForCodegenSerialization(); ClosedEntityWriter entityWriter = ClosedEntityWriter(earlyMemberIndexLimit); diff --git a/pkg/compiler/test/end_to_end/dart2js_batch_test.dart b/pkg/compiler/test/end_to_end/dart2js_batch_test.dart index ae816fbabbc..4e2034a2f01 100644 --- a/pkg/compiler/test/end_to_end/dart2js_batch_test.dart +++ b/pkg/compiler/test/end_to_end/dart2js_batch_test.dart @@ -69,7 +69,7 @@ Future runTests(Process process) { process.stdin.writeln('--no-sound-null-safety --out="$outFile" "$inFile"'); process.stdin.writeln('--no-sound-null-safety --out="$outFile2" "$inFile"'); process.stdin.writeln('too many arguments'); - process.stdin.writeln(r'"non existing file.dart"'); + process.stdin.writeln(r'"nonexistent file.dart"'); process.stdin.close(); Future output = process.stdout.transform(utf8.decoder).join(); Future errorOut = process.stderr.transform(utf8.decoder).join(); diff --git a/pkg/front_end/test/fasta/super_mixins_test.dart b/pkg/front_end/test/fasta/super_mixins_test.dart index d1db05d2edc..b3a0d8d9991 100644 --- a/pkg/front_end/test/fasta/super_mixins_test.dart +++ b/pkg/front_end/test/fasta/super_mixins_test.dart @@ -98,7 +98,7 @@ Future testDisabledSuperMixins() async { } /// Check that in an abstract class an error is reported only for a -/// super-invocation that targets an non-existent method, a super-invocation +/// super-invocation that targets an nonexistent method, a super-invocation /// that targets an abstract member of the super-class should not be reported. /// In non-abstract class we should report both cases as an error. Future testEnabledSuperMixins() async { diff --git a/pkg/front_end/test/incremental_utils.dart b/pkg/front_end/test/incremental_utils.dart index 7ad424cd1b2..e32f2532e1d 100644 --- a/pkg/front_end/test/incremental_utils.dart +++ b/pkg/front_end/test/incremental_utils.dart @@ -82,7 +82,7 @@ Future throwOnInsufficientUriToSource(Component component, if (uri == null) continue; if (!uri.isScheme("org-dartlang-test")) continue; // The file system doesn't have the sources for any modules. - // For now assume that that is always what's going on. + // For now assume that is always what's going on. if (!await fileSystem.entityForUri(uri).exists()) continue; List expected = await fileSystem.entityForUri(uri).readAsBytes(); List actual = component.uriToSource[uri]!.source; diff --git a/pkg/front_end/testcases/dartino/main_args.incremental.yaml b/pkg/front_end/testcases/dartino/main_args.incremental.yaml index f0cdd202ac5..d3f0af465ba 100644 --- a/pkg/front_end/testcases/dartino/main_args.incremental.yaml +++ b/pkg/front_end/testcases/dartino/main_args.incremental.yaml @@ -3,7 +3,7 @@ # BSD-style license that can be found in the LICENSE.md file. main.dart.patch: | - // Test that that isolate support works + // Test that isolate support works main(arguments) { print( <<<< "Hello, Isolated World!" 'Hello, Isolated World!' diff --git a/pkg/frontend_server/test/frontend_server_test.dart b/pkg/frontend_server/test/frontend_server_test.dart index c5c1cfa14d6..2cb96be14ec 100644 --- a/pkg/frontend_server/test/frontend_server_test.dart +++ b/pkg/frontend_server/test/frontend_server_test.dart @@ -636,7 +636,7 @@ void main() async { count += 1; } else { expect(count, 3); - // Third request is to 'compile' non-existent file, that should fail. + // Third request is to 'compile' nonexistent file, that should fail. expect(result.errorsCount, greaterThan(0)); frontendServer.quit(); @@ -1935,7 +1935,7 @@ void main(List arguments, SendPort sendPort) { expect(await starter(args), 0); }, skip: 'https://github.com/dart-lang/sdk/issues/43959'); - test('compile to JavaScript weak null safety then non-existent file', + test('compile to JavaScript weak null safety then nonexistent file', () async { var file = File('${tempDir.path}/foo.dart')..createSync(); file.writeAsStringSync("main() {\n}\n"); @@ -1981,7 +1981,7 @@ void main(List arguments, SendPort sendPort) { frontendServer.compile('foo.bar'); } else { expect(count, 2); - // Second request is to 'compile' non-existent file, that should fail. + // Second request is to 'compile' nonexistent file, that should fail. expect(result.errorsCount, greaterThan(0)); frontendServer.quit(); } @@ -2565,7 +2565,7 @@ e() { count += 1; } else { expect(count, 3); - // Fourth request is to 'compile' non-existent file, that should fail. + // Fourth request is to 'compile' nonexistent file, that should fail. expect(result.errorsCount, greaterThan(0)); frontendServer.quit(); diff --git a/pkg/kernel/lib/type_checker.dart b/pkg/kernel/lib/type_checker.dart index 57b47190925..daef410193c 100644 --- a/pkg/kernel/lib/type_checker.dart +++ b/pkg/kernel/lib/type_checker.dart @@ -852,7 +852,7 @@ class TypeCheckingVisitor } assert( result != null, - "Encountered RecordNameGet with non-existent name key: " + "Encountered RecordNameGet with nonexistent name key: " "'${node.name}'."); return result!; } diff --git a/pkg/modular_test/lib/src/loader.dart b/pkg/modular_test/lib/src/loader.dart index 048003961a1..82a5339e81a 100644 --- a/pkg/modular_test/lib/src/loader.dart +++ b/pkg/modular_test/lib/src/loader.dart @@ -136,7 +136,7 @@ void _attachDependencies( final module = modules[name]; if (module == null) { _invalidTest( - "declared dependencies for a non existing module named '$name'"); + "declared dependencies for a nonexistent module named '$name'"); } if (module.dependencies.isNotEmpty) { _invalidTest("Module dependencies have already been declared on $name."); @@ -144,7 +144,7 @@ void _attachDependencies( moduleDependencies.forEach((dependencyName) { final moduleDependency = modules[dependencyName]; if (moduleDependency == null) { - _invalidTest("'$name' declares a dependency on a non existing module " + _invalidTest("'$name' declares a dependency on a nonexistent module " "named '$dependencyName'"); } module.dependencies.add(moduleDependency); diff --git a/pkg/modular_test/test/loader/missing_dependency_module_error/expectation.txt b/pkg/modular_test/test/loader/missing_dependency_module_error/expectation.txt index 7fc8c8bd62d..98945bb1457 100644 --- a/pkg/modular_test/test/loader/missing_dependency_module_error/expectation.txt +++ b/pkg/modular_test/test/loader/missing_dependency_module_error/expectation.txt @@ -1,3 +1,3 @@ # This expectation file is generated by loader_test.dart -Invalid test: 'main' declares a dependency on a non existing module named 'foo' \ No newline at end of file +Invalid test: 'main' declares a dependency on a nonexistent module named 'foo' \ No newline at end of file diff --git a/pkg/modular_test/test/loader/missing_module_error/expectation.txt b/pkg/modular_test/test/loader/missing_module_error/expectation.txt index 6551c46b07e..f31b9773d31 100644 --- a/pkg/modular_test/test/loader/missing_module_error/expectation.txt +++ b/pkg/modular_test/test/loader/missing_module_error/expectation.txt @@ -1,3 +1,3 @@ # This expectation file is generated by loader_test.dart -Invalid test: declared dependencies for a non existing module named 'foo' \ No newline at end of file +Invalid test: declared dependencies for a nonexistent module named 'foo' \ No newline at end of file diff --git a/pkg/status_file/test/data/co19-dart2js.status b/pkg/status_file/test/data/co19-dart2js.status index 70cc2e52d58..c711a03c40e 100644 --- a/pkg/status_file/test/data/co19-dart2js.status +++ b/pkg/status_file/test/data/co19-dart2js.status @@ -2201,7 +2201,7 @@ LayoutTests/fast/dom/HTMLLabelElement/click-label_t01: RuntimeError # Please tri LayoutTests/fast/dom/HTMLLabelElement/form/test1_t01: RuntimeError # Please triage this failure LayoutTests/fast/dom/HTMLLinkElement/link-and-subresource-test_t01: Skip # Times out. Please triage this failure LayoutTests/fast/dom/HTMLLinkElement/link-beforeload-recursive_t01: Skip # Times out. Please triage this failure -LayoutTests/fast/dom/HTMLLinkElement/link-onerror-stylesheet-with-existent-and-non-existent-import_t01: Pass, RuntimeError # Please triage this failure +LayoutTests/fast/dom/HTMLLinkElement/link-onerror-stylesheet-with-existent-and-nonexistent-import_t01: Pass, RuntimeError # Please triage this failure LayoutTests/fast/dom/HTMLLinkElement/prefetch-onerror_t01: Skip # Times out. Please triage this failure LayoutTests/fast/dom/HTMLLinkElement/prefetch-onload_t01: Skip # Times out. Please triage this failure LayoutTests/fast/dom/HTMLLinkElement/prefetch_t01: Skip # Times out. Please triage this failure @@ -2221,7 +2221,7 @@ LayoutTests/fast/dom/HTMLScriptElement/remove-in-beforeload_t01: RuntimeError # LayoutTests/fast/dom/HTMLScriptElement/remove-source_t01: RuntimeError # Issue 18128 LayoutTests/fast/dom/HTMLScriptElement/script-set-src_t01: Pass, RuntimeError # Please triage this failure LayoutTests/fast/dom/HTMLSelectElement/change-multiple-preserve-selection_t01: RuntimeError # Please triage this failure -LayoutTests/fast/dom/HTMLStyleElement/style-onerror-with-existent-and-non-existent-import_t01: Pass, RuntimeError # Please triage this failure +LayoutTests/fast/dom/HTMLStyleElement/style-onerror-with-existent-and-nonexistent-import_t01: Pass, RuntimeError # Please triage this failure LayoutTests/fast/dom/HTMLTableElement/cellpadding-attribute_t01: RuntimeError # Please triage this failure LayoutTests/fast/dom/HTMLTemplateElement/custom-element-wrapper-gc_t01: RuntimeError # Issue 18250 LayoutTests/fast/dom/HTMLTemplateElement/cycles-in-shadow_t01: RuntimeError # Please triage this failure @@ -4905,8 +4905,8 @@ LayoutTests/fast/dom/HTMLLabelElement/label-control_t01: RuntimeError # Please t LayoutTests/fast/dom/HTMLLinkElement/link-and-subresource-test-nonexistent_t01: Skip # Times out. Please triage this failure LayoutTests/fast/dom/HTMLLinkElement/link-and-subresource-test_t01: Skip # Times out. Please triage this failure LayoutTests/fast/dom/HTMLLinkElement/link-beforeload-recursive_t01: Skip # Times out. Please triage this failure -LayoutTests/fast/dom/HTMLLinkElement/link-onerror-stylesheet-with-existent-and-non-existent-import_t01: RuntimeError # Please triage this failure -LayoutTests/fast/dom/HTMLLinkElement/link-onerror-stylesheet-with-non-existent-import_t01: RuntimeError # Please triage this failure +LayoutTests/fast/dom/HTMLLinkElement/link-onerror-stylesheet-with-existent-and-nonexistent-import_t01: RuntimeError # Please triage this failure +LayoutTests/fast/dom/HTMLLinkElement/link-onerror-stylesheet-with-nonexistent-import_t01: RuntimeError # Please triage this failure LayoutTests/fast/dom/HTMLLinkElement/link-onerror_t01: RuntimeError # Please triage this failure LayoutTests/fast/dom/HTMLLinkElement/link-onload-before-page-load_t01: RuntimeError # Please triage this failure LayoutTests/fast/dom/HTMLLinkElement/link-onload-stylesheet-with-import_t01: RuntimeError # Please triage this failure @@ -4944,7 +4944,7 @@ LayoutTests/fast/dom/HTMLSelectElement/named-options_t01: RuntimeError # Please LayoutTests/fast/dom/HTMLSelectElement/selected-index-preserved-when-option-text-changes_t01: RuntimeError # Please triage this failure LayoutTests/fast/dom/HTMLStyleElement/programmatically-add-style-with-onerror-handler_t01: Skip # Times out. Please triage this failure LayoutTests/fast/dom/HTMLStyleElement/programmatically-add-style-with-onload-handler_t01: Skip # Times out. Please triage this failure -LayoutTests/fast/dom/HTMLStyleElement/style-onerror-with-existent-and-non-existent-import_t01: RuntimeError # Please triage this failure +LayoutTests/fast/dom/HTMLStyleElement/style-onerror-with-existent-and-nonexistent-import_t01: RuntimeError # Please triage this failure LayoutTests/fast/dom/HTMLStyleElement/style-onerror_t01: RuntimeError # Please triage this failure LayoutTests/fast/dom/HTMLStyleElement/style-onload-before-page-load_t01: RuntimeError # Please triage this failure LayoutTests/fast/dom/HTMLStyleElement/style-onload2_t01: RuntimeError # Please triage this failure diff --git a/pkg/test_runner/lib/src/multitest.dart b/pkg/test_runner/lib/src/multitest.dart index 0cebbc8f0c6..26543875a75 100644 --- a/pkg/test_runner/lib/src/multitest.dart +++ b/pkg/test_runner/lib/src/multitest.dart @@ -290,7 +290,7 @@ Set _findAllRelativeImports(Path topLibrary) { if (match == null) continue; var relativePath = match.group(3)!; - // If a multitest deliberately imports a non-existent file, don't try to + // If a multitest deliberately imports a nonexistent file, don't try to // include it. if (relativePath.contains("nonexistent")) continue; diff --git a/pkg/vm/lib/metadata/inferred_type.dart b/pkg/vm/lib/metadata/inferred_type.dart index 4c02c83ad78..394c3e2a39e 100644 --- a/pkg/vm/lib/metadata/inferred_type.dart +++ b/pkg/vm/lib/metadata/inferred_type.dart @@ -29,7 +29,7 @@ class InferredType { // Each component may be null if that particular type argument was not // inferred. // - // Otherwise, a non-null type argument indicates that that particular type + // Otherwise, a non-null type argument indicates that particular type // argument (in the runtime type) is always exactly a particular `DartType`. final List? exactTypeArguments; diff --git a/pkg/vm_service/test/rpc_error_test.dart b/pkg/vm_service/test/rpc_error_test.dart index 67330c2245f..2262547198d 100644 --- a/pkg/vm_service/test/rpc_error_test.dart +++ b/pkg/vm_service/test/rpc_error_test.dart @@ -9,7 +9,7 @@ import 'common/test_helper.dart'; var tests = [ (VmService vm) async { - // Invoke a non-existent RPC. + // Invoke a nonexistent RPC. try { final res = await vm.callMethod('foo'); fail('Expected RPCError, got $res'); diff --git a/runtime/bin/analyze_snapshot.cc b/runtime/bin/analyze_snapshot.cc index 1e6f9a3bae2..db4084cc1be 100644 --- a/runtime/bin/analyze_snapshot.cc +++ b/runtime/bin/analyze_snapshot.cc @@ -168,7 +168,7 @@ int RunAnalyzer(int argc, char** argv) { const char* script_name = nullptr; script_name = inputs.GetArgument(0); - // Dart_LoadELF will crash on nonexistant file non-gracefully + // Dart_LoadELF will crash on nonexistent file non-gracefully // even though it should return `nullptr`. File* const file = File::Open(/*namespc=*/nullptr, script_name, File::kRead); if (file == nullptr) { diff --git a/runtime/bin/eventhandler_test.cc b/runtime/bin/eventhandler_test.cc index 76880634e6e..26fbd4038cd 100644 --- a/runtime/bin/eventhandler_test.cc +++ b/runtime/bin/eventhandler_test.cc @@ -64,7 +64,7 @@ VM_UNIT_TEST_CASE(CircularLinkedList) { list.Rotate(); EXPECT(list.head() == 1); - // Test: Remove non-existent element leaves list un-changed. + // Test: Remove nonexistent element leaves list un-changed. list.Remove(4242); EXPECT(list.head() == 1); @@ -75,7 +75,7 @@ VM_UNIT_TEST_CASE(CircularLinkedList) { list.Remove(10); EXPECT(!list.HasHead()); - // Test: Remove non-existent element from empty list works. + // Test: Remove nonexistent element from empty list works. list.Remove(4242); } diff --git a/runtime/platform/priority_queue.h b/runtime/platform/priority_queue.h index 2064fcc875d..0e6f2906773 100644 --- a/runtime/platform/priority_queue.h +++ b/runtime/platform/priority_queue.h @@ -257,7 +257,7 @@ class PriorityQueue { // // Deletion operations can be performed by replacing the minimum element // (first entry) by the last entry (bottom right) and bubbling it down until - // the tree invariant is satisified again. + // the tree invariant is satisfied again. Entry* min_heap_; intptr_t min_heap_size_; intptr_t size_; diff --git a/runtime/third_party/double-conversion/src/fixed-dtoa.cc b/runtime/third_party/double-conversion/src/fixed-dtoa.cc index 390e823d95e..4866cff1a38 100644 --- a/runtime/third_party/double-conversion/src/fixed-dtoa.cc +++ b/runtime/third_party/double-conversion/src/fixed-dtoa.cc @@ -395,7 +395,7 @@ bool FastFixedDtoa(double v, buffer[*length] = '\0'; if ((*length) == 0) { // The string is empty and the decimal_point thus has no importance. Mimic - // Gay's dtoa and and set it to -fractional_count. + // Gay's dtoa and set it to -fractional_count. *decimal_point = -fractional_count; } return true; diff --git a/runtime/vm/compiler/backend/redundancy_elimination.cc b/runtime/vm/compiler/backend/redundancy_elimination.cc index a86b0ba9475..b6977a64065 100644 --- a/runtime/vm/compiler/backend/redundancy_elimination.cc +++ b/runtime/vm/compiler/backend/redundancy_elimination.cc @@ -3159,7 +3159,7 @@ class StoreOptimizer : public LivenessAnalysis { // still load from all places. live_in->CopyFrom(all_places); } else { - // If we are oustide of try-catch block, instructions that "may + // If we are outside of try-catch block, instructions that "may // throw" only "load from escaping places". // If we are inside of try-catch block, instructions that "may // throw" also "load from all places". diff --git a/runtime/vm/compiler/cha.cc b/runtime/vm/compiler/cha.cc index 8d23e007b48..a202be1af6e 100644 --- a/runtime/vm/compiler/cha.cc +++ b/runtime/vm/compiler/cha.cc @@ -151,7 +151,7 @@ static intptr_t CountFinalizedSubclasses(Thread* thread, const Class& cls) { Class& direct_subclass = Class::Handle(thread->zone()); for (intptr_t i = 0; i < cls_direct_subclasses.Length(); i++) { direct_subclass ^= cls_direct_subclasses.At(i); - // Unfinalized classes are treated as non-existent for CHA purposes, + // Unfinalized classes are treated as nonexistent for CHA purposes, // as that means that no instance of that class exists at runtime. if (!direct_subclass.is_finalized()) { continue; @@ -206,7 +206,7 @@ bool CHA::HasOverride(const Class& cls, Class& direct_subclass = Class::Handle(thread_->zone()); for (intptr_t i = 0; i < cls_direct_subclasses.Length(); i++) { direct_subclass ^= cls_direct_subclasses.At(i); - // Unfinalized classes are treated as non-existent for CHA purposes, + // Unfinalized classes are treated as nonexistent for CHA purposes, // as that means that no instance of that class exists at runtime. if (!direct_subclass.is_finalized()) { continue; diff --git a/runtime/vm/heap/heap.h b/runtime/vm/heap/heap.h index c31c544185c..4539249f96b 100644 --- a/runtime/vm/heap/heap.h +++ b/runtime/vm/heap/heap.h @@ -190,7 +190,7 @@ class Heap { static const char* GCTypeToString(GCType type); static const char* GCReasonToString(GCReason reason); - // Associate a peer with an object. A non-existent peer is equal to NULL. + // Associate a peer with an object. A nonexistent peer is equal to NULL. void SetPeer(ObjectPtr raw_obj, void* peer) { SetWeakEntry(raw_obj, kPeers, reinterpret_cast(peer)); } @@ -200,7 +200,7 @@ class Heap { int64_t PeerCount() const; #if !defined(HASH_IN_OBJECT_HEADER) - // Associate an identity hashCode with an object. An non-existent hashCode + // Associate an identity hashCode with an object. An nonexistent hashCode // is equal to 0. intptr_t SetHashIfNotSet(ObjectPtr raw_obj, intptr_t hash) { return SetWeakEntryIfNonExistent(raw_obj, kIdentityHashes, hash); diff --git a/runtime/vm/regexp.cc b/runtime/vm/regexp.cc index 683d3b34d62..5d9b8198834 100644 --- a/runtime/vm/regexp.cc +++ b/runtime/vm/regexp.cc @@ -2372,7 +2372,7 @@ static void UpdateBoundsCheck(intptr_t index, intptr_t* checked_up_to) { // do the test for that character first. We do this in separate passes. The // 'preloaded' argument indicates that we are doing such a 'pass'. If such a // pass has been performed then subsequent passes will have true in -// first_element_checked to indicate that that character does not need to be +// first_element_checked to indicate that character does not need to be // checked again. // // In addition to all this we are passed a Trace, which can diff --git a/sdk/lib/_internal/js_dev_runtime/patch/core_patch.dart b/sdk/lib/_internal/js_dev_runtime/patch/core_patch.dart index e440baa103f..656df1f8a72 100644 --- a/sdk/lib/_internal/js_dev_runtime/patch/core_patch.dart +++ b/sdk/lib/_internal/js_dev_runtime/patch/core_patch.dart @@ -2146,7 +2146,7 @@ class _BigIntImpl implements BigInt { resultDigits[resultUsed++] = 0; } - // Negate y so we can later use _mulAdd instead of non-existent _mulSub. + // Negate y so we can later use _mulAdd instead of nonexistent _mulSub. var nyDigits = Uint16List(yUsed + 2); nyDigits[yUsed] = 1; _absSub(nyDigits, yUsed + 1, yDigits, yUsed, nyDigits); diff --git a/sdk/lib/_internal/js_runtime/lib/core_patch.dart b/sdk/lib/_internal/js_runtime/lib/core_patch.dart index c427dfc7c85..e196f38b890 100644 --- a/sdk/lib/_internal/js_runtime/lib/core_patch.dart +++ b/sdk/lib/_internal/js_runtime/lib/core_patch.dart @@ -1999,7 +1999,7 @@ class _BigIntImpl implements BigInt { resultDigits[resultUsed++] = 0; } - // Negate y so we can later use _mulAdd instead of non-existent _mulSub. + // Negate y so we can later use _mulAdd instead of nonexistent _mulSub. var nyDigits = new Uint16List(yUsed + 2); nyDigits[yUsed] = 1; _absSub(nyDigits, yUsed + 1, yDigits, yUsed, nyDigits); diff --git a/sdk/lib/_internal/vm_shared/lib/bigint_patch.dart b/sdk/lib/_internal/vm_shared/lib/bigint_patch.dart index 5822c9a3873..e9536bd35f0 100644 --- a/sdk/lib/_internal/vm_shared/lib/bigint_patch.dart +++ b/sdk/lib/_internal/vm_shared/lib/bigint_patch.dart @@ -1427,7 +1427,7 @@ class _BigIntImpl implements BigInt { if (resultUsed.isOdd) { resultDigits[resultUsed] = 0; // Leading zero for 64-bit processing. } - // Negate y so we can later use _mulAdd instead of non-existent _mulSub. + // Negate y so we can later use _mulAdd instead of nonexistent _mulSub. var nyDigits = _newDigits(yUsed + 2); nyDigits[yUsed] = 1; _absSub(nyDigits, yUsed + 1, yDigits, yUsed, nyDigits); diff --git a/sdk/lib/core/object.dart b/sdk/lib/core/object.dart index ef55aec7fe9..6e67af1353e 100644 --- a/sdk/lib/core/object.dart +++ b/sdk/lib/core/object.dart @@ -99,7 +99,7 @@ class Object { /// mainly for debugging or logging. external String toString(); - /// Invoked when a non-existent method or property is accessed. + /// Invoked when a nonexistent method or property is accessed. /// /// A dynamic member invocation can attempt to call a member which /// doesn't exist on the receiving object. Example: diff --git a/sdk/lib/html/html_common/metadata.dart b/sdk/lib/html/html_common/metadata.dart index 8e2f616c8dc..baf29b1665c 100644 --- a/sdk/lib/html/html_common/metadata.dart +++ b/sdk/lib/html/html_common/metadata.dart @@ -55,7 +55,7 @@ class DomName { } /** - * Metadata that specifies that that member is editable through generated + * Metadata that specifies that member is editable through generated * files. */ class DocsEditable { diff --git a/sdk/lib/io/directory.dart b/sdk/lib/io/directory.dart index c64404eab78..4af7273b488 100644 --- a/sdk/lib/io/directory.dart +++ b/sdk/lib/io/directory.dart @@ -81,7 +81,7 @@ part of dart.io; /// void main() async { /// final myDir = Directory('dir'); /// var isThere = await myDir.exists(); -/// print(isThere ? 'exists' : 'non-existent'); +/// print(isThere ? 'exists' : 'nonexistent'); /// } /// ``` /// diff --git a/sdk/lib/io/file_system_entity.dart b/sdk/lib/io/file_system_entity.dart index 14e4ae1d1f7..37662f92bc8 100644 --- a/sdk/lib/io/file_system_entity.dart +++ b/sdk/lib/io/file_system_entity.dart @@ -216,7 +216,7 @@ FileStat: type $type /// Here's the exists method in action: /// ```dart /// var isThere = await entity.exists(); -/// print(isThere ? 'exists' : 'non-existent'); +/// print(isThere ? 'exists' : 'nonexistent'); /// ``` /// /// ## Other resources diff --git a/sdk/lib/vmservice/running_isolates.dart b/sdk/lib/vmservice/running_isolates.dart index 09f2f559718..c7b6c991b72 100644 --- a/sdk/lib/vmservice/running_isolates.dart +++ b/sdk/lib/vmservice/running_isolates.dart @@ -115,7 +115,7 @@ class _Evaluator { final buildScope = Message._fromJsonRpcRequest(_message.client!, buildScopeParams); - // Decode the JSON and and insert it into the map. The map key + // Decode the JSON and insert it into the map. The map key // is the request Uri. return _isolate.routeRequest(_service, buildScope); } diff --git a/tests/corelib/int_modpow_hard_test.dart b/tests/corelib/int_modpow_hard_test.dart index 0024c9a89c2..489314fd52e 100644 --- a/tests/corelib/int_modpow_hard_test.dart +++ b/tests/corelib/int_modpow_hard_test.dart @@ -2,7 +2,7 @@ // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. -// Extreme values from int_modulo_arith_test. Test cases that that have +// Extreme values from int_modulo_arith_test. Test cases that have // intermediate values that overflow the precision of 'int'. import "package:expect/expect.dart"; diff --git a/tests/corelib_2/int_modpow_hard_test.dart b/tests/corelib_2/int_modpow_hard_test.dart index 98ad0c64ef3..1a6a011565f 100644 --- a/tests/corelib_2/int_modpow_hard_test.dart +++ b/tests/corelib_2/int_modpow_hard_test.dart @@ -4,7 +4,7 @@ // @dart = 2.9 -// Extreme values from int_modulo_arith_test. Test cases that that have +// Extreme values from int_modulo_arith_test. Test cases that have // intermediate values that overflow the precision of 'int'. import "package:expect/expect.dart"; diff --git a/tests/dartdevc/mixin/mixin_declaration_application_test.dart b/tests/dartdevc/mixin/mixin_declaration_application_test.dart index e61d48c4490..7750712c0ed 100644 --- a/tests/dartdevc/mixin/mixin_declaration_application_test.dart +++ b/tests/dartdevc/mixin/mixin_declaration_application_test.dart @@ -10,7 +10,7 @@ void main() { Expect.equals('B._foo', D0().foo); // When mixin application is in the same library as the declaration, - // private symbol from the mixin delaration `B._foo` overrides `A._foo`. + // private symbol from the mixin declaration `B._foo` overrides `A._foo`. Expect.equals('B._foo', C()._foo); Expect.equals('B._foo', D()._foo); // Getter `foo` returns `B._foo` that is coming from the mixin declaration. diff --git a/tests/dartdevc_2/mixin/mixin_declaration_application_test.dart b/tests/dartdevc_2/mixin/mixin_declaration_application_test.dart index 246f8b331a8..952014dfd3a 100644 --- a/tests/dartdevc_2/mixin/mixin_declaration_application_test.dart +++ b/tests/dartdevc_2/mixin/mixin_declaration_application_test.dart @@ -12,7 +12,7 @@ void main() { Expect.equals('B._foo', D0().foo); // When mixin application is in the same library as the declaration, - // private symbol from the mixin delaration `B._foo` overrides `A._foo`. + // private symbol from the mixin declaration `B._foo` overrides `A._foo`. Expect.equals('B._foo', C()._foo); Expect.equals('B._foo', D()._foo); // Getter `foo` returns `B._foo` that is coming from the mixin declaration. diff --git a/tests/language/vm/no_such_method_error_message_callable_vm_test.dart b/tests/language/vm/no_such_method_error_message_callable_vm_test.dart index 87b67fd45f0..51f1b877c92 100644 --- a/tests/language/vm/no_such_method_error_message_callable_vm_test.dart +++ b/tests/language/vm/no_such_method_error_message_callable_vm_test.dart @@ -5,7 +5,7 @@ import "package:expect/expect.dart"; -// Test error message with noSuchMethodError: non-existent names +// Test error message with noSuchMethodError: nonexistent names // should result in a message that reports the missing method. class Callable { diff --git a/tests/language/vm/no_such_method_error_message_vm_test.dart b/tests/language/vm/no_such_method_error_message_vm_test.dart index 575a9662e54..0747e7a8593 100644 --- a/tests/language/vm/no_such_method_error_message_vm_test.dart +++ b/tests/language/vm/no_such_method_error_message_vm_test.dart @@ -5,7 +5,7 @@ import "package:expect/expect.dart"; -// Test error message with noSuchMethodError: non-existent names +// Test error message with noSuchMethodError: nonexistent names // should result in a message that reports the missing method. call_bar(x) => x.bar(); diff --git a/tests/language_2/vm/no_such_method_error_message_callable_vm_test.dart b/tests/language_2/vm/no_such_method_error_message_callable_vm_test.dart index aedb1afd91e..a0723f76534 100644 --- a/tests/language_2/vm/no_such_method_error_message_callable_vm_test.dart +++ b/tests/language_2/vm/no_such_method_error_message_callable_vm_test.dart @@ -7,7 +7,7 @@ import "package:expect/expect.dart"; -// Test error message with noSuchMethodError: non-existent names +// Test error message with noSuchMethodError: nonexistent names // should result in a message that reports the missing method. class Callable { diff --git a/tests/language_2/vm/no_such_method_error_message_vm_test.dart b/tests/language_2/vm/no_such_method_error_message_vm_test.dart index f029976a226..498628074dc 100644 --- a/tests/language_2/vm/no_such_method_error_message_vm_test.dart +++ b/tests/language_2/vm/no_such_method_error_message_vm_test.dart @@ -7,7 +7,7 @@ import "package:expect/expect.dart"; -// Test error message with noSuchMethodError: non-existent names +// Test error message with noSuchMethodError: nonexistent names // should result in a message that reports the missing method. call_bar(x) => x.bar(); diff --git a/tests/standalone/io/file_error_test.dart b/tests/standalone/io/file_error_test.dart index 28c26e1aca4..1c84e87c141 100644 --- a/tests/standalone/io/file_error_test.dart +++ b/tests/standalone/io/file_error_test.dart @@ -135,7 +135,7 @@ void testCreateInNonExistentDirectory() { Directory temp = tempDir(); var file = new File("${temp.path}/nonExistentDirectory/newFile"); - // Create in non-existent directory should throw exception. + // Create in nonexistent directory should throw exception. Expect.throws(() => file.createSync(), (e) => checkCreateInNonExistentFileSystemException(e)); @@ -162,7 +162,7 @@ void testResolveSymbolicLinksOnNonExistentDirectory() { Directory temp = tempDir(); var file = new File("${temp.path}/nonExistentDirectory"); - // Full path non-existent directory should throw exception. + // Full path nonexistent directory should throw exception. Expect.throws(() => file.resolveSymbolicLinksSync(), (e) => checkResolveSymbolicLinksOnNonExistentFileSystemException(e)); diff --git a/tests/standalone_2/io/file_error_test.dart b/tests/standalone_2/io/file_error_test.dart index 4d53b7b4237..5e72d06f8a7 100644 --- a/tests/standalone_2/io/file_error_test.dart +++ b/tests/standalone_2/io/file_error_test.dart @@ -137,7 +137,7 @@ void testCreateInNonExistentDirectory() { Directory temp = tempDir(); var file = new File("${temp.path}/nonExistentDirectory/newFile"); - // Create in non-existent directory should throw exception. + // Create in nonexistent directory should throw exception. Expect.throws(() => file.createSync(), (e) => checkCreateInNonExistentFileSystemException(e)); @@ -164,7 +164,7 @@ void testResolveSymbolicLinksOnNonExistentDirectory() { Directory temp = tempDir(); var file = new File("${temp.path}/nonExistentDirectory"); - // Full path non-existent directory should throw exception. + // Full path nonexistent directory should throw exception. Expect.throws(() => file.resolveSymbolicLinksSync(), (e) => checkResolveSymbolicLinksOnNonExistentFileSystemException(e));