mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 08:24:39 +00:00
Spelling tests language
Closes https://github.com/dart-lang/sdk/pull/50763 GitOrigin-RevId: ee6187bc11c8211402b6aa722eb2c0826cba3d5b Change-Id: I598004024a89e25710b9f16749ffb7c6fd6753c2 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/276340 Reviewed-by: Erik Ernst <eernst@google.com> Commit-Queue: Erik Ernst <eernst@google.com>
This commit is contained in:
parent
13978f85fd
commit
17ccbecc61
|
@ -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.
|
||||
|
||||
// If canonicialization hashes with only a field's cid, this will exhibit
|
||||
// If canonicalization hashes with only a field's cid, this will exhibit
|
||||
// quadratic time.
|
||||
|
||||
// 10,000 elements.
|
||||
|
|
|
@ -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.
|
||||
|
||||
// If canonicialization hashes with only a field's cid, this will exhibit
|
||||
// If canonicalization hashes with only a field's cid, this will exhibit
|
||||
// quadratic time.
|
||||
|
||||
class Box {
|
||||
|
|
|
@ -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.
|
||||
|
||||
// If canonicialization hashes with only a field's cid, this will exhibit
|
||||
// If canonicalization hashes with only a field's cid, this will exhibit
|
||||
// quadratic time.
|
||||
|
||||
class Box {
|
||||
|
|
|
@ -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.
|
||||
|
||||
// If canonicialization hashes with only a field's cid, this will exhibit
|
||||
// If canonicalization hashes with only a field's cid, this will exhibit
|
||||
// quadratic time.
|
||||
|
||||
class Box {
|
||||
|
|
|
@ -74,7 +74,7 @@ const BOP11 = BOOL_LIT != true;
|
|||
// Multiple binary expressions
|
||||
const BOP20 = 1 * INT_LIT / 3 + INT_LIT + 9;
|
||||
|
||||
// Parenthised expressions
|
||||
// Parenthesized expressions
|
||||
const BOP30 = (1 > 2);
|
||||
const BOP31 = (1 * 2) + 3;
|
||||
const BOP32 = 3 + (1 * 2);
|
||||
|
|
|
@ -30,7 +30,7 @@ enum JSFunctionPrototype {
|
|||
__proto__,
|
||||
arguments,
|
||||
caller,
|
||||
calee,
|
||||
callee,
|
||||
name,
|
||||
constructor,
|
||||
apply,
|
||||
|
|
|
@ -27,12 +27,12 @@ main() {
|
|||
|
||||
var b = new A<bool>();
|
||||
var i = new A<int>();
|
||||
Expect.isTrue(b.foo is F, 'runtime type of covaraint parameters is Object');
|
||||
Expect.isTrue(i.foo is F, 'runtime type of covaraint parameters is Object');
|
||||
Expect.isTrue(b.foo is F, 'runtime type of covariant parameters is Object');
|
||||
Expect.isTrue(i.foo is F, 'runtime type of covariant parameters is Object');
|
||||
Expect.isTrue(
|
||||
b.foo is F<Object>, 'runtime type of covaraint parameters is Object');
|
||||
b.foo is F<Object>, 'runtime type of covariant parameters is Object');
|
||||
Expect.isTrue(
|
||||
i.foo is F<Object>, 'runtime type of covaraint parameters is Object');
|
||||
i.foo is F<Object>, 'runtime type of covariant parameters is Object');
|
||||
Expect.isTrue(b.foo is F<bool>);
|
||||
Expect.isTrue(i.foo is F<int>);
|
||||
Expect.isTrue(b.foo is! F<int>);
|
||||
|
|
|
@ -5,7 +5,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.
|
||||
|
||||
// Test that parameter types types are checked correctly in the face of
|
||||
// Test that parameter types are checked correctly in the face of
|
||||
// mixin application upon a generic constructor.
|
||||
|
||||
import '../dynamic_type_helper.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.
|
||||
|
||||
// Test that parameter types types are checked correctly in the face of
|
||||
// Test that parameter types are checked correctly in the face of
|
||||
// mixin application upon a generic constructor.
|
||||
|
||||
import '../dynamic_type_helper.dart';
|
||||
|
|
|
@ -5,7 +5,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.
|
||||
|
||||
// Test that parameter types types are checked correctly in the face of
|
||||
// Test that parameter types are checked correctly in the face of
|
||||
// mixin application upon a generic constructor.
|
||||
|
||||
import '../dynamic_type_helper.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.
|
||||
|
||||
// Test that parameter types types are checked correctly in the face of
|
||||
// Test that parameter types are checked correctly in the face of
|
||||
// mixin application upon a generic constructor.
|
||||
|
||||
import '../dynamic_type_helper.dart';
|
||||
|
|
|
@ -5,7 +5,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.
|
||||
|
||||
// Test that parameter types types are checked correctly in the face of
|
||||
// Test that parameter types are checked correctly in the face of
|
||||
// mixin application upon a generic constructor.
|
||||
|
||||
import '../dynamic_type_helper.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.
|
||||
|
||||
// Test that parameter types types are checked correctly in the face of
|
||||
// Test that parameter types are checked correctly in the face of
|
||||
// mixin application upon a generic constructor.
|
||||
|
||||
import '../dynamic_type_helper.dart';
|
||||
|
|
|
@ -60,7 +60,7 @@ class C<@A<int>(0) T> {
|
|||
@A<int>(0)
|
||||
factory C.facRed(@A<int>(0) int x) = C;
|
||||
|
||||
// Instance (virtual) declartions.
|
||||
// Instance (virtual) declarations.
|
||||
@A<int>(0)
|
||||
final f = 0;
|
||||
|
||||
|
@ -79,7 +79,7 @@ class C<@A<int>(0) T> {
|
|||
@A<int>(0)
|
||||
int operator +(@A<int>(0) int x) => x;
|
||||
|
||||
// Static declartions.
|
||||
// Static declarations.
|
||||
@A<int>(0)
|
||||
static const sc = C<int>(0);
|
||||
|
||||
|
@ -101,7 +101,7 @@ class C<@A<int>(0) T> {
|
|||
|
||||
@A<int>(0)
|
||||
abstract class AC<@A<int>(0) T> {
|
||||
// Instance (virtual) declartions.
|
||||
// Instance (virtual) declarations.
|
||||
@A<int>(0)
|
||||
abstract final f;
|
||||
|
||||
|
@ -123,7 +123,7 @@ abstract class AC<@A<int>(0) T> {
|
|||
|
||||
@A<int>(0)
|
||||
extension E<@A<int>(0) T> on T {
|
||||
// Instance extension member declartions.
|
||||
// Instance extension member declarations.
|
||||
@A<int>(0)
|
||||
void mp(@A<int>(0) Object x, [@A<int>(0) int y = 0]) {}
|
||||
|
||||
|
@ -139,7 +139,7 @@ extension E<@A<int>(0) T> on T {
|
|||
@A<int>(0)
|
||||
int operator +(@A<int>(0) int x) => x;
|
||||
|
||||
// Static declartions.
|
||||
// Static declarations.
|
||||
@A<int>(0)
|
||||
static const sc = C<int>(0);
|
||||
|
||||
|
@ -161,7 +161,7 @@ extension E<@A<int>(0) T> on T {
|
|||
|
||||
@A<int>(0)
|
||||
mixin M<@A<int>(0) T> {
|
||||
// Instance member declartions.
|
||||
// Instance member declarations.
|
||||
@A<int>(0)
|
||||
final f = 0;
|
||||
|
||||
|
@ -180,7 +180,7 @@ mixin M<@A<int>(0) T> {
|
|||
@A<int>(0)
|
||||
int operator +(@A<int>(0) int x) => x;
|
||||
|
||||
// Static declartions.
|
||||
// Static declarations.
|
||||
@A<int>(0)
|
||||
static const sc = C<int>(0);
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ import "implicit_new_or_const_generic_test.dart" as prefix;
|
|||
// Test that const constructors with const arguments do not become const
|
||||
// if not in a const context.
|
||||
|
||||
// This test uses a generic class cosntructor with no prefix,
|
||||
// This test uses a generic class constructor with no prefix,
|
||||
// which requires new Dart 2 syntax.
|
||||
|
||||
main() {
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
class/large_class_declaration_test: Skip # JVM stack overflow.
|
||||
closure/type_test: Pass # Marked as RuntimeError for all in language_2.status.
|
||||
const/native_factory_test: Skip # Uses `native`.
|
||||
double/invalid_test: Skip # Contains illegaly formatted double.
|
||||
double/invalid_test: Skip # Contains illegally formatted double.
|
||||
nnbd/syntax/opt_out_nnbd_modifiers_test: Skip # Requires opt-out of NNBD.
|
||||
regress/regress1751477_test: Skip # Times out: 9 levels, exponential blowup => 430 secs.
|
||||
syntax/deep_nesting_expression_test: Skip # JVM stack overflow.
|
||||
|
|
|
@ -6,7 +6,7 @@ import 'package:expect/expect.dart';
|
|||
import 'package:expect/config.dart';
|
||||
|
||||
main() {
|
||||
// Comman libraries should appear on all backends.
|
||||
// Common libraries should appear on all backends.
|
||||
Expect.isTrue(const bool.fromEnvironment("dart.library.async"));
|
||||
Expect.isTrue(const bool.fromEnvironment("dart.library.collection"));
|
||||
Expect.isTrue(const bool.fromEnvironment("dart.library.convert"));
|
||||
|
|
|
@ -107,7 +107,7 @@ class MethodBindingTest {
|
|||
c.f = () => "success";
|
||||
Expect.equals("success", c.f());
|
||||
|
||||
// referencing instance method with explicit 'this' qualiier
|
||||
// referencing instance method with explicit 'this' qualifier
|
||||
var o6 = new A(6);
|
||||
var f6 = o6.getThis();
|
||||
Expect.equals(6, f6());
|
||||
|
|
|
@ -10,7 +10,7 @@ abstract class UnaryNum {
|
|||
num foo(num x);
|
||||
}
|
||||
|
||||
// Overides must still be valid, wrt. signatures and types.
|
||||
// Overrides must still be valid, wrt. signatures and types.
|
||||
|
||||
mixin M3 on UnaryNum {
|
||||
// M3.foo is a valid override of UnaryNum.foo
|
||||
|
|
|
@ -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.
|
||||
|
||||
// This version should continue to opt in to null safety in purpetuity (or at
|
||||
// This version should continue to opt in to null safety in perpetuity (or at
|
||||
// least until Dart 3), when the experiment is enabled.
|
||||
// @dart = 2.12
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (c) 2012, 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 deoptimziation caused by lazy finalization.
|
||||
// Test deoptimization caused by lazy finalization.
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-use-osr
|
||||
|
||||
import "package:expect/expect.dart";
|
||||
|
|
|
@ -8,7 +8,7 @@ import "package:expect/expect.dart";
|
|||
import "dart:async";
|
||||
|
||||
var sync = "topLevelSync";
|
||||
var async = "topLevelAync";
|
||||
var async = "topLevelAsync";
|
||||
var await = "topLevelAwait";
|
||||
var yield = "topLevelYield";
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
||||
// Test that the ParalleMoveResolver in the VM uses valid registers
|
||||
// Test that the ParallelMoveResolver in the VM uses valid registers
|
||||
// when requiring scratch registers.
|
||||
|
||||
main() {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
// @dart = 2.9
|
||||
|
||||
// If canonicialization hashes with only a field's cid, this will exhibit
|
||||
// If canonicalization hashes with only a field's cid, this will exhibit
|
||||
// quadratic time.
|
||||
|
||||
// 10,000 elements.
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
// @dart = 2.9
|
||||
|
||||
// If canonicialization hashes with only a field's cid, this will exhibit
|
||||
// If canonicalization hashes with only a field's cid, this will exhibit
|
||||
// quadratic time.
|
||||
|
||||
class Box {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
// @dart = 2.9
|
||||
|
||||
// If canonicialization hashes with only a field's cid, this will exhibit
|
||||
// If canonicalization hashes with only a field's cid, this will exhibit
|
||||
// quadratic time.
|
||||
|
||||
class Box {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
// @dart = 2.9
|
||||
|
||||
// If canonicialization hashes with only a field's cid, this will exhibit
|
||||
// If canonicalization hashes with only a field's cid, this will exhibit
|
||||
// quadratic time.
|
||||
|
||||
class Box {
|
||||
|
|
|
@ -76,7 +76,7 @@ const BOP11 = BOOL_LIT != true;
|
|||
// Multiple binary expressions
|
||||
const BOP20 = 1 * INT_LIT / 3 + INT_LIT + 9;
|
||||
|
||||
// Parenthised expressions
|
||||
// Parenthesized expressions
|
||||
const BOP30 = (1 > 2);
|
||||
const BOP31 = (1 * 2) + 3;
|
||||
const BOP32 = 3 + (1 * 2);
|
||||
|
|
|
@ -32,7 +32,7 @@ enum JSFunctionPrototype {
|
|||
__proto__,
|
||||
arguments,
|
||||
caller,
|
||||
calee,
|
||||
callee,
|
||||
name,
|
||||
constructor,
|
||||
apply,
|
||||
|
|
|
@ -29,12 +29,12 @@ main() {
|
|||
|
||||
var b = new A<bool>();
|
||||
var i = new A<int>();
|
||||
Expect.isTrue(b.foo is F, 'runtime type of covaraint parameters is Object');
|
||||
Expect.isTrue(i.foo is F, 'runtime type of covaraint parameters is Object');
|
||||
Expect.isTrue(b.foo is F, 'runtime type of covariant parameters is Object');
|
||||
Expect.isTrue(i.foo is F, 'runtime type of covariant parameters is Object');
|
||||
Expect.isTrue(
|
||||
b.foo is F<Object>, 'runtime type of covaraint parameters is Object');
|
||||
b.foo is F<Object>, 'runtime type of covariant parameters is Object');
|
||||
Expect.isTrue(
|
||||
i.foo is F<Object>, 'runtime type of covaraint parameters is Object');
|
||||
i.foo is F<Object>, 'runtime type of covariant parameters is Object');
|
||||
Expect.isTrue(b.foo is F<bool>);
|
||||
Expect.isTrue(i.foo is F<int>);
|
||||
Expect.isTrue(b.foo is! F<int>);
|
||||
|
|
|
@ -7,7 +7,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.
|
||||
|
||||
// Test that parameter types types are checked correctly in the face of
|
||||
// Test that parameter types are checked correctly in the face of
|
||||
// mixin application upon a generic constructor.
|
||||
|
||||
import '../dynamic_type_helper.dart';
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
// @dart = 2.9
|
||||
|
||||
// Test that parameter types types are checked correctly in the face of
|
||||
// Test that parameter types are checked correctly in the face of
|
||||
// mixin application upon a generic constructor.
|
||||
|
||||
import '../dynamic_type_helper.dart';
|
||||
|
|
|
@ -7,7 +7,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.
|
||||
|
||||
// Test that parameter types types are checked correctly in the face of
|
||||
// Test that parameter types are checked correctly in the face of
|
||||
// mixin application upon a generic constructor.
|
||||
|
||||
import '../dynamic_type_helper.dart';
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
// @dart = 2.9
|
||||
|
||||
// Test that parameter types types are checked correctly in the face of
|
||||
// Test that parameter types are checked correctly in the face of
|
||||
// mixin application upon a generic constructor.
|
||||
|
||||
import '../dynamic_type_helper.dart';
|
||||
|
|
|
@ -7,7 +7,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.
|
||||
|
||||
// Test that parameter types types are checked correctly in the face of
|
||||
// Test that parameter types are checked correctly in the face of
|
||||
// mixin application upon a generic constructor.
|
||||
|
||||
import '../dynamic_type_helper.dart';
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
// @dart = 2.9
|
||||
|
||||
// Test that parameter types types are checked correctly in the face of
|
||||
// Test that parameter types are checked correctly in the face of
|
||||
// mixin application upon a generic constructor.
|
||||
|
||||
import '../dynamic_type_helper.dart';
|
||||
|
|
|
@ -11,7 +11,7 @@ import "implicit_new_or_const_generic_test.dart" as prefix;
|
|||
// Test that const constructors with const arguments do not become const
|
||||
// if not in a const context.
|
||||
|
||||
// This test uses a generic class cosntructor with no prefix,
|
||||
// This test uses a generic class constructor with no prefix,
|
||||
// which requires new Dart 2 syntax.
|
||||
|
||||
main() {
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
class/large_class_declaration_test: Skip # JVM stack overflow.
|
||||
closure/type_test: Pass # Marked as RuntimeError for all in language_2.status.
|
||||
const/native_factory_test: Skip # Uses `native`.
|
||||
double/invalid_test: Skip # Contains illegaly formatted double.
|
||||
double/invalid_test: Skip # Contains illegally formatted double.
|
||||
nnbd/syntax/opt_out_nnbd_modifiers_test: Skip # Requires opt-out of NNBD.
|
||||
regress/regress1751477_test: Skip # Times out: 9 levels, exponential blowup => 430 secs.
|
||||
syntax/deep_nesting_expression_test: Skip # JVM stack overflow.
|
||||
|
|
|
@ -109,7 +109,7 @@ class MethodBindingTest {
|
|||
c.f = () => "success";
|
||||
Expect.equals("success", c.f());
|
||||
|
||||
// referencing instance method with explicit 'this' qualiier
|
||||
// referencing instance method with explicit 'this' qualifier
|
||||
var o6 = new A(6);
|
||||
var f6 = o6.getThis();
|
||||
Expect.equals(6, f6());
|
||||
|
|
|
@ -12,7 +12,7 @@ abstract class UnaryNum {
|
|||
num foo(num x);
|
||||
}
|
||||
|
||||
// Overides must still be valid, wrt. signatures and types.
|
||||
// Overrides must still be valid, wrt. signatures and types.
|
||||
|
||||
mixin M3 on UnaryNum {
|
||||
// M3.foo is a valid override of UnaryNum.foo
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (c) 2012, 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 deoptimziation caused by lazy finalization.
|
||||
// Test deoptimization caused by lazy finalization.
|
||||
// VMOptions=--optimization-counter-threshold=10 --no-use-osr
|
||||
|
||||
// @dart = 2.9
|
||||
|
|
|
@ -10,7 +10,7 @@ import "package:expect/expect.dart";
|
|||
import "dart:async";
|
||||
|
||||
var sync = "topLevelSync";
|
||||
var async = "topLevelAync";
|
||||
var async = "topLevelAsync";
|
||||
var await = "topLevelAwait";
|
||||
var yield = "topLevelYield";
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
// @dart = 2.9
|
||||
|
||||
// Test that the ParalleMoveResolver in the VM uses valid registers
|
||||
// Test that the ParallelMoveResolver in the VM uses valid registers
|
||||
// when requiring scratch registers.
|
||||
|
||||
main() {
|
||||
|
|
Loading…
Reference in a new issue