From df97aca1fac07046cb92ad45cd0b03443a9ae2f5 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 19 Dec 2022 12:56:47 +0000 Subject: [PATCH] Spelling tests Closes https://github.com/dart-lang/sdk/pull/50764 GitOrigin-RevId: ee2fe9a75d50e877f4ad2fe3743acdbc04f186ef Change-Id: Ia73cd22da4e6ec95e84772aa4e1345ce2dbde215 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/276360 Reviewed-by: Erik Ernst Commit-Queue: Erik Ernst --- tests/corelib/collection_length_test.dart | 2 +- tests/corelib/error_stack_trace2_test.dart | 2 +- tests/corelib/local_date_time_test.dart | 2 +- tests/corelib/object_hash_test.dart | 2 +- tests/corelib/string_case_test.dart | 2 +- tests/corelib/unsigned_shift_test.dart | 2 +- tests/corelib_2/collection_length_test.dart | 2 +- tests/corelib_2/local_date_time_test.dart | 2 +- tests/corelib_2/object_hash_test.dart | 2 +- tests/corelib_2/string_case_test.dart | 2 +- tests/ffi/generator/c_types.dart | 2 +- .../structs_by_value_tests_configuration.dart | 18 +++++++++--------- tests/legacy_status_dart2js.csv | 2 +- tests/lib/async/future_extension_test.dart | 2 +- tests/lib/convert/json_test.dart | 2 +- tests/lib/developer/post_event_test.dart | 2 +- tests/lib/html/element_add_test.dart | 2 +- .../futurevaluetype_test.dart | 2 +- .../delegate_function_invocation_test.dart | 2 +- .../instantiate_abstract_class_test.dart | 10 +++++----- .../mirrors/method_mirror_location_other.dart | 4 ++-- .../mirrors/method_mirror_location_test.dart | 12 ++++++------ tests/lib/mirrors/mirrors_reader.dart | 2 +- tests/lib/mirrors/mirrors_test.dart | 2 +- tests/lib/mirrors/proxy_type_test.dart | 2 +- tests/lib_2/async/future_extension_test.dart | 2 +- tests/lib_2/convert/json_test.dart | 2 +- tests/lib_2/developer/post_event_test.dart | 2 +- tests/lib_2/html/element_add_test.dart | 2 +- .../futurevaluetype_test.dart | 2 +- .../delegate_function_invocation_test.dart | 2 +- .../instantiate_abstract_class_test.dart | 10 +++++----- .../mirrors/method_mirror_location_other.dart | 4 ++-- .../mirrors/method_mirror_location_test.dart | 12 ++++++------ tests/lib_2/mirrors/mirrors_reader.dart | 2 +- tests/lib_2/mirrors/mirrors_test.dart | 2 +- tests/lib_2/mirrors/proxy_type_test.dart | 2 +- tests/standalone/fragmentation_test.dart | 2 +- tests/standalone/io/console_unicode_test.dart | 2 +- tests/standalone/io/http_redirect_test.dart | 2 +- tests/standalone/io/io_sink_test.dart | 10 +++++----- tests/standalone/io/link_test.dart | 2 +- tests/standalone/io/namespace_test.dart | 4 ++-- tests/standalone/io/system_encoding_test.dart | 4 ++-- .../pair_location_remapping_test.dart | 2 +- tests/standalone_2/fragmentation_test.dart | 2 +- .../standalone_2/io/console_unicode_test.dart | 2 +- tests/standalone_2/io/http_redirect_test.dart | 2 +- tests/standalone_2/io/io_sink_test.dart | 10 +++++----- tests/standalone_2/io/link_test.dart | 2 +- tests/standalone_2/io/namespace_test.dart | 4 ++-- .../standalone_2/io/system_encoding_test.dart | 4 ++-- .../pair_location_remapping_test.dart | 2 +- tests/web/deferred/deferred_apply_test.dart | 2 +- ...ed_constant_dependency_evaluation_test.dart | 2 +- tests/web/deferred/deferred_metadata_test.dart | 2 +- ...ed_constant_dependency_evaluation_test.dart | 2 +- .../web_2/deferred/deferred_metadata_test.dart | 2 +- 58 files changed, 98 insertions(+), 98 deletions(-) diff --git a/tests/corelib/collection_length_test.dart b/tests/corelib/collection_length_test.dart index 2bc1f183a61..743de962daf 100644 --- a/tests/corelib/collection_length_test.dart +++ b/tests/corelib/collection_length_test.dart @@ -6,7 +6,7 @@ library map_test; import 'dart:collection'; -// Test that length/isEmpty opertions are constant time on +// Test that length/isEmpty operations are constant time on // maps, strings and collections. void testString(int n) { diff --git a/tests/corelib/error_stack_trace2_test.dart b/tests/corelib/error_stack_trace2_test.dart index 2b3d3027f5e..28856bd808e 100644 --- a/tests/corelib/error_stack_trace2_test.dart +++ b/tests/corelib/error_stack_trace2_test.dart @@ -18,7 +18,7 @@ cyclicInitialization() { // Helper method to detect whether [errorType] is an overflow error. // // TODO(41308): Use `is StackOverflowError` once DDC converts overflow errors -// from JavaSript. +// from JavaScript. bool isOverflowError(Type errorType) { void detectOverflowError() => detectOverflowError(); try { diff --git a/tests/corelib/local_date_time_test.dart b/tests/corelib/local_date_time_test.dart index bfa717b6e33..92e59aa96d2 100644 --- a/tests/corelib/local_date_time_test.dart +++ b/tests/corelib/local_date_time_test.dart @@ -32,7 +32,7 @@ void main() { // Two different time zones found. Now find the precise (to the minute) // time where a change happened, and test that. test(findChange(time2, time)); - // Remeber if the change moved the clock forward or backward. + // Remember if the change moved the clock forward or backward. changeForward = offset2 < offset; break; } diff --git a/tests/corelib/object_hash_test.dart b/tests/corelib/object_hash_test.dart index 3e9e5d860c1..8523feaf3ee 100644 --- a/tests/corelib/object_hash_test.dart +++ b/tests/corelib/object_hash_test.dart @@ -102,7 +102,7 @@ main() { /// Lazily emits all permutations of [values]. /// -/// Modifes [values] rather than create a new list. +/// Modifies [values] rather than create a new list. /// The [values] list is guaranteed to end up in its original state /// after all permutations have been read. Iterable> permutations(List values) { diff --git a/tests/corelib/string_case_test.dart b/tests/corelib/string_case_test.dart index b199de732bf..7d4903ba3cc 100644 --- a/tests/corelib/string_case_test.dart +++ b/tests/corelib/string_case_test.dart @@ -29,7 +29,7 @@ void testSpecialCases() { Expect.equals("\xb5", "\xb5".toLowerCase()); Expect.equals("\u03Bc", // //# 02: continued "\xb5".toUpperCase().toLowerCase()); // //# 02: continued - // Small letter y diaresis. + // Small letter y diaeresis. Expect.equals("\u0178", "\xff".toUpperCase()); // //# 03: ok Expect.equals("\xff", "\xff".toLowerCase()); Expect.equals("\xff", "\xff".toUpperCase().toLowerCase()); // //# 03: continued diff --git a/tests/corelib/unsigned_shift_test.dart b/tests/corelib/unsigned_shift_test.dart index 6a3af9c3729..5bfa41b5b1a 100644 --- a/tests/corelib/unsigned_shift_test.dart +++ b/tests/corelib/unsigned_shift_test.dart @@ -36,7 +36,7 @@ void testIntegerShifts() { testShift(0x7ffffffffffff000, i); testShift(0xfffffffffffff000, i); // Construct the values below to get 'all ones' values on the VM without a - // compile-time error for roundned literals on the web. The arithmetic + // compile-time error for rounded literals on the web. The arithmetic // produces rounded values on the web, so they are effectively testing zero. testShift(0x7ffffffffffff000 + 0xfff, i); testShift(0xfffffffffffff000 + 0xfff, i); diff --git a/tests/corelib_2/collection_length_test.dart b/tests/corelib_2/collection_length_test.dart index e199e7b8748..8f8187f2c8f 100644 --- a/tests/corelib_2/collection_length_test.dart +++ b/tests/corelib_2/collection_length_test.dart @@ -8,7 +8,7 @@ library map_test; import 'dart:collection'; -// Test that length/isEmpty opertions are constant time on +// Test that length/isEmpty operations are constant time on // maps, strings and collections. void testString(int n) { diff --git a/tests/corelib_2/local_date_time_test.dart b/tests/corelib_2/local_date_time_test.dart index 95b8ec1f737..b0aaae366bb 100644 --- a/tests/corelib_2/local_date_time_test.dart +++ b/tests/corelib_2/local_date_time_test.dart @@ -34,7 +34,7 @@ void main() { // Two different time zones found. Now find the precise (to the minute) // time where a change happened, and test that. test(findChange(time2, time)); - // Remeber if the change moved the clock forward or backward. + // Remember if the change moved the clock forward or backward. changeForward = offset2 < offset; break; } diff --git a/tests/corelib_2/object_hash_test.dart b/tests/corelib_2/object_hash_test.dart index 2e10b451d26..c505b5c5926 100644 --- a/tests/corelib_2/object_hash_test.dart +++ b/tests/corelib_2/object_hash_test.dart @@ -104,7 +104,7 @@ main() { /// Lazily emits all permutations of [values]. /// -/// Modifes [values] rather than create a new list. +/// Modifies [values] rather than create a new list. /// The [values] list is guaranteed to end up in its original state /// after all permutations have been read. Iterable> permutations(List values) { diff --git a/tests/corelib_2/string_case_test.dart b/tests/corelib_2/string_case_test.dart index eab64801c25..35cd9b87435 100644 --- a/tests/corelib_2/string_case_test.dart +++ b/tests/corelib_2/string_case_test.dart @@ -31,7 +31,7 @@ void testSpecialCases() { Expect.equals("\xb5", "\xb5".toLowerCase()); Expect.equals("\u03Bc", // //# 02: continued "\xb5".toUpperCase().toLowerCase()); // //# 02: continued - // Small letter y diaresis. + // Small letter y diaeresis. Expect.equals("\u0178", "\xff".toUpperCase()); // //# 03: ok Expect.equals("\xff", "\xff".toLowerCase()); Expect.equals("\xff", "\xff".toUpperCase().toLowerCase()); // //# 03: continued diff --git a/tests/ffi/generator/c_types.dart b/tests/ffi/generator/c_types.dart index bb92bc472ef..8e47cd6052a 100644 --- a/tests/ffi/generator/c_types.dart +++ b/tests/ffi/generator/c_types.dart @@ -75,7 +75,7 @@ final primitiveCType = { PrimitiveType.float: "float", PrimitiveType.double_: "double", // People should use explicit sizes. But we also want to test `long`. - // Surpressing lint. + // Suppressing lint. PrimitiveType.long: "/* NOLINT(runtime/int) */long", PrimitiveType.ulong: "/* NOLINT(runtime/int) */unsigned long", PrimitiveType.uintptr: "uintptr_t", diff --git a/tests/ffi/generator/structs_by_value_tests_configuration.dart b/tests/ffi/generator/structs_by_value_tests_configuration.dart index 1fff6726da0..b542b2b9b5c 100644 --- a/tests/ffi/generator/structs_by_value_tests_configuration.dart +++ b/tests/ffi/generator/structs_by_value_tests_configuration.dart @@ -319,11 +319,11 @@ On arm, arguments are 4 byte aligned."""), FunctionType( [ uint8, - struct32bytesInlineArrayMultiDimesional, + struct32bytesInlineArrayMultiDimensional, uint8, - struct8bytesInlineArrayMultiDimesional, + struct8bytesInlineArrayMultiDimensional, uint8, - struct8bytesInlineArrayMultiDimesional, + struct8bytesInlineArrayMultiDimensional, uint8 ], uint32, @@ -667,9 +667,9 @@ final compounds = [ struct16bytesFloatInlineNested, struct32bytesDoubleInlineNested, struct16bytesMixedInlineNested, - struct8bytesInlineArrayMultiDimesional, - struct32bytesInlineArrayMultiDimesional, - struct64bytesInlineArrayMultiDimesional, + struct8bytesInlineArrayMultiDimensional, + struct32bytesInlineArrayMultiDimensional, + struct64bytesInlineArrayMultiDimensional, structMultiDimensionalStruct, struct3bytesPacked, struct3bytesPackedMembersAligned, @@ -817,15 +817,15 @@ final struct16bytesMixedInlineNested = StructType.override([ FixedLengthArrayType(int16, 2), ], "Struct16BytesMixed3"); -final struct8bytesInlineArrayMultiDimesional = StructType([ +final struct8bytesInlineArrayMultiDimensional = StructType([ FixedLengthArrayType.multi(uint8, [2, 2, 2]) ]); -final struct32bytesInlineArrayMultiDimesional = StructType([ +final struct32bytesInlineArrayMultiDimensional = StructType([ FixedLengthArrayType.multi(uint8, [2, 2, 2, 2, 2]) ]); -final struct64bytesInlineArrayMultiDimesional = StructType([ +final struct64bytesInlineArrayMultiDimensional = StructType([ FixedLengthArrayType.multi(uint8, [2, 2, 2, 2, 2, 2]) ]); diff --git a/tests/legacy_status_dart2js.csv b/tests/legacy_status_dart2js.csv index 416cb2042e7..807b1c850de 100644 --- a/tests/legacy_status_dart2js.csv +++ b/tests/legacy_status_dart2js.csv @@ -432,7 +432,7 @@ $compiler == dart2js && $checked,symbol_reserved_word_test/03,RuntimeError,"Issu $compiler == dart2js && $minified,error_stack_trace1_test,RuntimeError,Issue 12399,https://dartbug.com/12399,closed $compiler == dart2js && $minified,iterable_return_type_test/02,RuntimeError,Dart2js does not support Uint64*.,, $compiler == dart2js && $minified,list_concurrent_modify_test,RuntimeError,dart2js does not fully implement these,, -$compiler == dart2js && $minified,nsm_invocation_test,RuntimeError,Symbols don't match due to minifiaction.,, +$compiler == dart2js && $minified,nsm_invocation_test,RuntimeError,Symbols don't match due to minification.,, $compiler == dart2js && $minified,symbol_reserved_word_test/03,RuntimeError,"Issue 19972, new Symbol('void') should be allowed.",https://dartbug.com/19972,closed $runtime != none && ($compiler == dart2js || $compiler == dartdevc || $compiler == dartdevk),bit_twiddling_test/int64,"RuntimeError, OK",Requires fixed-size int64 support.,, $runtime != none && ($compiler == dart2js || $compiler == dartdevc || $compiler == dartdevk),compare_to2_test,"RuntimeError, OK",Requires fixed-size int64 support.,, diff --git a/tests/lib/async/future_extension_test.dart b/tests/lib/async/future_extension_test.dart index cd28986fd9e..c9f81283a71 100644 --- a/tests/lib/async/future_extension_test.dart +++ b/tests/lib/async/future_extension_test.dart @@ -18,7 +18,7 @@ void testIgnore() { }); asyncStart(); - // Ignored futures can still be listend to. + // Ignored futures can still be listened to. { var c = Completer.sync(); var f = c.future; diff --git a/tests/lib/convert/json_test.dart b/tests/lib/convert/json_test.dart index 8ebfe63e489..7190a7b1e15 100644 --- a/tests/lib/convert/json_test.dart +++ b/tests/lib/convert/json_test.dart @@ -224,7 +224,7 @@ testNumbers() { testError(signs: "+"); // Requires digits after decimal point. testError(fractions: "."); - // Requires exponent digts, and only digits. + // Requires exponent digits, and only digits. testError(exponents: ["e", "e+", "e-", "e.0"]); // No whitespace inside numbers. diff --git a/tests/lib/developer/post_event_test.dart b/tests/lib/developer/post_event_test.dart index f96b89702b7..3e1d21d8213 100644 --- a/tests/lib/developer/post_event_test.dart +++ b/tests/lib/developer/post_event_test.dart @@ -34,6 +34,6 @@ main() { // The Extension stream in not protected so calling this should not fail postEvent('theEvent', {'the': 'data'}, stream: 'Extension'); - // Should be allowed to post to a non-protecvted custom stream + // Should be allowed to post to a non-protected custom stream postEvent('theEvent', {'the': 'data'}, stream: 'someCustomStream'); } diff --git a/tests/lib/html/element_add_test.dart b/tests/lib/html/element_add_test.dart index e4436590534..b0a8acb704a 100644 --- a/tests/lib/html/element_add_test.dart +++ b/tests/lib/html/element_add_test.dart @@ -9,7 +9,7 @@ import 'package:expect/minitest.dart'; import 'utils.dart'; main() { - var isSpanElement = predicate((x) => x is SpanElement, 'is a SpanElemt'); + var isSpanElement = predicate((x) => x is SpanElement, 'is a SpanElement'); var isDivElement = predicate((x) => x is DivElement, 'is a DivElement'); var isText = predicate((x) => x is Text, 'is a Text'); diff --git a/tests/lib/js/static_interop_test/futurevaluetype_test.dart b/tests/lib/js/static_interop_test/futurevaluetype_test.dart index ac2a5dfd222..df1e0298ab4 100644 --- a/tests/lib/js/static_interop_test/futurevaluetype_test.dart +++ b/tests/lib/js/static_interop_test/futurevaluetype_test.dart @@ -18,7 +18,7 @@ class JSWindow {} // `futureValueType` corresponds to the `JSWindow` type parameter in the return // value here. If this isn't correctly erased, we should see a runtime type -// error when using this method, as we'll be attemting to return a `@Native` +// error when using this method, as we'll be attempting to return a `@Native` // type (`Window`) where a `package:js` type is expected instead of a // `JavaScriptObject`. Future returnInteropType() async { diff --git a/tests/lib/mirrors/delegate_function_invocation_test.dart b/tests/lib/mirrors/delegate_function_invocation_test.dart index 5fe88f4bfb1..2a82f64f965 100644 --- a/tests/lib/mirrors/delegate_function_invocation_test.dart +++ b/tests/lib/mirrors/delegate_function_invocation_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. -library test.delgate_function_invocation; +library test.delegate_function_invocation; import 'dart:mirrors'; diff --git a/tests/lib/mirrors/instantiate_abstract_class_test.dart b/tests/lib/mirrors/instantiate_abstract_class_test.dart index 1368dccaaba..0737cf39cdf 100644 --- a/tests/lib/mirrors/instantiate_abstract_class_test.dart +++ b/tests/lib/mirrors/instantiate_abstract_class_test.dart @@ -7,7 +7,7 @@ library test.instantiate_abstract_class; import 'dart:mirrors'; import 'package:expect/expect.dart'; -assertInstanitationErrorOnGenerativeConstructors(classMirror) { +assertInstantiationErrorOnGenerativeConstructors(classMirror) { classMirror.declarations.values.forEach((decl) { if (decl is! MethodMirror) return; if (!decl.isGenerativeConstructor) return; @@ -37,10 +37,10 @@ abstract class AbstractClass { class ConcreteClass implements AbstractClass {} main() { - assertInstanitationErrorOnGenerativeConstructors(reflectType(num)); - assertInstanitationErrorOnGenerativeConstructors(reflectType(double)); - assertInstanitationErrorOnGenerativeConstructors(reflectType(StackTrace)); + assertInstantiationErrorOnGenerativeConstructors(reflectType(num)); + assertInstantiationErrorOnGenerativeConstructors(reflectType(double)); + assertInstantiationErrorOnGenerativeConstructors(reflectType(StackTrace)); - assertInstanitationErrorOnGenerativeConstructors(reflectType(AbstractClass)); + assertInstantiationErrorOnGenerativeConstructors(reflectType(AbstractClass)); runFactoryConstructors(reflectType(AbstractClass)); } diff --git a/tests/lib/mirrors/method_mirror_location_other.dart b/tests/lib/mirrors/method_mirror_location_other.dart index 1747eb9342f..3643cdfa7ed 100644 --- a/tests/lib/mirrors/method_mirror_location_other.dart +++ b/tests/lib/mirrors/method_mirror_location_other.dart @@ -12,6 +12,6 @@ class ClassInOtherFile { topLevelInOtherFile() {} - spaceIdentedInOtherFile() {} + spaceIndentedInOtherFile() {} - tabIdentedInOtherFile() {} + tabIndentedInOtherFile() {} diff --git a/tests/lib/mirrors/method_mirror_location_test.dart b/tests/lib/mirrors/method_mirror_location_test.dart index f7c38453133..b4d833fb46a 100644 --- a/tests/lib/mirrors/method_mirror_location_test.dart +++ b/tests/lib/mirrors/method_mirror_location_test.dart @@ -34,8 +34,8 @@ class ClassInMainFile { } void topLevelInMainFile() {} - spaceIdentedInMainFile() {} - tabIdentedInMainFile() {} + spaceIndentedInMainFile() {} + tabIndentedInMainFile() {} class HasImplicitConstructor {} @@ -55,8 +55,8 @@ main() { expectLocation( reflectClass(ClassInMainFile).declarations[#method]!, mainSuffix, 33, 3); expectLocation(reflect(topLevelInMainFile), mainSuffix, 36, 1); - expectLocation(reflect(spaceIdentedInMainFile), mainSuffix, 37, 3); - expectLocation(reflect(tabIdentedInMainFile), mainSuffix, 38, 2); + expectLocation(reflect(spaceIndentedInMainFile), mainSuffix, 37, 3); + expectLocation(reflect(tabIndentedInMainFile), mainSuffix, 38, 2); expectLocation(reflect(localFunction), mainSuffix, 45, 3); // Another part. @@ -65,8 +65,8 @@ main() { expectLocation( reflectClass(ClassInOtherFile).declarations[#method]!, otherSuffix, 10, 3); expectLocation(reflect(topLevelInOtherFile), otherSuffix, 13, 1); - expectLocation(reflect(spaceIdentedInOtherFile), otherSuffix, 15, 3); - expectLocation(reflect(tabIdentedInOtherFile), otherSuffix, 17, 2); + expectLocation(reflect(spaceIndentedInOtherFile), otherSuffix, 15, 3); + expectLocation(reflect(tabIndentedInOtherFile), otherSuffix, 17, 2); // Synthetic methods. Expect.isNull(reflectClass(HasImplicitConstructor) diff --git a/tests/lib/mirrors/mirrors_reader.dart b/tests/lib/mirrors/mirrors_reader.dart index 158bbda9571..3e7ccfafc60 100644 --- a/tests/lib/mirrors/mirrors_reader.dart +++ b/tests/lib/mirrors/mirrors_reader.dart @@ -1,6 +1,6 @@ // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a -// BSD-style license that can be found in the LICESNE file. +// BSD-style license that can be found in the LICENSE file. library mirrors.reader; diff --git a/tests/lib/mirrors/mirrors_test.dart b/tests/lib/mirrors/mirrors_test.dart index a3e2a9ce473..f923d2a8274 100644 --- a/tests/lib/mirrors/mirrors_test.dart +++ b/tests/lib/mirrors/mirrors_test.dart @@ -60,7 +60,7 @@ testInvoke(mirrors) { } /// In dart2js, lists, numbers, and other objects are treated special -/// and their methods are invoked through a techique called interceptors. +/// and their methods are invoked through a technique called interceptors. testIntercepted(mirrors) { { var instance = 1; diff --git a/tests/lib/mirrors/proxy_type_test.dart b/tests/lib/mirrors/proxy_type_test.dart index 2d2d4f0262d..8c48dd902fb 100644 --- a/tests/lib/mirrors/proxy_type_test.dart +++ b/tests/lib/mirrors/proxy_type_test.dart @@ -9,7 +9,7 @@ import 'package:expect/expect.dart'; // This test is much longer that is strictly necessary to test // InstanceMirror.type in the face of a reflectee overriding runtimeType, but -// shows a case where one might have legimate reason to override runtimeType. +// shows a case where one might have legitimate reason to override runtimeType. // See section 2.2 in Mark Miller's Robust Composition: Towards a Unified // Approach to Access Control and Concurrency Control. diff --git a/tests/lib_2/async/future_extension_test.dart b/tests/lib_2/async/future_extension_test.dart index e15a36055df..078ea7bf895 100644 --- a/tests/lib_2/async/future_extension_test.dart +++ b/tests/lib_2/async/future_extension_test.dart @@ -20,7 +20,7 @@ void testIgnore() { }); asyncStart(); - // Ignored futures can still be listend to. + // Ignored futures can still be listened to. { var c = Completer.sync(); var f = c.future; diff --git a/tests/lib_2/convert/json_test.dart b/tests/lib_2/convert/json_test.dart index 53ace84e388..bd35b0dd7c9 100644 --- a/tests/lib_2/convert/json_test.dart +++ b/tests/lib_2/convert/json_test.dart @@ -226,7 +226,7 @@ testNumbers() { testError(signs: "+"); // Requires digits after decimal point. testError(fractions: "."); - // Requires exponent digts, and only digits. + // Requires exponent digits, and only digits. testError(exponents: ["e", "e+", "e-", "e.0"]); // No whitespace inside numbers. diff --git a/tests/lib_2/developer/post_event_test.dart b/tests/lib_2/developer/post_event_test.dart index f96b89702b7..3e1d21d8213 100644 --- a/tests/lib_2/developer/post_event_test.dart +++ b/tests/lib_2/developer/post_event_test.dart @@ -34,6 +34,6 @@ main() { // The Extension stream in not protected so calling this should not fail postEvent('theEvent', {'the': 'data'}, stream: 'Extension'); - // Should be allowed to post to a non-protecvted custom stream + // Should be allowed to post to a non-protected custom stream postEvent('theEvent', {'the': 'data'}, stream: 'someCustomStream'); } diff --git a/tests/lib_2/html/element_add_test.dart b/tests/lib_2/html/element_add_test.dart index f0198005fed..3edd994fef6 100644 --- a/tests/lib_2/html/element_add_test.dart +++ b/tests/lib_2/html/element_add_test.dart @@ -11,7 +11,7 @@ import 'package:expect/minitest.dart'; import 'utils.dart'; main() { - var isSpanElement = predicate((x) => x is SpanElement, 'is a SpanElemt'); + var isSpanElement = predicate((x) => x is SpanElement, 'is a SpanElement'); var isDivElement = predicate((x) => x is DivElement, 'is a DivElement'); var isText = predicate((x) => x is Text, 'is a Text'); diff --git a/tests/lib_2/js/static_interop_test/futurevaluetype_test.dart b/tests/lib_2/js/static_interop_test/futurevaluetype_test.dart index ac2a5dfd222..df1e0298ab4 100644 --- a/tests/lib_2/js/static_interop_test/futurevaluetype_test.dart +++ b/tests/lib_2/js/static_interop_test/futurevaluetype_test.dart @@ -18,7 +18,7 @@ class JSWindow {} // `futureValueType` corresponds to the `JSWindow` type parameter in the return // value here. If this isn't correctly erased, we should see a runtime type -// error when using this method, as we'll be attemting to return a `@Native` +// error when using this method, as we'll be attempting to return a `@Native` // type (`Window`) where a `package:js` type is expected instead of a // `JavaScriptObject`. Future returnInteropType() async { diff --git a/tests/lib_2/mirrors/delegate_function_invocation_test.dart b/tests/lib_2/mirrors/delegate_function_invocation_test.dart index e77b608e8e6..58bfefbb65a 100644 --- a/tests/lib_2/mirrors/delegate_function_invocation_test.dart +++ b/tests/lib_2/mirrors/delegate_function_invocation_test.dart @@ -4,7 +4,7 @@ // @dart = 2.9 -library test.delgate_function_invocation; +library test.delegate_function_invocation; import 'dart:mirrors'; diff --git a/tests/lib_2/mirrors/instantiate_abstract_class_test.dart b/tests/lib_2/mirrors/instantiate_abstract_class_test.dart index 2374ec80467..c5055c2f44a 100644 --- a/tests/lib_2/mirrors/instantiate_abstract_class_test.dart +++ b/tests/lib_2/mirrors/instantiate_abstract_class_test.dart @@ -9,7 +9,7 @@ library test.instantiate_abstract_class; import 'dart:mirrors'; import 'package:expect/expect.dart'; -assertInstanitationErrorOnGenerativeConstructors(classMirror) { +assertInstantiationErrorOnGenerativeConstructors(classMirror) { classMirror.declarations.values.forEach((decl) { if (decl is! MethodMirror) return; if (!decl.isGenerativeConstructor) return; @@ -39,10 +39,10 @@ abstract class AbstractClass { class ConcreteClass implements AbstractClass {} main() { - assertInstanitationErrorOnGenerativeConstructors(reflectType(num)); - assertInstanitationErrorOnGenerativeConstructors(reflectType(double)); - assertInstanitationErrorOnGenerativeConstructors(reflectType(StackTrace)); + assertInstantiationErrorOnGenerativeConstructors(reflectType(num)); + assertInstantiationErrorOnGenerativeConstructors(reflectType(double)); + assertInstantiationErrorOnGenerativeConstructors(reflectType(StackTrace)); - assertInstanitationErrorOnGenerativeConstructors(reflectType(AbstractClass)); + assertInstantiationErrorOnGenerativeConstructors(reflectType(AbstractClass)); runFactoryConstructors(reflectType(AbstractClass)); } diff --git a/tests/lib_2/mirrors/method_mirror_location_other.dart b/tests/lib_2/mirrors/method_mirror_location_other.dart index c67207cd85b..0739ff7f34f 100644 --- a/tests/lib_2/mirrors/method_mirror_location_other.dart +++ b/tests/lib_2/mirrors/method_mirror_location_other.dart @@ -14,6 +14,6 @@ class ClassInOtherFile { topLevelInOtherFile() {} - spaceIdentedInOtherFile() {} + spaceIndentedInOtherFile() {} - tabIdentedInOtherFile() {} + tabIndentedInOtherFile() {} diff --git a/tests/lib_2/mirrors/method_mirror_location_test.dart b/tests/lib_2/mirrors/method_mirror_location_test.dart index 56e2f4fafca..0f6e3cd2e01 100644 --- a/tests/lib_2/mirrors/method_mirror_location_test.dart +++ b/tests/lib_2/mirrors/method_mirror_location_test.dart @@ -36,8 +36,8 @@ class ClassInMainFile { } void topLevelInMainFile() {} - spaceIdentedInMainFile() {} - tabIdentedInMainFile() {} + spaceIndentedInMainFile() {} + tabIndentedInMainFile() {} class HasImplicitConstructor {} @@ -57,8 +57,8 @@ main() { expectLocation( reflectClass(ClassInMainFile).declarations[#method], mainSuffix, 33, 3); expectLocation(reflect(topLevelInMainFile), mainSuffix, 36, 1); - expectLocation(reflect(spaceIdentedInMainFile), mainSuffix, 37, 3); - expectLocation(reflect(tabIdentedInMainFile), mainSuffix, 38, 2); + expectLocation(reflect(spaceIndentedInMainFile), mainSuffix, 37, 3); + expectLocation(reflect(tabIndentedInMainFile), mainSuffix, 38, 2); expectLocation(reflect(localFunction), mainSuffix, 45, 3); // Another part. @@ -67,8 +67,8 @@ main() { expectLocation( reflectClass(ClassInOtherFile).declarations[#method], otherSuffix, 10, 3); expectLocation(reflect(topLevelInOtherFile), otherSuffix, 13, 1); - expectLocation(reflect(spaceIdentedInOtherFile), otherSuffix, 15, 3); - expectLocation(reflect(tabIdentedInOtherFile), otherSuffix, 17, 2); + expectLocation(reflect(spaceIndentedInOtherFile), otherSuffix, 15, 3); + expectLocation(reflect(tabIndentedInOtherFile), otherSuffix, 17, 2); // Synthetic methods. Expect.isNull(reflectClass(HasImplicitConstructor) diff --git a/tests/lib_2/mirrors/mirrors_reader.dart b/tests/lib_2/mirrors/mirrors_reader.dart index 4ede2a75156..0a9ca3616eb 100644 --- a/tests/lib_2/mirrors/mirrors_reader.dart +++ b/tests/lib_2/mirrors/mirrors_reader.dart @@ -1,6 +1,6 @@ // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a -// BSD-style license that can be found in the LICESNE file. +// BSD-style license that can be found in the LICENSE file. // @dart = 2.9 diff --git a/tests/lib_2/mirrors/mirrors_test.dart b/tests/lib_2/mirrors/mirrors_test.dart index 5c4ef4e9bf4..9bc73a09d79 100644 --- a/tests/lib_2/mirrors/mirrors_test.dart +++ b/tests/lib_2/mirrors/mirrors_test.dart @@ -62,7 +62,7 @@ testInvoke(mirrors) { } /// In dart2js, lists, numbers, and other objects are treated special -/// and their methods are invoked through a techique called interceptors. +/// and their methods are invoked through a technique called interceptors. testIntercepted(mirrors) { { var instance = 1; diff --git a/tests/lib_2/mirrors/proxy_type_test.dart b/tests/lib_2/mirrors/proxy_type_test.dart index 04f8556b5a0..83af63fc83d 100644 --- a/tests/lib_2/mirrors/proxy_type_test.dart +++ b/tests/lib_2/mirrors/proxy_type_test.dart @@ -11,7 +11,7 @@ import 'package:expect/expect.dart'; // This test is much longer that is strictly necessary to test // InstanceMirror.type in the face of a reflectee overriding runtimeType, but -// shows a case where one might have legimate reason to override runtimeType. +// shows a case where one might have legitimate reason to override runtimeType. // See section 2.2 in Mark Miller's Robust Composition: Towards a Unified // Approach to Access Control and Concurrency Control. diff --git a/tests/standalone/fragmentation_test.dart b/tests/standalone/fragmentation_test.dart index 377a2228cfe..57a0d93206a 100644 --- a/tests/standalone/fragmentation_test.dart +++ b/tests/standalone/fragmentation_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. -// Deliberately fragment the heap and test that GC peformance does not +// Deliberately fragment the heap and test that GC performance does not // break down. See https://github.com/dart-lang/sdk/issues/29588 // Normally runs in about 6-7 seconds on an x64 machine, using about 2.5Gbytes // of memory. diff --git a/tests/standalone/io/console_unicode_test.dart b/tests/standalone/io/console_unicode_test.dart index 7284b5fa681..da2aac76b84 100644 --- a/tests/standalone/io/console_unicode_test.dart +++ b/tests/standalone/io/console_unicode_test.dart @@ -6,7 +6,7 @@ import 'dart:convert'; import 'dart:io'; // This test ensures that the VM will support string literals that have non -// ascii characters. An unhandeld exception will be thrown if the VM fails +// ascii characters. An unhandled exception will be thrown if the VM fails // to support non ascii characters. main() { diff --git a/tests/standalone/io/http_redirect_test.dart b/tests/standalone/io/http_redirect_test.dart index 961f6bbd854..cd6ec043aaa 100644 --- a/tests/standalone/io/http_redirect_test.dart +++ b/tests/standalone/io/http_redirect_test.dart @@ -201,7 +201,7 @@ Future setupServer({Uri? targetServer}) { return completer.future; } -// A second HTTP server used to validate that redirect requests accross domains +// A second HTTP server used to validate that redirect requests across domains // do *not* include security-related headers. Future setupTargetServer() { final completer = new Completer(); diff --git a/tests/standalone/io/io_sink_test.dart b/tests/standalone/io/io_sink_test.dart index d34d56ca1e4..90eccd436bf 100644 --- a/tests/standalone/io/io_sink_test.dart +++ b/tests/standalone/io/io_sink_test.dart @@ -12,11 +12,11 @@ class TestConsumer implements StreamConsumer> { final List received = []; int addStreamCount = 0; - int expcetedAddStreamCount; + int expectedAddStreamCount; bool expectClose; TestConsumer(this.expected, - {this.expectClose = true, this.expcetedAddStreamCount = -1}) { + {this.expectClose = true, this.expectedAddStreamCount = -1}) { if (expectClose) asyncStart(); } @@ -38,15 +38,15 @@ class TestConsumer implements StreamConsumer> { return new Future.value().then((_) { if (expectClose) asyncEnd(); Expect.listEquals(expected, received); - if (expcetedAddStreamCount >= 0) { - Expect.equals(expcetedAddStreamCount, addStreamCount); + if (expectedAddStreamCount >= 0) { + Expect.equals(expectedAddStreamCount, addStreamCount); } }); } } void testClose() { - var sink = new IOSink(new TestConsumer([], expcetedAddStreamCount: 0)); + var sink = new IOSink(new TestConsumer([], expectedAddStreamCount: 0)); sink.close(); } diff --git a/tests/standalone/io/link_test.dart b/tests/standalone/io/link_test.dart index 43e816a2780..144c0734d2c 100644 --- a/tests/standalone/io/link_test.dart +++ b/tests/standalone/io/link_test.dart @@ -239,7 +239,7 @@ testRenameSync() { void testLinkErrorSync() { Expect.throws( - () => new Link('some-dir-that-doent exist/some link file/bla/fisk') + () => new Link('some-dir-that-does-not exist/some link file/bla/fisk') .createSync('bla bla bla/b lalal/blfir/sdfred/es'), (e) => e is PathNotFoundException); } diff --git a/tests/standalone/io/namespace_test.dart b/tests/standalone/io/namespace_test.dart index 601278fdb7b..f460b04089e 100644 --- a/tests/standalone/io/namespace_test.dart +++ b/tests/standalone/io/namespace_test.dart @@ -69,7 +69,7 @@ void doTestSync() { FileStat stat = file2.statSync(); Expect.equals(time, stat.modified); - // Directory operaions in the namespace. + // Directory operations in the namespace. // absolute. Expect.equals(dir1.path, dir1rel.absolute.path); // create @@ -155,7 +155,7 @@ doTestAsync() async { FileStat stat = await file2.stat(); Expect.equals(time, stat.modified); - // Directory operaions in the namespace. + // Directory operations in the namespace. // absolute. Expect.equals(dir1.path, dir1rel.absolute.path); // create diff --git a/tests/standalone/io/system_encoding_test.dart b/tests/standalone/io/system_encoding_test.dart index 40a6bf617d4..d78a27ab6d2 100644 --- a/tests/standalone/io/system_encoding_test.dart +++ b/tests/standalone/io/system_encoding_test.dart @@ -7,13 +7,13 @@ import 'dart:convert'; import "package:expect/expect.dart"; -// This only works reliabily for "ASCII" cross platform as that is the only +// This only works reliably for "ASCII" cross platform as that is the only // well known part of the default Windows code page. void testEncodeDecode(String str) { Expect.equals(systemEncoding.decode(systemEncoding.encode(str)), str); } -// This only works reliabily for "ASCII" cross platform as that is the only +// This only works reliably for "ASCII" cross platform as that is the only // common set of bytes between UTF-8 Windows code pages that convert back // and forth. void testDecodeEncode(List bytes) { diff --git a/tests/standalone/pair_location_remapping_test.dart b/tests/standalone/pair_location_remapping_test.dart index 13bf7f90658..98b19b6f1e0 100644 --- a/tests/standalone/pair_location_remapping_test.dart +++ b/tests/standalone/pair_location_remapping_test.dart @@ -1,7 +1,7 @@ // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file // 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. -// Test that pair locations are remaped in slow path environments. +// Test that pair locations are remapped in slow path environments. // VMOptions=--optimization_counter_threshold=10 --no-use-osr --no-background_compilation import "package:expect/expect.dart"; diff --git a/tests/standalone_2/fragmentation_test.dart b/tests/standalone_2/fragmentation_test.dart index a4dc8334a77..d1da5e0a787 100644 --- a/tests/standalone_2/fragmentation_test.dart +++ b/tests/standalone_2/fragmentation_test.dart @@ -4,7 +4,7 @@ // @dart = 2.9 -// Deliberately fragment the heap and test that GC peformance does not +// Deliberately fragment the heap and test that GC performance does not // break down. See https://github.com/dart-lang/sdk/issues/29588 // Normally runs in about 6-7 seconds on an x64 machine, using about 2.5Gbytes // of memory. diff --git a/tests/standalone_2/io/console_unicode_test.dart b/tests/standalone_2/io/console_unicode_test.dart index 349afb601ef..c4454d70593 100644 --- a/tests/standalone_2/io/console_unicode_test.dart +++ b/tests/standalone_2/io/console_unicode_test.dart @@ -8,7 +8,7 @@ import 'dart:convert'; import 'dart:io'; // This test ensures that the VM will support string literals that have non -// ascii characters. An unhandeld exception will be thrown if the VM fails +// ascii characters. An unhandled exception will be thrown if the VM fails // to support non ascii characters. main() { diff --git a/tests/standalone_2/io/http_redirect_test.dart b/tests/standalone_2/io/http_redirect_test.dart index e8281920836..850450d2c5d 100644 --- a/tests/standalone_2/io/http_redirect_test.dart +++ b/tests/standalone_2/io/http_redirect_test.dart @@ -203,7 +203,7 @@ Future setupServer({Uri targetServer}) { return completer.future; } -// A second HTTP server used to validate that redirect requests accross domains +// A second HTTP server used to validate that redirect requests across domains // do *not* include security-related headers. Future setupTargetServer() { Completer completer = new Completer(); diff --git a/tests/standalone_2/io/io_sink_test.dart b/tests/standalone_2/io/io_sink_test.dart index 66f6c47e574..0101e74f043 100644 --- a/tests/standalone_2/io/io_sink_test.dart +++ b/tests/standalone_2/io/io_sink_test.dart @@ -14,11 +14,11 @@ class TestConsumer implements StreamConsumer> { final List received = []; int addStreamCount = 0; - int expcetedAddStreamCount; + int expectedAddStreamCount; bool expectClose; TestConsumer(this.expected, - {this.expectClose: true, this.expcetedAddStreamCount: -1}) { + {this.expectClose: true, this.expectedAddStreamCount: -1}) { if (expectClose) asyncStart(); } @@ -40,15 +40,15 @@ class TestConsumer implements StreamConsumer> { return new Future.value().then((_) { if (expectClose) asyncEnd(); Expect.listEquals(expected, received); - if (expcetedAddStreamCount >= 0) { - Expect.equals(expcetedAddStreamCount, addStreamCount); + if (expectedAddStreamCount >= 0) { + Expect.equals(expectedAddStreamCount, addStreamCount); } }); } } void testClose() { - var sink = new IOSink(new TestConsumer([], expcetedAddStreamCount: 0)); + var sink = new IOSink(new TestConsumer([], expectedAddStreamCount: 0)); sink.close(); } diff --git a/tests/standalone_2/io/link_test.dart b/tests/standalone_2/io/link_test.dart index c01aac5b86b..38e7dd4f946 100644 --- a/tests/standalone_2/io/link_test.dart +++ b/tests/standalone_2/io/link_test.dart @@ -241,7 +241,7 @@ testRenameSync() { void testLinkErrorSync() { Expect.throws( - () => new Link('some-dir-that-doent exist/some link file/bla/fisk') + () => new Link('some-dir-that-does-not exist/some link file/bla/fisk') .createSync('bla bla bla/b lalal/blfir/sdfred/es'), (e) => e is PathNotFoundException); } diff --git a/tests/standalone_2/io/namespace_test.dart b/tests/standalone_2/io/namespace_test.dart index c8190fb2c59..508a71ba231 100644 --- a/tests/standalone_2/io/namespace_test.dart +++ b/tests/standalone_2/io/namespace_test.dart @@ -71,7 +71,7 @@ void doTestSync() { FileStat stat = file2.statSync(); Expect.equals(time, stat.modified); - // Directory operaions in the namespace. + // Directory operations in the namespace. // absolute. Expect.equals(dir1.path, dir1rel.absolute.path); // create @@ -157,7 +157,7 @@ doTestAsync() async { FileStat stat = await file2.stat(); Expect.equals(time, stat.modified); - // Directory operaions in the namespace. + // Directory operations in the namespace. // absolute. Expect.equals(dir1.path, dir1rel.absolute.path); // create diff --git a/tests/standalone_2/io/system_encoding_test.dart b/tests/standalone_2/io/system_encoding_test.dart index 5ec13adcb0d..bbf5308ff2e 100644 --- a/tests/standalone_2/io/system_encoding_test.dart +++ b/tests/standalone_2/io/system_encoding_test.dart @@ -9,13 +9,13 @@ import 'dart:convert'; import "package:expect/expect.dart"; -// This only works reliabily for "ASCII" cross platform as that is the only +// This only works reliably for "ASCII" cross platform as that is the only // well known part of the default Windows code page. void testEncodeDecode(String str) { Expect.equals(systemEncoding.decode(systemEncoding.encode(str)), str); } -// This only works reliabily for "ASCII" cross platform as that is the only +// This only works reliably for "ASCII" cross platform as that is the only // common set of bytes between UTF-8 Windows code pages that convert back // and forth. void testDecodeEncode(List bytes) { diff --git a/tests/standalone_2/pair_location_remapping_test.dart b/tests/standalone_2/pair_location_remapping_test.dart index a5cf8c96de6..3859c1ba9e4 100644 --- a/tests/standalone_2/pair_location_remapping_test.dart +++ b/tests/standalone_2/pair_location_remapping_test.dart @@ -1,7 +1,7 @@ // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file // 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. -// Test that pair locations are remaped in slow path environments. +// Test that pair locations are remapped in slow path environments. // VMOptions=--optimization_counter_threshold=10 --no-use-osr --no-background_compilation // @dart = 2.9 diff --git a/tests/web/deferred/deferred_apply_test.dart b/tests/web/deferred/deferred_apply_test.dart index 352f3a21d13..c01dc76a3d6 100644 --- a/tests/web/deferred/deferred_apply_test.dart +++ b/tests/web/deferred/deferred_apply_test.dart @@ -9,7 +9,7 @@ import 'deferred_apply_lib.dart' deferred as lib; // Test that the `_Required` sentinel in apply-metadata is initialized. // -// This test is structured so that `Function.apply` is partioned out of the main +// This test is structured so that `Function.apply` is partitioned out of the main // unit into a 'part' file. `Function.apply` contains a reference to the // `_Required` sentinel marker, which causes the marker to also be in that part. // The apply-metadata for the functions [foo1] and [foo2] contains references to diff --git a/tests/web/deferred/deferred_constant_dependency_evaluation_test.dart b/tests/web/deferred/deferred_constant_dependency_evaluation_test.dart index 49d9558928b..68edac63c5b 100644 --- a/tests/web/deferred/deferred_constant_dependency_evaluation_test.dart +++ b/tests/web/deferred/deferred_constant_dependency_evaluation_test.dart @@ -7,7 +7,7 @@ // // Today the task uses constant values to calculate dependencies, and only uses // those values that were previously computed by resolution. A change to compute -// the value on-demmand made the deferred task evaluate more expressions, +// the value on-demand made the deferred task evaluate more expressions, // including expressions with free variables (which can't be evaluated). See the // dartbug.com/26406 for details on how we plan to make the task more robust. diff --git a/tests/web/deferred/deferred_metadata_test.dart b/tests/web/deferred/deferred_metadata_test.dart index 03c1b502886..89c2cd07ea6 100644 --- a/tests/web/deferred/deferred_metadata_test.dart +++ b/tests/web/deferred/deferred_metadata_test.dart @@ -8,7 +8,7 @@ /// This test was failing in the past because the deferred-loading algorithm was /// adding entities to the K-element-map after we had closed the world and we /// had created the J-element-map. Later, when we convert the K annotation to -/// its J conterpart, we couldn't find it in the conversion maps because it was +/// its J counterpart, we couldn't find it in the conversion maps because it was /// added too late. /// /// If we add support for mirrors in the future, we just need to ensure that diff --git a/tests/web_2/deferred/deferred_constant_dependency_evaluation_test.dart b/tests/web_2/deferred/deferred_constant_dependency_evaluation_test.dart index 449773b2755..3c7cf33b309 100644 --- a/tests/web_2/deferred/deferred_constant_dependency_evaluation_test.dart +++ b/tests/web_2/deferred/deferred_constant_dependency_evaluation_test.dart @@ -9,7 +9,7 @@ // // Today the task uses constant values to calculate dependencies, and only uses // those values that were previously computed by resolution. A change to compute -// the value on-demmand made the deferred task evaluate more expressions, +// the value on-demand made the deferred task evaluate more expressions, // including expressions with free variables (which can't be evaluated). See the // dartbug.com/26406 for details on how we plan to make the task more robust. diff --git a/tests/web_2/deferred/deferred_metadata_test.dart b/tests/web_2/deferred/deferred_metadata_test.dart index 62cac107437..588cb76cc74 100644 --- a/tests/web_2/deferred/deferred_metadata_test.dart +++ b/tests/web_2/deferred/deferred_metadata_test.dart @@ -10,7 +10,7 @@ /// This test was failing in the past because the deferred-loading algorithm was /// adding entities to the K-element-map after we had closed the world and we /// had created the J-element-map. Later, when we convert the K annotation to -/// its J conterpart, we couldn't find it in the conversion maps because it was +/// its J counterpart, we couldn't find it in the conversion maps because it was /// added too late. /// /// If we add support for mirrors in the future, we just need to ensure that