From 84e3c8b50f4453ccf94a2cbdcc47fbb103947fdc Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Thu, 19 Jan 2023 16:24:29 +0000 Subject: [PATCH] Spelling tests Closes https://github.com/dart-lang/sdk/pull/50920 GitOrigin-RevId: fa87531bd0f52b69485c9d02ff9e44a4a29c6a91 Change-Id: I0ae8574a5b77087895e004079f221201bb550cf3 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/278535 Reviewed-by: Martin Kustermann Reviewed-by: Alexander Thomas Commit-Queue: Alexander Thomas --- pkg/analysis_server/test/lsp/completion_dart_test.dart | 2 +- pkg/compiler/doc/pragmas.md | 4 ++-- pkg/compiler/lib/src/inferrer/node_tracer.dart | 2 +- .../lib/src/inferrer_experimental/node_tracer.dart | 2 +- pkg/compiler/lib/src/js_backend/namer.dart | 4 ++-- pkg/compiler/lib/src/ssa/builder.dart | 2 +- pkg/compiler/lib/src/ssa/type_builder.dart | 4 ++-- .../swarm/swarm_ui_lib/observable/EventBatch.dart | 2 +- pkg/compiler/test/codesize/swarm/update.py | 2 +- pkg/dart2js_info/CHANGELOG.md | 2 +- pkg/dart2wasm/lib/transformers.dart | 2 +- .../testcases/incremental/initializer_not_copied.yaml | 2 +- pkg/front_end/testcases/nnbd_mixed/const_is.dart | 2 +- pkg/js/proposal.md | 2 +- pkg/status_file/test/data/co19-dart2js.status | 8 ++++---- pkg/test_runner/lib/src/browser_controller.dart | 2 +- pkg/vm_service/test/server_test.dart | 2 +- .../lib/src/assets/D3SymbolTreeMap.js | 2 +- runtime/docs/compiler/type_testing_stubs.md | 2 +- runtime/include/dart_tools_api.h | 2 +- .../service/developer_service_get_isolate_id_test.dart | 6 +++--- .../developer_service_get_isolate_id_test.dart | 6 +++--- runtime/platform/globals.h | 2 +- .../binary_size/src/template/D3SymbolTreeMap.js | 2 +- runtime/vm/compiler/aot/precompiler.cc | 2 +- runtime/vm/compiler/backend/il.cc | 2 +- runtime/vm/compiler/backend/il.h | 4 ++-- runtime/vm/compiler/backend/il_arm.cc | 4 ++-- runtime/vm/compiler/backend/il_x64.cc | 2 +- runtime/vm/dart_api_impl_test.cc | 2 +- runtime/vm/dwarf.h | 2 +- runtime/vm/isolate_reload.h | 2 +- runtime/vm/profiler.cc | 2 +- runtime/vm/uri_test.cc | 2 +- tests/co19_2/co19_2-dartdevc.status | 2 -- tests/corelib/uri_test.dart | 4 ++-- tests/corelib_2/uri_test.dart | 4 ++-- tests/dartdevc/js_interop_test.dart | 2 +- tests/dartdevc_2/js_interop_test.dart | 2 +- tests/language/async/identifier_test.dart | 2 +- tests/language/lazy/static8_test.dart | 2 +- .../mixin_declaration_invalid_override_test.dart | 2 +- .../never/never_null_assignability_strong_test.dart | 10 +++++----- tests/language/nnbd/operator_type_test.dart | 2 +- .../subtyping/function_type_bounds_strong_test.dart | 2 +- .../nnbd/subtyping/function_type_bounds_weak_test.dart | 2 +- tests/language/regress/regress32660_test.dart | 2 +- tests/language/vm/load_to_load_forwarding_vm_test.dart | 6 +++--- tests/language/vm/type_vm_test.dart | 4 ++-- tests/language_2/async/identifier_test.dart | 2 +- tests/language_2/lazy/static8_test.dart | 2 +- .../mixin_declaration_invalid_override_test.dart | 2 +- tests/language_2/regress/regress32660_test.dart | 2 +- .../language_2/vm/load_to_load_forwarding_vm_test.dart | 6 +++--- tests/language_2/vm/type_vm_test.dart | 4 ++-- tests/lib/async/stream_state_helper.dart | 2 +- tests/lib/isolate/start_paused_test.dart | 2 +- tests/lib/math/math2_test.dart | 2 +- tests/lib/math/math_test.dart | 2 +- tests/lib_2/async/stream_state_helper.dart | 2 +- tests/lib_2/isolate/start_paused_test.dart | 2 +- tests/lib_2/math/math2_test.dart | 2 +- tests/lib_2/math/math_test.dart | 2 +- 63 files changed, 86 insertions(+), 88 deletions(-) diff --git a/pkg/analysis_server/test/lsp/completion_dart_test.dart b/pkg/analysis_server/test/lsp/completion_dart_test.dart index 1624c59952a..8ff354d119e 100644 --- a/pkg/analysis_server/test/lsp/completion_dart_test.dart +++ b/pkg/analysis_server/test/lsp/completion_dart_test.dart @@ -1614,7 +1614,7 @@ void f() { // but 'b'` to have its own. // // Additionally, because the caret is before the identifier, we will have - // seperate default insert/replace ranges. + // separate default insert/replace ranges. final content = ''' void f(String a, {String? b}) { f([[^b]]); diff --git a/pkg/compiler/doc/pragmas.md b/pkg/compiler/doc/pragmas.md index 34b43adbd47..bf4059612bd 100644 --- a/pkg/compiler/doc/pragmas.md +++ b/pkg/compiler/doc/pragmas.md @@ -246,5 +246,5 @@ annotation on the variable called "`_`": ``` `dart2js:load-priority` annotations are _scoped_: when there are multiple -annotations, the one on the nearest element enclosing the call to `loadLibary()` -is in effect. +annotations, the one on the nearest element enclosing the call to +`loadLibrary()` is in effect. diff --git a/pkg/compiler/lib/src/inferrer/node_tracer.dart b/pkg/compiler/lib/src/inferrer/node_tracer.dart index 776e5c1a940..8e88c28e789 100644 --- a/pkg/compiler/lib/src/inferrer/node_tracer.dart +++ b/pkg/compiler/lib/src/inferrer/node_tracer.dart @@ -431,7 +431,7 @@ abstract class TracerVisitor implements TypeInformationVisitor { bailout('Used as key in Map'); } - // "a[...] = x" could be a list (container) or map assignemnt. + // "a[...] = x" could be a list (container) or map assignment. if (isIndexSetValue(info)) { var receiverType = info.receiver.type; if (inferrer.abstractValueDomain.isContainer(receiverType)) { diff --git a/pkg/compiler/lib/src/inferrer_experimental/node_tracer.dart b/pkg/compiler/lib/src/inferrer_experimental/node_tracer.dart index 3767b2868c7..b60c228d515 100644 --- a/pkg/compiler/lib/src/inferrer_experimental/node_tracer.dart +++ b/pkg/compiler/lib/src/inferrer_experimental/node_tracer.dart @@ -420,7 +420,7 @@ abstract class TracerVisitor implements TypeInformationVisitor { bailout('Used as key in Map'); } - // "a[...] = x" could be a list (container) or map assignemnt. + // "a[...] = x" could be a list (container) or map assignment. if (isIndexSetValue(info)) { var receiverType = info.receiver.type; if (inferrer.abstractValueDomain.isContainer(receiverType)) { diff --git a/pkg/compiler/lib/src/js_backend/namer.dart b/pkg/compiler/lib/src/js_backend/namer.dart index ab16385b67c..9ae3758efba 100644 --- a/pkg/compiler/lib/src/js_backend/namer.dart +++ b/pkg/compiler/lib/src/js_backend/namer.dart @@ -933,8 +933,8 @@ class Namer extends ModularNamer { name = 'lib_$name'; } } - // Names constructed based on a libary name will be further disambiguated. - // However, as names from the same libary should have the same library + // Names constructed based on a library name will be further disambiguated. + // However, as names from the same library should have the same library // name part, we disambiguate the library name here. String disambiguated = name; for (int c = 0; libraryLongNames.containsValue(disambiguated); c++) { diff --git a/pkg/compiler/lib/src/ssa/builder.dart b/pkg/compiler/lib/src/ssa/builder.dart index 72250b77393..678fe6f487c 100644 --- a/pkg/compiler/lib/src/ssa/builder.dart +++ b/pkg/compiler/lib/src/ssa/builder.dart @@ -1274,7 +1274,7 @@ class KernelSsaGraphBuilder extends ir.Visitor with ir.VisitorVoidMixin { /// Builds an SSA graph for a sync*/async/async* generator. We generate a /// entry function which tail-calls a body function. The entry contains /// per-invocation checks and the body, which is later transformed, contains - /// the re-entrant 'state machine' code. + /// the reentrant 'state machine' code. void _buildGenerator(FunctionEntity function, ir.FunctionNode functionNode) { _openFunction(function, functionNode: functionNode, diff --git a/pkg/compiler/lib/src/ssa/type_builder.dart b/pkg/compiler/lib/src/ssa/type_builder.dart index 3b7fe5aa927..b26eb6f9950 100644 --- a/pkg/compiler/lib/src/ssa/type_builder.dart +++ b/pkg/compiler/lib/src/ssa/type_builder.dart @@ -73,7 +73,7 @@ abstract class TypeBuilder { /// Produces code that checks the runtime type is actually the type specified /// by attempting a type conversion. - HInstruction _checkBoolConverion(HInstruction original) { + HInstruction _checkBoolConversion(HInstruction original) { var checkInstruction = HBoolConversion(original, _abstractValueDomain.boolType); if (checkInstruction.isRedundant(_closedWorld)) { @@ -154,7 +154,7 @@ abstract class TypeBuilder { if (conditionCheckPolicy.isTrusted) { checkedOrTrusted = _trustType(original, boolType); } else if (conditionCheckPolicy.isEmitted) { - checkedOrTrusted = _checkBoolConverion(original); + checkedOrTrusted = _checkBoolConversion(original); } if (checkedOrTrusted == original) return original; builder.add(checkedOrTrusted); diff --git a/pkg/compiler/test/codesize/swarm/swarm_ui_lib/observable/EventBatch.dart b/pkg/compiler/test/codesize/swarm/swarm_ui_lib/observable/EventBatch.dart index 7eed98ff75d..bd2272cdcf5 100644 --- a/pkg/compiler/test/codesize/swarm/swarm_ui_lib/observable/EventBatch.dart +++ b/pkg/compiler/test/codesize/swarm/swarm_ui_lib/observable/EventBatch.dart @@ -50,7 +50,7 @@ class EventBatch { return result; } else { // Already in a batch, so just use it. - // TODO(rnystrom): Re-entrant calls to wrap() are kind of hairy. They + // TODO(rnystrom): Reentrant calls to wrap() are kind of hairy. They // can occur in at least one known place: // 1. You respond to an event handler by calling a function with wrap() // (i.e. the normal way we wrap event handlers). diff --git a/pkg/compiler/test/codesize/swarm/update.py b/pkg/compiler/test/codesize/swarm/update.py index fca04ea2fd0..45bd7387c56 100755 --- a/pkg/compiler/test/codesize/swarm/update.py +++ b/pkg/compiler/test/codesize/swarm/update.py @@ -37,7 +37,7 @@ def convertOne(infile, options): def Flags(): - """ Consturcts a parser for extracting flags from the command line. """ + """ Constructs a parser for extracting flags from the command line. """ result = optparse.OptionParser() result.add_option("-t", "--target", diff --git a/pkg/dart2js_info/CHANGELOG.md b/pkg/dart2js_info/CHANGELOG.md index 6a617f65779..0c47803947d 100644 --- a/pkg/dart2js_info/CHANGELOG.md +++ b/pkg/dart2js_info/CHANGELOG.md @@ -160,7 +160,7 @@ This release contains several **breaking changes**: - Moved `deferred_library_check` functionality to a library ## 0.2.2 -- Added `deferred_libary_check` tool +- Added `deferred_library_check` tool ## 0.2.1 - Merged `verify_deps` tool into `debug_info` tool diff --git a/pkg/dart2wasm/lib/transformers.dart b/pkg/dart2wasm/lib/transformers.dart index 6f11b1c17fd..1d43a1b2592 100644 --- a/pkg/dart2wasm/lib/transformers.dart +++ b/pkg/dart2wasm/lib/transformers.dart @@ -309,7 +309,7 @@ class _WasmTransformer extends Transformer { TreeNode _lowerAsyncStar(FunctionNode functionNode) { // TODO(joshualitt): This lowering is mostly reasonable, but if possible we // should try and figure out a way to remove the even / odd dance. That - // said, this will be replaced by an intrinsic implemntation ASAP so it may + // said, this will be replaced by an intrinsic implementation ASAP so it may // not be worth spending anymore time on this(aside from bug fixes). // // Transform diff --git a/pkg/front_end/testcases/incremental/initializer_not_copied.yaml b/pkg/front_end/testcases/incremental/initializer_not_copied.yaml index f34d81171f3..1bee96c6dc1 100644 --- a/pkg/front_end/testcases/incremental/initializer_not_copied.yaml +++ b/pkg/front_end/testcases/incremental/initializer_not_copied.yaml @@ -3,7 +3,7 @@ # BSD-style license that can be found in the LICENSE.md file. # Recompiling with no change shouldn't change the initializer. -# In fact, this woukd (currently) print `[null]` when compiled once, +# In fact, this would (currently) print `[null]` when compiled once, # but `[a1]` if recompiling main.dart first. # http://dartbug.com/48895 diff --git a/pkg/front_end/testcases/nnbd_mixed/const_is.dart b/pkg/front_end/testcases/nnbd_mixed/const_is.dart index 9649a2de632..e1b811cea4d 100644 --- a/pkg/front_end/testcases/nnbd_mixed/const_is.dart +++ b/pkg/front_end/testcases/nnbd_mixed/const_is.dart @@ -15,7 +15,7 @@ main() { expect(true, test1); // void fn() is void Function() - // Should pass with weak checking because because Null becomes equivalent to + // Should pass with weak checking because Null becomes equivalent to // the bottom type. expect(true, fnWithNullBound is fnTypeWithNeverBound); const test2 = fnWithNullBound is fnTypeWithNeverBound; diff --git a/pkg/js/proposal.md b/pkg/js/proposal.md index c5eab45d867..8fe6d0d55fd 100644 --- a/pkg/js/proposal.md +++ b/pkg/js/proposal.md @@ -1588,7 +1588,7 @@ a shared way. Dynamic dispatch, calling conventions, and runtime type checks, and native SDK types are different between the two compilers, so those details would require -separete work. +separate work. ### Q: If a JS API returns "Object" does this break dart2js tree shaking? diff --git a/pkg/status_file/test/data/co19-dart2js.status b/pkg/status_file/test/data/co19-dart2js.status index 9b778acd8f5..70cc2e52d58 100644 --- a/pkg/status_file/test/data/co19-dart2js.status +++ b/pkg/status_file/test/data/co19-dart2js.status @@ -90,9 +90,9 @@ Language/Expressions/Await_Expressions/evaluation_throws_t06: RuntimeError # Ple Language/Expressions/Await_Expressions/evaluation_throws_t07: RuntimeError # Please triage this failure Language/Expressions/Constants/identifier_denotes_a_constant_t06: MissingCompileTimeError # Issue 26580 Language/Expressions/Constants/identifier_denotes_a_constant_t07: MissingCompileTimeError # Issue 26580 -Language/Expressions/Function_Invocation/async_generator_invokation_t08: Skip # Issue 25967 -Language/Expressions/Function_Invocation/async_generator_invokation_t10: Skip # Issue 25967 -Language/Expressions/Function_Invocation/async_invokation_t04: RuntimeError, Pass # co19 issue 57 +Language/Expressions/Function_Invocation/async_generator_invocation_t08: Skip # Issue 25967 +Language/Expressions/Function_Invocation/async_generator_invocation_t10: Skip # Issue 25967 +Language/Expressions/Function_Invocation/async_invocation_t04: RuntimeError, Pass # co19 issue 57 Language/Expressions/Instance_Creation/New/evaluation_t19: RuntimeError # Please triage this failure Language/Expressions/Instance_Creation/New/evaluation_t20: RuntimeError # Please triage this failure Language/Expressions/Maps/key_value_equals_operator_t02: CompileTimeError # Please triage this failure @@ -1781,7 +1781,7 @@ LibTest/html/Window/requestFileSystem_A01_t01: Skip # Roll 50 failure LibTest/html/Window/requestFileSystem_A01_t02: Skip # Roll 50 failure [ $compiler == dart2js && $runtime == chrome && $system == macos ] -Language/Expressions/Function_Invocation/async_invokation_t04: RuntimeError # Please triage this failure +Language/Expressions/Function_Invocation/async_invocation_t04: RuntimeError # Please triage this failure LayoutTests/fast/canvas/webgl/canvas-test_t01: Skip # Times out. Please triage this failure LayoutTests/fast/canvas/webgl/context-lost-restored_t01: Skip # Times out. Please triage this failure. LayoutTests/fast/canvas/webgl/draw-webgl-to-canvas-2d_t01: Pass, RuntimeError # Please triage this failure diff --git a/pkg/test_runner/lib/src/browser_controller.dart b/pkg/test_runner/lib/src/browser_controller.dart index 719a9e2b63b..2a4877874f6 100644 --- a/pkg/test_runner/lib/src/browser_controller.dart +++ b/pkg/test_runner/lib/src/browser_controller.dart @@ -1395,7 +1395,7 @@ body div { function reportError(msg) { function handleReady() { if (this.readyState == this.DONE && this.status != 200) { - var error = 'Sending back error did not succeeed: ' + this.status; + var error = 'Sending back error did not succeed: ' + this.status; error = error + '. Failed to send msg: ' + msg; error_div.innerHTML = error; } diff --git a/pkg/vm_service/test/server_test.dart b/pkg/vm_service/test/server_test.dart index 6cf1c386605..eb8c9782178 100644 --- a/pkg/vm_service/test/server_test.dart +++ b/pkg/vm_service/test/server_test.dart @@ -277,7 +277,7 @@ void main() { expect( responseQueue, emitsThrough(rpcErrorResponse( - RPCError('streamSubcribe', 103, 'Stream already subscribed', { + RPCError('streamSubscribe', 103, 'Stream already subscribed', { 'details': "The stream '$streamId' is already subscribed", })))); } diff --git a/pkg/vm_snapshot_analysis/lib/src/assets/D3SymbolTreeMap.js b/pkg/vm_snapshot_analysis/lib/src/assets/D3SymbolTreeMap.js index 88dd6929fc3..38acb3ef3d3 100644 --- a/pkg/vm_snapshot_analysis/lib/src/assets/D3SymbolTreeMap.js +++ b/pkg/vm_snapshot_analysis/lib/src/assets/D3SymbolTreeMap.js @@ -349,7 +349,7 @@ D3SymbolTreeMap.prototype._clone = function(datum, filter) { this.__cloneState.accepted + ' accepted on their own merits), ' + this.__cloneState.rejected + ' nodes (and their children) ' + 'filtered out,' + - this.__cloneState.pruned + ' nodes pruned because because no ' + + this.__cloneState.pruned + ' nodes pruned because no ' + 'children remained.'); delete this.__cloneState; } diff --git a/runtime/docs/compiler/type_testing_stubs.md b/runtime/docs/compiler/type_testing_stubs.md index e7ddcec3c0c..b8a0a0d5022 100644 --- a/runtime/docs/compiler/type_testing_stubs.md +++ b/runtime/docs/compiler/type_testing_stubs.md @@ -64,7 +64,7 @@ If `` is a type parameter we will load its value and call its ## JIT mode -In JIT mode we build the TTS lazily on first involcation (the TTS of types will be initialized to the `LazySpecializeTypeTest` stub). If later on more classes get loaded and the TTS fast path starts failing we re-build the TTS. +In JIT mode we build the TTS lazily on first invocation (the TTS of types will be initialized to the `LazySpecializeTypeTest` stub). If later on more classes get loaded and the TTS fast path starts failing we re-build the TTS. After a hot-reload we reset all types to the lazy specialize TTS. diff --git a/runtime/include/dart_tools_api.h b/runtime/include/dart_tools_api.h index d43af2479b1..42c2ba8db2e 100644 --- a/runtime/include/dart_tools_api.h +++ b/runtime/include/dart_tools_api.h @@ -143,7 +143,7 @@ typedef struct { * \return Returns a pointer to a Dart_EmbedderInformation structure. * The embedder keeps the ownership of the structure and any field in it. * The embedder must ensure that the structure will remain valid until the - * next invokation of the callback. + * next invocation of the callback. */ typedef void (*Dart_EmbedderInformationCallback)( Dart_EmbedderInformation* info); diff --git a/runtime/observatory/tests/service/developer_service_get_isolate_id_test.dart b/runtime/observatory/tests/service/developer_service_get_isolate_id_test.dart index 11b61da3073..ab5673edf41 100644 --- a/runtime/observatory/tests/service/developer_service_get_isolate_id_test.dart +++ b/runtime/observatory/tests/service/developer_service_get_isolate_id_test.dart @@ -67,12 +67,12 @@ var tests = [ await initialIsolate.reload(); // Grab the root library. - Service.Library rootLbirary = + Service.Library rootLibrary = await initialIsolate.rootLibrary.load() as Service.Library; // Grab self id. Service.Instance localSelfId = await initialIsolate.invoke( - rootLbirary, 'getSelfId') as Service.Instance; + rootLibrary, 'getSelfId') as Service.Instance; // Check that the id reported from dart:developer matches the id reported // from the service protocol. @@ -81,7 +81,7 @@ var tests = [ // Grab the child isolate's id. Service.Instance localChildId = await initialIsolate.invoke( - rootLbirary, 'getChildId') as Service.Instance; + rootLibrary, 'getChildId') as Service.Instance; // Check that the id reported from dart:developer matches the id reported // from the service protocol. diff --git a/runtime/observatory_2/tests/service_2/developer_service_get_isolate_id_test.dart b/runtime/observatory_2/tests/service_2/developer_service_get_isolate_id_test.dart index eb65cdc3d44..4f40dc61f7c 100644 --- a/runtime/observatory_2/tests/service_2/developer_service_get_isolate_id_test.dart +++ b/runtime/observatory_2/tests/service_2/developer_service_get_isolate_id_test.dart @@ -67,11 +67,11 @@ var tests = [ await initialIsolate.reload(); // Grab the root library. - Service.Library rootLbirary = await initialIsolate.rootLibrary.load(); + Service.Library rootLibrary = await initialIsolate.rootLibrary.load(); // Grab self id. Service.Instance localSelfId = - await initialIsolate.invoke(rootLbirary, 'getSelfId'); + await initialIsolate.invoke(rootLibrary, 'getSelfId'); // Check that the id reported from dart:developer matches the id reported // from the service protocol. @@ -80,7 +80,7 @@ var tests = [ // Grab the child isolate's id. Service.Instance localChildId = - await initialIsolate.invoke(rootLbirary, 'getChildId'); + await initialIsolate.invoke(rootLibrary, 'getChildId'); // Check that the id reported from dart:developer matches the id reported // from the service protocol. diff --git a/runtime/platform/globals.h b/runtime/platform/globals.h index 6c11173cd7c..2c9b7404a8a 100644 --- a/runtime/platform/globals.h +++ b/runtime/platform/globals.h @@ -674,7 +674,7 @@ DART_FORCE_INLINE D bit_copy(const S& source) { return destination; } -// On Windows the reentrent version of strtok is called +// On Windows the reentrant version of strtok is called // strtok_s. Unify on the posix name strtok_r. #if defined(DART_HOST_OS_WINDOWS) #define snprintf _sprintf_p diff --git a/runtime/third_party/binary_size/src/template/D3SymbolTreeMap.js b/runtime/third_party/binary_size/src/template/D3SymbolTreeMap.js index 88dd6929fc3..38acb3ef3d3 100644 --- a/runtime/third_party/binary_size/src/template/D3SymbolTreeMap.js +++ b/runtime/third_party/binary_size/src/template/D3SymbolTreeMap.js @@ -349,7 +349,7 @@ D3SymbolTreeMap.prototype._clone = function(datum, filter) { this.__cloneState.accepted + ' accepted on their own merits), ' + this.__cloneState.rejected + ' nodes (and their children) ' + 'filtered out,' + - this.__cloneState.pruned + ' nodes pruned because because no ' + + this.__cloneState.pruned + ' nodes pruned because no ' + 'children remained.'); delete this.__cloneState; } diff --git a/runtime/vm/compiler/aot/precompiler.cc b/runtime/vm/compiler/aot/precompiler.cc index 0698235c738..ed9a7bd91e4 100644 --- a/runtime/vm/compiler/aot/precompiler.cc +++ b/runtime/vm/compiler/aot/precompiler.cc @@ -3548,7 +3548,7 @@ bool PrecompileParsedFunctionHelper::Compile(CompilationPipeline* pipeline) { // committed into the global object pool at the end of the compilation. // This makes an assumption that global object pool itself does not // grow during code generation - unfortunately this is not the case - // becase we might have nested code generation (i.e. we might generate + // because we might have nested code generation (i.e. we might generate // some stubs). If this indeed happens we retry the compilation. // (See TryCommitToParent invocation below). compiler::ObjectPoolBuilder object_pool_builder( diff --git a/runtime/vm/compiler/backend/il.cc b/runtime/vm/compiler/backend/il.cc index 77ad3b24719..10b6951d340 100644 --- a/runtime/vm/compiler/backend/il.cc +++ b/runtime/vm/compiler/backend/il.cc @@ -3239,7 +3239,7 @@ Definition* IntConverterInstr::Canonicalize(FlowGraph* flow_graph) { IntConverterInstr* box_defn = value()->definition()->AsIntConverter(); if ((box_defn != NULL) && (box_defn->representation() == from())) { - // If the first convertion can erase bits (or deoptimize) we can't + // If the first conversion can erase bits (or deoptimize) we can't // canonicalize it away. auto src_defn = box_defn->value()->definition(); if ((box_defn->from() == kUnboxedInt64) && diff --git a/runtime/vm/compiler/backend/il.h b/runtime/vm/compiler/backend/il.h index 817a07ad5bf..60c6a720eb2 100644 --- a/runtime/vm/compiler/backend/il.h +++ b/runtime/vm/compiler/backend/il.h @@ -10350,14 +10350,14 @@ class LoadThreadInstr : public TemplateDefinition<0, NoThrow, Pure> { M(Arity, _, Name##Z, Inputs, Output) \ M(Arity, _, Name##W, Inputs, Output) -// Define convertion between two SIMD types. +// Define conversion between two SIMD types. #define SIMD_CONVERSION(M, FromType, ToType) \ M(1, _, FromType##To##ToType, (FromType), ToType) // List of all recognized SIMD operations. // Note: except for operations that map to operators (Add, Mul, Sub, Div, // BitXor, BitOr) all other operations must match names used by -// MethodRecognizer. This allows to autogenerate convertion from +// MethodRecognizer. This allows to autogenerate conversion from // MethodRecognizer::Kind into SimdOpInstr::Kind (see KindForMethod helper). // Note: M is for those SimdOp that are recognized methods and BINARY_OP // is for operators. diff --git a/runtime/vm/compiler/backend/il_arm.cc b/runtime/vm/compiler/backend/il_arm.cc index 4f093eb8087..80b2951daf7 100644 --- a/runtime/vm/compiler/backend/il_arm.cc +++ b/runtime/vm/compiler/backend/il_arm.cc @@ -4761,7 +4761,7 @@ DEFINE_EMIT(Float32x4Unary, (QRegister result, QRegister left)) { } } -DEFINE_EMIT(Simd32x4ToSimd32x4Convertion, (SameAsFirstInput, QRegister left)) { +DEFINE_EMIT(Simd32x4ToSimd32x4Conversion, (SameAsFirstInput, QRegister left)) { // TODO(dartbug.com/30949) these operations are essentially nop and should // not generate any code. They should be removed from the graph before // code generation. @@ -5107,7 +5107,7 @@ DEFINE_EMIT(Int32x4WithFlag, ____(Float32x4Unary) \ CASE(Float32x4ToInt32x4) \ CASE(Int32x4ToFloat32x4) \ - ____(Simd32x4ToSimd32x4Convertion) \ + ____(Simd32x4ToSimd32x4Conversion) \ SIMPLE(Float32x4Clamp) \ SIMPLE(Float64x2Clamp) \ CASE(Float32x4WithX) \ diff --git a/runtime/vm/compiler/backend/il_x64.cc b/runtime/vm/compiler/backend/il_x64.cc index 6e88aa64401..12ae30d690c 100644 --- a/runtime/vm/compiler/backend/il_x64.cc +++ b/runtime/vm/compiler/backend/il_x64.cc @@ -458,7 +458,7 @@ static bool IsPowerOfTwoKind(intptr_t v1, intptr_t v2) { LocationSummary* IfThenElseInstr::MakeLocationSummary(Zone* zone, bool opt) const { comparison()->InitializeLocationSummary(zone, opt); - // TODO(dartbug.com/30952) support convertion of Register to corresponding + // TODO(dartbug.com/30952) support conversion of Register to corresponding // least significant byte register (e.g. RAX -> AL, RSI -> SIL, r15 -> r15b). comparison()->locs()->set_out(0, Location::RegisterLocation(RDX)); return comparison()->locs(); diff --git a/runtime/vm/dart_api_impl_test.cc b/runtime/vm/dart_api_impl_test.cc index 0730844c59c..36b3111c983 100644 --- a/runtime/vm/dart_api_impl_test.cc +++ b/runtime/vm/dart_api_impl_test.cc @@ -10131,7 +10131,7 @@ void main() { // There exists another test by name DartAPI_Invoke_CrossLibrary. // However, that currently fails for the dartk configuration as it -// uses Dart_LoadLibray. This test here effectively tests the same +// uses Dart_LoadLibrary. This test here effectively tests the same // functionality but invokes a function from an imported standard // library. TEST_CASE(DartAPI_InvokeImportedFunction) { diff --git a/runtime/vm/dwarf.h b/runtime/vm/dwarf.h index 492561eee74..fef33e45eb4 100644 --- a/runtime/vm/dwarf.h +++ b/runtime/vm/dwarf.h @@ -98,7 +98,7 @@ struct DwarfCodeKeyValueTrait { } Pair() : code(nullptr), value{} {} - // Don't implicitly delete copy and copy assigment constructors. + // Don't implicitly delete copy and copy assignment constructors. Pair(const Pair& other) = default; Pair& operator=(const Pair& other) = default; diff --git a/runtime/vm/isolate_reload.h b/runtime/vm/isolate_reload.h index 07361e03799..42ea245e77b 100644 --- a/runtime/vm/isolate_reload.h +++ b/runtime/vm/isolate_reload.h @@ -262,7 +262,7 @@ class IsolateGroupReloadContext { BitVector* modified_libs_transitive_ = nullptr; // A bit vector indicating which of the saved libraries that transitively - // depend on a modified libary. + // depend on a modified library. BitVector* saved_libs_transitive_updated_ = nullptr; String& root_lib_url_; diff --git a/runtime/vm/profiler.cc b/runtime/vm/profiler.cc index 966cb847e19..24fab64fae9 100644 --- a/runtime/vm/profiler.cc +++ b/runtime/vm/profiler.cc @@ -470,7 +470,7 @@ void Profiler::DumpStackTrace(uword sp, uword fp, uword pc, bool for_crash) { // if we hit an assert while printing the stack. static RelaxedAtomic started_dump = 0; if (started_dump.fetch_add(1u) != 0) { - OS::PrintErr("Aborting re-entrant request for stack trace.\n"); + OS::PrintErr("Aborting reentrant request for stack trace.\n"); return; } } diff --git a/runtime/vm/uri_test.cc b/runtime/vm/uri_test.cc index 6c2bdd0a063..dd716556744 100644 --- a/runtime/vm/uri_test.cc +++ b/runtime/vm/uri_test.cc @@ -476,7 +476,7 @@ TEST_CASE(ResolveUri_DataUri) { } // dart:core Uri allows for the base url to be relative (no scheme, no -// authory, relative path) but this behavior is not in RFC 3986. We +// authority, relative path) but this behavior is not in RFC 3986. We // do not implement this. TEST_CASE(ResolveUri_RelativeBase_NotImplemented) { const char* target_uri; diff --git a/tests/co19_2/co19_2-dartdevc.status b/tests/co19_2/co19_2-dartdevc.status index d92705123fe..ea8e37ba486 100644 --- a/tests/co19_2/co19_2-dartdevc.status +++ b/tests/co19_2/co19_2-dartdevc.status @@ -57,8 +57,6 @@ Language/Expressions/Constants/integer_size_t04: SkipByDesign # uses integer lit Language/Expressions/Constants/literal_number_t01: SkipByDesign # uses integer literal not representable as JavaScript number Language/Expressions/Constants/math_operators_t01: SkipByDesign # uses integer literal not representable as JavaScript number Language/Expressions/Constants/math_operators_t06: SkipByDesign # uses integer literal not representable as JavaScript number -Language/Expressions/Function_Invocation/async_generator_invokation_t08: SkipSlow -Language/Expressions/Function_Invocation/async_generator_invokation_t10: SkipSlow Language/Expressions/Numbers/integer_size_t03: SkipByDesign # uses integer literal not representable as JavaScript number Language/Expressions/Numbers/static_type_of_int_t01: SkipByDesign # uses integer literal not representable as JavaScript number Language/Expressions/Numbers/syntax_t06: SkipByDesign # uses integer literal not representable as JavaScript number diff --git a/tests/corelib/uri_test.dart b/tests/corelib/uri_test.dart index a1310c757fb..7d796a5cda6 100644 --- a/tests/corelib/uri_test.dart +++ b/tests/corelib/uri_test.dart @@ -459,7 +459,7 @@ void testReplace() { } // Regression test, http://dartbug.com/20814 - var uri = Uri.parse("/no-authorty/"); + var uri = Uri.parse("/no-authority/"); uri = uri.replace(fragment: "fragment"); Expect.isFalse(uri.hasAuthority); @@ -575,7 +575,7 @@ void testPackageUris() { void testBackslashes() { // Tests change which makes `\` be treated as `/` in - // autority and path. + // authority and path. Expect.stringEquals("https://example.com/", Uri.parse(r"https:\\example.com\").toString()); diff --git a/tests/corelib_2/uri_test.dart b/tests/corelib_2/uri_test.dart index c78b4834ba1..e9249050b99 100644 --- a/tests/corelib_2/uri_test.dart +++ b/tests/corelib_2/uri_test.dart @@ -461,7 +461,7 @@ void testReplace() { } // Regression test, http://dartbug.com/20814 - var uri = Uri.parse("/no-authorty/"); + var uri = Uri.parse("/no-authority/"); uri = uri.replace(fragment: "fragment"); Expect.isFalse(uri.hasAuthority); @@ -577,7 +577,7 @@ void testPackageUris() { void testBackslashes() { // Tests change which makes `\` be treated as `/` in - // autority and path. + // authority and path. Expect.stringEquals("https://example.com/", Uri.parse(r"https:\\example.com\").toString()); diff --git a/tests/dartdevc/js_interop_test.dart b/tests/dartdevc/js_interop_test.dart index bb27e5fd195..7015528c3b3 100644 --- a/tests/dartdevc/js_interop_test.dart +++ b/tests/dartdevc/js_interop_test.dart @@ -91,7 +91,7 @@ void main() { final Function? localNullableLegacy = () => 'hello'; final String Function()? localNullable = () => 'hello'; - // Assigment to JS static field. + // Assignment to JS static field. Expect.throws(() { _jsStaticVariable = () => 'hello'; }); diff --git a/tests/dartdevc_2/js_interop_test.dart b/tests/dartdevc_2/js_interop_test.dart index 9ba148feb80..fafe31036cc 100644 --- a/tests/dartdevc_2/js_interop_test.dart +++ b/tests/dartdevc_2/js_interop_test.dart @@ -89,7 +89,7 @@ void main() { final Function localNonNullLegacy = () => 'hello'; final String Function() localNonNull = () => 'hello'; - // Assigment to JS static field. + // Assignment to JS static field. Expect.throws(() { _jsStaticVariable = () => 'hello'; }); diff --git a/tests/language/async/identifier_test.dart b/tests/language/async/identifier_test.dart index 07072591eca..2e6889bfcf1 100644 --- a/tests/language/async/identifier_test.dart +++ b/tests/language/async/identifier_test.dart @@ -27,7 +27,7 @@ class ACall { } main() { - // Each test declares a spearate async function, tests that `async` + // Each test declares a separate async function, tests that `async` // can occur in it, and makes sure the function is run. { const int async = 0; diff --git a/tests/language/lazy/static8_test.dart b/tests/language/lazy/static8_test.dart index de313a8fc4b..aefb751e477 100644 --- a/tests/language/lazy/static8_test.dart +++ b/tests/language/lazy/static8_test.dart @@ -4,7 +4,7 @@ import "package:expect/expect.dart"; -// Test re-entrant initializer - calls throw StackOverflowError. +// Test reentrant initializer - calls throw StackOverflowError. var trace; diff --git a/tests/language/mixin_declaration/mixin_declaration_invalid_override_test.dart b/tests/language/mixin_declaration/mixin_declaration_invalid_override_test.dart index 3eaa34cddee..e84d8af8807 100644 --- a/tests/language/mixin_declaration/mixin_declaration_invalid_override_test.dart +++ b/tests/language/mixin_declaration/mixin_declaration_invalid_override_test.dart @@ -56,7 +56,7 @@ abstract class C5Bar implements C5 { // Valid abstract class, super-invocation of foo hits implementation, // even if bar is still abstract. abstract class A5Foo = C5Foo with M5; -// Invalid since super-invocaton of foo does not hit concrete implementation. +// Invalid since super-invocation of foo does not hit concrete implementation. abstract class _ = C5Bar with M5; //# 08: compile-time error class A5FooConcrete = A5Foo with C5Bar; diff --git a/tests/language/nnbd/never/never_null_assignability_strong_test.dart b/tests/language/nnbd/never/never_null_assignability_strong_test.dart index a902e456e0c..8e9264a1fcf 100644 --- a/tests/language/nnbd/never/never_null_assignability_strong_test.dart +++ b/tests/language/nnbd/never/never_null_assignability_strong_test.dart @@ -9,7 +9,7 @@ import 'never_null_assignability_lib1.dart'; // Tests for direct calls to null safe functions. void testNullSafeCalls() { - // Test calling a null safe function expecting Null from a null safe libary + // Test calling a null safe function expecting Null from a null safe library { takesNull(nil); Expect.throws(() => takesNull(never)); @@ -18,7 +18,7 @@ void testNullSafeCalls() { Expect.throwsTypeError(() => (takesNull as dynamic)(3)); } - // Test calling a null safe function expecting Never from a null safe libary + // Test calling a null safe function expecting Never from a null safe library { Expect.throws(() => takesNever(never)); // 3 can't be cast to Null or Never @@ -26,7 +26,7 @@ void testNullSafeCalls() { Expect.throwsTypeError(() => (takesNever as dynamic)(3)); } - // Test calling a null safe function expecting int from a null safe libary + // Test calling a null safe function expecting int from a null safe library { takesInt(3); Expect.throwsTypeError(() => takesInt(nil as dynamic)); @@ -34,14 +34,14 @@ void testNullSafeCalls() { Expect.throwsTypeError(() => (takesInt as dynamic)("hello")); } - // Test calling a null safe function expecting Object from a null safe libary + // Test calling a null safe function expecting Object from a null safe library { takesObject(3); Expect.throwsTypeError(() => takesObject(nil as dynamic)); Expect.throwsTypeError(() => (takesObject as dynamic)(nil)); } - // Test calling a null safe function expecting Object? from a null safe libary + // Test calling a null safe function expecting Object? from a null safe library { takesAny(3); takesAny(nil); diff --git a/tests/language/nnbd/operator_type_test.dart b/tests/language/nnbd/operator_type_test.dart index 497f0bb4748..fe677bd8ebe 100644 --- a/tests/language/nnbd/operator_type_test.dart +++ b/tests/language/nnbd/operator_type_test.dart @@ -3,7 +3,7 @@ // BSD-style license that can be found in the LICENSE file. -// Tests that language operators and constructrs requiring non-nullable values +// Tests that language operators and constructs requiring non-nullable values // will not accept an operand with a nullable static type. // See: https://github.com/dart-lang/language/issues/298 diff --git a/tests/language/nnbd/subtyping/function_type_bounds_strong_test.dart b/tests/language/nnbd/subtyping/function_type_bounds_strong_test.dart index 76e4c4e08c0..ebacbf7e0aa 100644 --- a/tests/language/nnbd/subtyping/function_type_bounds_strong_test.dart +++ b/tests/language/nnbd/subtyping/function_type_bounds_strong_test.dart @@ -15,7 +15,7 @@ main() { Expect.isFalse(fnWithNonNullObjectBound is fnTypeWithNullableObjectBound); // void fn() is void Function() - // Should fail with strong checking because because Null and Never are treated + // Should fail with strong checking because Null and Never are treated // as distinct. Expect.isFalse(fnWithNullBound is fnTypeWithNeverBound); } diff --git a/tests/language/nnbd/subtyping/function_type_bounds_weak_test.dart b/tests/language/nnbd/subtyping/function_type_bounds_weak_test.dart index 976fdceb928..86b065ad577 100644 --- a/tests/language/nnbd/subtyping/function_type_bounds_weak_test.dart +++ b/tests/language/nnbd/subtyping/function_type_bounds_weak_test.dart @@ -17,7 +17,7 @@ main() { Expect.isTrue(test1); // void fn() is void Function() - // Should pass with weak checking because because Null becomes equivalent to + // Should pass with weak checking because Null becomes equivalent to // the bottom type. Expect.isTrue(fnWithNullBound is fnTypeWithNeverBound); const test2 = fnWithNullBound is fnTypeWithNeverBound; diff --git a/tests/language/regress/regress32660_test.dart b/tests/language/regress/regress32660_test.dart index 9ca6c0e6235..081e4d2dff6 100644 --- a/tests/language/regress/regress32660_test.dart +++ b/tests/language/regress/regress32660_test.dart @@ -3,7 +3,7 @@ // BSD-style license that can be found in the LICENSE file. // noSuchMethod does not overwrite actual implementations, so if an -// implemetation of a member exists that doesn't fulfill the interface it's +// implementation of a member exists that doesn't fulfill the interface it's // an error. // On the other hand, if no implementation exists, // noSuchMethod will take its place and everything is okay. diff --git a/tests/language/vm/load_to_load_forwarding_vm_test.dart b/tests/language/vm/load_to_load_forwarding_vm_test.dart index d59cd573b53..69c830dd44b 100644 --- a/tests/language/vm/load_to_load_forwarding_vm_test.dart +++ b/tests/language/vm/load_to_load_forwarding_vm_test.dart @@ -63,7 +63,7 @@ testPhiRepresentation(f, arr) { return arr[0]; } -testPhiConvertions(f, arr) { +testPhiConversions(f, arr) { if (f) { arr[0] = arr[1]; } else { @@ -559,8 +559,8 @@ main() { u32List[2] = 0x7FFFFFFF; for (var i = 0; i < 20; i++) { - testPhiConvertions(true, u32List); - testPhiConvertions(false, u32List); + testPhiConversions(true, u32List); + testPhiConversions(false, u32List); } for (var i = 0; i < 20; i++) { diff --git a/tests/language/vm/type_vm_test.dart b/tests/language/vm/type_vm_test.dart index a7613093d86..14189b6342e 100644 --- a/tests/language/vm/type_vm_test.dart +++ b/tests/language/vm/type_vm_test.dart @@ -123,7 +123,7 @@ class TypeTest { return 1; } - static int testListAssigment() { + static int testListAssignment() { // Note: Many of these used to be runtime errors when implicit downcasts // were permitted. Now these are mostly compile time errors. int result = 0; @@ -181,7 +181,7 @@ class TypeTest { Expect.equals(1, testFunctionNum()); Expect.equals(9, testBoolCheck()); Expect.equals(1, testFactory()); - Expect.equals(8, testListAssigment()); + Expect.equals(8, testListAssignment()); } } diff --git a/tests/language_2/async/identifier_test.dart b/tests/language_2/async/identifier_test.dart index c53ca4f3f31..c253ae70e2b 100644 --- a/tests/language_2/async/identifier_test.dart +++ b/tests/language_2/async/identifier_test.dart @@ -29,7 +29,7 @@ class ACall { } main() { - // Each test declares a spearate async function, tests that `async` + // Each test declares a separate async function, tests that `async` // can occur in it, and makes sure the function is run. { const int async = 0; diff --git a/tests/language_2/lazy/static8_test.dart b/tests/language_2/lazy/static8_test.dart index faae6df82b1..67f8adf78b5 100644 --- a/tests/language_2/lazy/static8_test.dart +++ b/tests/language_2/lazy/static8_test.dart @@ -6,7 +6,7 @@ import "package:expect/expect.dart"; -// Test re-entrant initializer - calls throw Error. +// Test reentrant initializer - calls throw Error. var trace; diff --git a/tests/language_2/mixin_declaration/mixin_declaration_invalid_override_test.dart b/tests/language_2/mixin_declaration/mixin_declaration_invalid_override_test.dart index 45da93e14bf..64dad10d133 100644 --- a/tests/language_2/mixin_declaration/mixin_declaration_invalid_override_test.dart +++ b/tests/language_2/mixin_declaration/mixin_declaration_invalid_override_test.dart @@ -58,7 +58,7 @@ abstract class C5Bar implements C5 { // Valid abstract class, super-invocation of foo hits implementation, // even if bar is still abstract. abstract class A5Foo = C5Foo with M5; -// Invalid since super-invocaton of foo does not hit concrete implementation. +// Invalid since super-invocation of foo does not hit concrete implementation. abstract class _ = C5Bar with M5; //# 08: compile-time error class A5FooConcrete = A5Foo with C5Bar; diff --git a/tests/language_2/regress/regress32660_test.dart b/tests/language_2/regress/regress32660_test.dart index 090af81ca74..8c003521d89 100644 --- a/tests/language_2/regress/regress32660_test.dart +++ b/tests/language_2/regress/regress32660_test.dart @@ -5,7 +5,7 @@ // @dart = 2.9 // noSuchMethod does not overwrite actual implementations, so if an -// implemetation of a member exists that doesn't fulfill the interface it's +// implementation of a member exists that doesn't fulfill the interface it's // an error. // On the other hand, if no implementation exists, // noSuchMethod will take its place and everything is okay. diff --git a/tests/language_2/vm/load_to_load_forwarding_vm_test.dart b/tests/language_2/vm/load_to_load_forwarding_vm_test.dart index e6606cf7568..fbbe30acd62 100644 --- a/tests/language_2/vm/load_to_load_forwarding_vm_test.dart +++ b/tests/language_2/vm/load_to_load_forwarding_vm_test.dart @@ -65,7 +65,7 @@ testPhiRepresentation(f, arr) { return arr[0]; } -testPhiConvertions(f, arr) { +testPhiConversions(f, arr) { if (f) { arr[0] = arr[1]; } else { @@ -561,8 +561,8 @@ main() { u32List[2] = 0x7FFFFFFF; for (var i = 0; i < 20; i++) { - testPhiConvertions(true, u32List); - testPhiConvertions(false, u32List); + testPhiConversions(true, u32List); + testPhiConversions(false, u32List); } for (var i = 0; i < 20; i++) { diff --git a/tests/language_2/vm/type_vm_test.dart b/tests/language_2/vm/type_vm_test.dart index a176a73a856..cd9ecee7305 100644 --- a/tests/language_2/vm/type_vm_test.dart +++ b/tests/language_2/vm/type_vm_test.dart @@ -124,7 +124,7 @@ class TypeTest { return 1; } - static int testListAssigment() { + static int testListAssignment() { int result = 0; { var a = new List.filled(5, null); @@ -180,7 +180,7 @@ class TypeTest { Expect.equals(1, testFunctionNum()); Expect.equals(9, testBoolCheck()); Expect.equals(1, testFactory()); - Expect.equals(8, testListAssigment()); + Expect.equals(8, testListAssignment()); } } diff --git a/tests/lib/async/stream_state_helper.dart b/tests/lib/async/stream_state_helper.dart index 4421075d643..2aded72cec2 100644 --- a/tests/lib/async/stream_state_helper.dart +++ b/tests/lib/async/stream_state_helper.dart @@ -584,7 +584,7 @@ class LogAnyEvent extends Event { return true; } - bool _testSubcribe() { + bool _testSubscribe() { _actual = "*[Subscribed]"; return true; } diff --git a/tests/lib/isolate/start_paused_test.dart b/tests/lib/isolate/start_paused_test.dart index e7a0b841bd6..5cb03e28e8b 100644 --- a/tests/lib/isolate/start_paused_test.dart +++ b/tests/lib/isolate/start_paused_test.dart @@ -28,7 +28,7 @@ void test1() { // We start two isolates, one paused and one not. // The unpaused one must send an event, after which // we resume that paused isolate, and expect the second event. - // This is not a guaranteed test, since it can succeede even if the + // This is not a guaranteed test, since it can succeed even if the // paused isolate isn't really paused. // However, it must never fail, since that would mean that a paused // isolate sends a message. diff --git a/tests/lib/math/math2_test.dart b/tests/lib/math/math2_test.dart index 680272348e3..88f51596bd5 100644 --- a/tests/lib/math/math2_test.dart +++ b/tests/lib/math/math2_test.dart @@ -110,7 +110,7 @@ class MathLibraryTest { } if (b == 0.0) { // No need to look if they are close. Otherwise the check for 'a' above - // whould have triggered. + // would have triggered. Expect.equals(a, b); } final double shiftRightBy52 = 2.220446049250313080847263336181640625e-16; diff --git a/tests/lib/math/math_test.dart b/tests/lib/math/math_test.dart index ca329513a31..8ae09dae878 100644 --- a/tests/lib/math/math_test.dart +++ b/tests/lib/math/math_test.dart @@ -107,7 +107,7 @@ class MathTest { } if (b == 0.0) { // No need to look if they are close. Otherwise the check for 'a' above - // whould have triggered. + // would have triggered. Expect.equals(a, b); } final double shiftRightBy52 = 2.220446049250313080847263336181640625e-16; diff --git a/tests/lib_2/async/stream_state_helper.dart b/tests/lib_2/async/stream_state_helper.dart index 46bf94dae33..131c0585b38 100644 --- a/tests/lib_2/async/stream_state_helper.dart +++ b/tests/lib_2/async/stream_state_helper.dart @@ -583,7 +583,7 @@ class LogAnyEvent extends Event { return true; } - bool _testSubcribe() { + bool _testSubscribe() { _actual = "*[Subscribed]"; return true; } diff --git a/tests/lib_2/isolate/start_paused_test.dart b/tests/lib_2/isolate/start_paused_test.dart index e066a93d8da..5a36249d75d 100644 --- a/tests/lib_2/isolate/start_paused_test.dart +++ b/tests/lib_2/isolate/start_paused_test.dart @@ -30,7 +30,7 @@ void test1() { // We start two isolates, one paused and one not. // The unpaused one must send an event, after which // we resume that paused isolate, and expect the second event. - // This is not a guaranteed test, since it can succeede even if the + // This is not a guaranteed test, since it can succeed even if the // paused isolate isn't really paused. // However, it must never fail, since that would mean that a paused // isolate sends a message. diff --git a/tests/lib_2/math/math2_test.dart b/tests/lib_2/math/math2_test.dart index 9ec50717dc6..8f8dc57003f 100644 --- a/tests/lib_2/math/math2_test.dart +++ b/tests/lib_2/math/math2_test.dart @@ -112,7 +112,7 @@ class MathLibraryTest { } if (b == 0.0) { // No need to look if they are close. Otherwise the check for 'a' above - // whould have triggered. + // would have triggered. Expect.equals(a, b); } final double shiftRightBy52 = 2.220446049250313080847263336181640625e-16; diff --git a/tests/lib_2/math/math_test.dart b/tests/lib_2/math/math_test.dart index 5d2d71d60c2..dccb5a36f82 100644 --- a/tests/lib_2/math/math_test.dart +++ b/tests/lib_2/math/math_test.dart @@ -109,7 +109,7 @@ class MathTest { } if (b == 0.0) { // No need to look if they are close. Otherwise the check for 'a' above - // whould have triggered. + // would have triggered. Expect.equals(a, b); } final double shiftRightBy52 = 2.220446049250313080847263336181640625e-16;