Skip to content

Commit c73677e

Browse files
parloughCommit Queue
authored andcommitted
[tests] Minor spelling and grammar fixes
Change-Id: I18c309b9037cf94a883443ac9067f911f829516c Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/388945 Reviewed-by: Lasse Nielsen <[email protected]> Reviewed-by: Nate Bosch <[email protected]> Commit-Queue: Lasse Nielsen <[email protected]>
1 parent a1c8054 commit c73677e

File tree

53 files changed

+61
-62
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+61
-62
lines changed

tests/corelib/date_time_far_away_dates_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ void testFarAwayDates() {
5050
Expect.equals(true, dt.hour >= 0 && dt.hour < 24);
5151
// Not much we can test for the minute and second.
5252
//
53-
// Historical timezones can have arbitrary offets. For example, "Pacific
53+
// Historical timezones can have arbitrary offsets. For example, "Pacific
5454
// Standard Time" in the United States is represented by Los Angeles. Prior to
5555
// the adoption of "Railway Time" in the United States at noon on 18 November
5656
// 1883, the local time in Los Angeles had an offset of a few minutes from the

tests/corelib/map_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ void main() {
5757

5858
// NaN maps need to have nullable value types because the forEach method
5959
// cannot look up the value and therefore might find `null` instead of the
60-
// actuall value. See MapMixin.forEach in dart:collection/maps.dart
60+
// actual value. See MapMixin.forEach in dart:collection/maps.dart
6161
testNaNKeys(new Map());
6262
testNaNKeys(new Map<num, String?>());
6363
testNaNKeys(new HashMap());

tests/corelib/regexp/overflow_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import 'package:expect/expect.dart';
2727

2828
void main() {
2929
description(
30-
"This test checks expressions with alternative lengths of appox. 2^31.");
30+
"This test checks expressions with alternative lengths of approx. 2^31.");
3131

3232
var regexp1 = new RegExp(r"(?:(?=g))|(?:m).{2147483648,}");
3333
shouldBeNull(regexp1.firstMatch(''));

tests/corelib/regexp/unicode-regexp-restricted-syntax_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ void main() {
5151
assertThrows(() => RegExp(r"[\c]", unicode: true));
5252
// test262/built-ins/RegExp/unicode_restricted_identity_escape_c
5353
assertThrows(() => RegExp(r"[\c0]", unicode: true));
54-
// test262/built-ins/RegExp/unicode_restricted_incomple_quantifier
54+
// test262/built-ins/RegExp/unicode_restricted_incomplete_quantifier
5555
assertThrows(() => RegExp(r"a{", unicode: true));
5656
assertThrows(() => RegExp(r"a{1,", unicode: true));
5757
assertThrows(() => RegExp(r"{", unicode: true));

tests/corelib/stopwatch_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class StopwatchTest {
4444
}
4545
sw2LastElapsed = sw2.elapsedTicks;
4646
}
47-
// The test only makes sense if measureable time elapsed and elapsed time
47+
// The test only makes sense if measurable time elapsed and elapsed time
4848
// on the stopped Stopwatch did not increase.
4949
Expect.isTrue(sw2.elapsedTicks > 0);
5050
return true;

tests/language/await/await_with_no_context_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5-
// Verify that if an `await` expression appears in a syntactic postion that
5+
// Verify that if an `await` expression appears in a syntactic position that
66
// doesn't impose a context on it, it supplies a context of `FutureOr<_>` to its
77
// operand, rather than `_` (which was the behavior prior to fixing
88
// https://github.com/dart-lang/language/issues/3648).

tests/language/bool/has_environment_not_new_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const bool isVM = const bool.fromEnvironment('dart.isVM');
88

99
main() {
1010
// On non-VM targets `new bool.hasEnvironment(...)` just throws, because it
11-
// is only guaranted to work with `const`. However on VM it actually works.
11+
// is only guaranteed to work with `const`. However on VM it actually works.
1212
if (!isVM) {
1313
Expect.throws(() => new bool.hasEnvironment("Anything"));
1414
} else {

tests/language/class_modifiers/trans_legacy/legacy_lib.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import "dart:collection";
88

99
// Pre-feature declarations which ignore platform library restrictions.
1010
// Used to test that feature-enabled libraries behave correctly when
11-
// going througn pre-feature super-declarations.
11+
// going through pre-feature super-declarations.
1212

1313
// Ignoring rule against extending, implementing, mixing in and `on`-typing
1414
// a final declaration.

tests/language/deferred/exported_main_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ foo() {
99
// The frontend will not recognize that this is the root library. Though this
1010
// library is not reachable from what the frontend considers the root library,
1111
// the entry point pragma will still cause this function to compiled by
12-
// gen_snaption, so it is important that this library is assigned to a
12+
// gen_snapshot, so it is important that this library is assigned to a
1313
// loading unit.
1414
}

tests/language/enum/enhanced_enums_basic_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ enum EnumAll<S extends num, T extends num>
236236
// constructors and the implicit element creation expressions.)
237237
// Cannot have const factory constructor, because they *must* redirect to
238238
// generative constructors.
239-
// Cannot have `super`-constuctor invocations in initializer lists.
239+
// Cannot have `super`-constructor invocations in initializer lists.
240240

241241
// Instance members.
242242

0 commit comments

Comments
 (0)