[tests] Cleanup remnants of multi-test migration

- Rename some compile time errors tests to end with "error_test.dart"
- Delete runtime tests that no longer perform the operations they
  claim to be testing. In many cases they do nothing at all.

Change-Id: I49c7b50d6628f56641b878635b32dbc0bc016bbb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/345345
Commit-Queue: Nicholas Shahan <nshahan@google.com>
Reviewed-by: Erik Ernst <eernst@google.com>
This commit is contained in:
Nicholas Shahan 2024-01-10 18:35:50 +00:00 committed by Commit Queue
parent 8938a7e499
commit 154cf8c52b
16 changed files with 0 additions and 237 deletions

View file

@ -1,18 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// 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.
// Check that calling a constructor of a class that cannot be resolved causes
// compile error.
import "package:expect/expect.dart";
import 'dart:math';
main() {
}

View file

@ -1,32 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2018, 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.
// Dart test program to test arithmetic operations.
class B {}
class C {
B call(B b) => b;
}
typedef B BToB(B x);
class D {
BToB f() => ((B x) => x);
void g(C x) {}
}
class E extends D {
// This override is illegal because C is not a subtype of BToB.
// This override is illegal because BToB is not a supertype of C.
}
main() {
new E();
}

View file

@ -1,22 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// 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.
// Tests calling an object's field which is not a method.
class Fisk {
int i = 0;
}
class Hest extends Fisk {}
main() {
Fisk x1 = new Fisk();
Hest x2 = new Hest();
}

View file

@ -1,25 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// 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.
import "package:expect/expect.dart";
// When attempting to call a nonexistent constructor, check that a
// compile error is reported.
foo() {
throw 'hest';
}
class A {
A.foo(var x) {}
}
main() {
new A.foo(42);
}

View file

@ -1,20 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2017, 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.
void test(dynamic d, Object o, Function f) {
d();
}
main() {}

View file

@ -1,20 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2017, 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.
void test(dynamic d, Object o, Function f) {
f();
}
main() {}

View file

@ -1,20 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2017, 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.
void test(dynamic d, Object o, Function f) {
d.call;
}
main() {}

View file

@ -1,20 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2017, 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.
void test(dynamic d, Object o, Function f) {
f.call;
}
main() {}

View file

@ -1,20 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2017, 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.
void test(dynamic d, Object o, Function f) {
d.call();
}
main() {}

View file

@ -1,20 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2017, 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.
void test(dynamic d, Object o, Function f) {
f.call();
}
main() {}

View file

@ -1,20 +0,0 @@
// TODO(multitest): This was automatically migrated from a multitest and may
// contain strange or dead code.
// Copyright (c) 2017, 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.
void test(dynamic d, Object o, Function f) {
}
main() {}