Skip to content

Commit

Permalink
Spelling tests
Browse files Browse the repository at this point in the history
Closes dart-lang#50764

GitOrigin-RevId: ee2fe9a
Change-Id: Ia73cd22da4e6ec95e84772aa4e1345ce2dbde215
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/276360
Reviewed-by: Erik Ernst <[email protected]>
Commit-Queue: Erik Ernst <[email protected]>
  • Loading branch information
jsoref authored and Commit Queue committed Dec 19, 2022
1 parent 323d5bf commit df97aca
Show file tree
Hide file tree
Showing 58 changed files with 98 additions and 98 deletions.
2 changes: 1 addition & 1 deletion tests/corelib/collection_length_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion tests/corelib/error_stack_trace2_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion tests/corelib/local_date_time_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/corelib/object_hash_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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<List<T>> permutations<T>(List<T> values) {
Expand Down
2 changes: 1 addition & 1 deletion tests/corelib/string_case_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/corelib/unsigned_shift_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion tests/corelib_2/collection_length_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion tests/corelib_2/local_date_time_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/corelib_2/object_hash_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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<List<T>> permutations<T>(List<T> values) {
Expand Down
2 changes: 1 addition & 1 deletion tests/corelib_2/string_case_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/ffi/generator/c_types.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
18 changes: 9 additions & 9 deletions tests/ffi/generator/structs_by_value_tests_configuration.dart
Original file line number Diff line number Diff line change
Expand Up @@ -319,11 +319,11 @@ On arm, arguments are 4 byte aligned."""),
FunctionType(
[
uint8,
struct32bytesInlineArrayMultiDimesional,
struct32bytesInlineArrayMultiDimensional,
uint8,
struct8bytesInlineArrayMultiDimesional,
struct8bytesInlineArrayMultiDimensional,
uint8,
struct8bytesInlineArrayMultiDimesional,
struct8bytesInlineArrayMultiDimensional,
uint8
],
uint32,
Expand Down Expand Up @@ -667,9 +667,9 @@ final compounds = [
struct16bytesFloatInlineNested,
struct32bytesDoubleInlineNested,
struct16bytesMixedInlineNested,
struct8bytesInlineArrayMultiDimesional,
struct32bytesInlineArrayMultiDimesional,
struct64bytesInlineArrayMultiDimesional,
struct8bytesInlineArrayMultiDimensional,
struct32bytesInlineArrayMultiDimensional,
struct64bytesInlineArrayMultiDimensional,
structMultiDimensionalStruct,
struct3bytesPacked,
struct3bytesPackedMembersAligned,
Expand Down Expand Up @@ -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])
]);

Expand Down
2 changes: 1 addition & 1 deletion tests/legacy_status_dart2js.csv
Original file line number Diff line number Diff line change
Expand Up @@ -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.,,
Expand Down
2 changes: 1 addition & 1 deletion tests/lib/async/future_extension_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ void testIgnore() {
});

asyncStart();
// Ignored futures can still be listend to.
// Ignored futures can still be listened to.
{
var c = Completer<int>.sync();
var f = c.future;
Expand Down
2 changes: 1 addition & 1 deletion tests/lib/convert/json_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion tests/lib/developer/post_event_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
2 changes: 1 addition & 1 deletion tests/lib/html/element_add_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down
2 changes: 1 addition & 1 deletion tests/lib/js/static_interop_test/futurevaluetype_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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<JSWindow> returnInteropType() async {
Expand Down
2 changes: 1 addition & 1 deletion tests/lib/mirrors/delegate_function_invocation_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down
10 changes: 5 additions & 5 deletions tests/lib/mirrors/instantiate_abstract_class_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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));
}
4 changes: 2 additions & 2 deletions tests/lib/mirrors/method_mirror_location_other.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ class ClassInOtherFile {

topLevelInOtherFile() {}

spaceIdentedInOtherFile() {}
spaceIndentedInOtherFile() {}

tabIdentedInOtherFile() {}
tabIndentedInOtherFile() {}
12 changes: 6 additions & 6 deletions tests/lib/mirrors/method_mirror_location_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ class ClassInMainFile {
}

void topLevelInMainFile() {}
spaceIdentedInMainFile() {}
tabIdentedInMainFile() {}
spaceIndentedInMainFile() {}
tabIndentedInMainFile() {}

class HasImplicitConstructor {}

Expand All @@ -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.
Expand All @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion tests/lib/mirrors/mirrors_reader.dart
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
2 changes: 1 addition & 1 deletion tests/lib/mirrors/mirrors_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion tests/lib/mirrors/proxy_type_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion tests/lib_2/async/future_extension_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ void testIgnore() {
});

asyncStart();
// Ignored futures can still be listend to.
// Ignored futures can still be listened to.
{
var c = Completer<int>.sync();
var f = c.future;
Expand Down
2 changes: 1 addition & 1 deletion tests/lib_2/convert/json_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion tests/lib_2/developer/post_event_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
2 changes: 1 addition & 1 deletion tests/lib_2/html/element_add_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<JSWindow> returnInteropType() async {
Expand Down
2 changes: 1 addition & 1 deletion tests/lib_2/mirrors/delegate_function_invocation_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

// @dart = 2.9

library test.delgate_function_invocation;
library test.delegate_function_invocation;

import 'dart:mirrors';

Expand Down
10 changes: 5 additions & 5 deletions tests/lib_2/mirrors/instantiate_abstract_class_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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));
}
4 changes: 2 additions & 2 deletions tests/lib_2/mirrors/method_mirror_location_other.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ class ClassInOtherFile {

topLevelInOtherFile() {}

spaceIdentedInOtherFile() {}
spaceIndentedInOtherFile() {}

tabIdentedInOtherFile() {}
tabIndentedInOtherFile() {}
Loading

0 comments on commit df97aca

Please sign in to comment.