Migrate the lingering language_strong tests over to language_2.

Change-Id: I4d60b650a2146c1d9be0fd0c5f98eac85f9e2eb1
Reviewed-on: https://dart-review.googlesource.com/16333
Commit-Queue: Bob Nystrom <rnystrom@google.com>
Reviewed-by: Ben Konyi <bkonyi@google.com>
This commit is contained in:
Bob Nystrom
2017-10-27 23:44:08 +00:00
committed by commit-bot@chromium.org
parent 0aa6801f8a
commit ba84855c0a
64 changed files with 245 additions and 910 deletions
-1
View File
@@ -41,7 +41,6 @@ tests/lib_2/mirrors/method_mirror_source_line_ending_crlf.dart -text
tests/lib_2/mirrors/method_mirror_source_line_ending_lf.dart -text
tests/lib_2/mirrors/method_mirror_source_test.dart -text
tests/lib_2/mirrors/method_mirror_source_other.dart -text
tests/language_strong/multiline_newline_crlf.dart -text
tests/lib_2/mirrors/method_mirror_source_line_ending_test.dart -text
tests/lib_2/mirrors/method_mirror_source_line_ending_cr.dart -text
tests/lib_2/mirrors/method_mirror_source_line_ending_crlf.dart -text
+1 -1
View File
@@ -6,7 +6,7 @@
# current state of the language.
[ $strong ]
*: SkipByDesign # tests/language_strong has the strong mode versions of these tests.
*: SkipByDesign # tests/language_2 has the strong mode versions of these tests.
[ $compiler == precompiler && $runtime == dart_precompiled && $arch == simarm64 ]
compile_time_constant_checked_test/none: Skip # Issue 31176
@@ -14,10 +14,6 @@ class Tracer {
Tracer(this.expected, [this.name]);
void trace(msg) {
if (name != null) {
// Commented out, see https://github.com/dart-lang/dev_compiler/issues/278
//print("Tracing $name: $msg");
}
Expect.equals(expected[counter], msg);
counter++;
}
@@ -15,10 +15,6 @@ class Tracer {
Tracer(this.expected, [this.name]);
void trace(msg) {
if (name != null) {
// Commented out, see https://github.com/dart-lang/dev_compiler/issues/278
//print("Tracing $name: $msg");
}
_trace += msg;
counter++;
}
@@ -37,8 +37,9 @@ main() {
Y y = new Y();
Function g = y; // Should pass checked mode test
F f0 = y; // Should pass checked mode test
F f1 = x; //# 00: dynamic type error, static type warning
G g0 = y; //# 01: dynamic type error, static type warning
F f1 = x; //# 00: compile-time error
G g0 = y; //# 01: compile-time error
Expect.equals(f(), 42);
Expect.equals(g(100), 187);
@@ -55,4 +56,12 @@ main() {
H xx2 = new XX.named();
Expect.equals(xx2(), 42);
Expect.throwsTypeError(() {
F f2 = x as dynamic;
});
Expect.throwsTypeError(() {
G g1 = y as dynamic;
});
}
@@ -10,7 +10,7 @@ class A {
class B extends A {}
class C extends B {
var a; //# 01: static type warning
var a; //# 01: compile-time error
static var b; //# 02: compile-time error
}
@@ -8,8 +8,8 @@ class A {
}
class C extends A {
f() {} //# 01: static type warning
foo(var a, [x]) {} //# 02: static type warning
f() {} //# 01: compile-time error
foo(var a, [x]) {} //# 02: compile-time error
}
main() {
@@ -29,7 +29,7 @@ class FunctionLiteralsTest {
h(42); // make sure it is parsed as a function call
Expect.equals(20, h(10));
var a = (x) {
dynamic a = (x) {
return x + 2;
};
Expect.equals(7, a(5));
@@ -45,14 +45,12 @@ class FunctionLiteralsTest {
void testArrow() {
checkIntFunction(42, (x) => x, 42);
checkIntFunction(42, (int x) => x, 42);
checkIntFunction(42, (dynamic x) => x, 42);
}
void testArrowArrow() {
checkIntFuncFunction(84, (x) => (y) => x + y, 42);
checkIntFuncFunction(84, (int x) => (y) => x + y, 42);
checkIntFuncFunction(84, (x) => (y) => x + y, 42);
checkIntFuncFunction(84, (int x) => (y) => x + y, 42);
checkIntFuncFunction(84, (dynamic x) => (y) => x + y, 42);
}
void testArrowBlock() {
@@ -84,7 +82,7 @@ class FunctionLiteralsTest {
return (y) => x + y;
}, 42);
checkIntFuncFunction(84, (int x) {
return (y) => x + y;
return (y) => (x + y) as int;
}, 42);
}
@@ -0,0 +1,13 @@
// 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.
// Dart test for a function with a malformed result type.
import "package:expect/expect.dart";
class C<T, U> {}
main() {
C<int> f() => null; //# 00: compile-time error
}
@@ -2,6 +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.
// Regression test for https://github.com/dart-lang/sdk/issues/30912.
import 'package:expect/expect.dart';
class Foo {}
@@ -14,7 +15,6 @@ class Baz<S extends Foo, T extends Bar> {
Func<S, Bar> func;
}
/// Regression test for https://github.com/dart-lang/sdk/issues/30912
void main() {
dynamic baz = new Baz();
Expect.isNull(baz.func);
@@ -2,9 +2,8 @@
// 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.
// VMOptions=--enable_type_checks
//
// Dart test for function type alias with optional parameters.
// Dart test for function type alias with optional parameters.
import "package:expect/expect.dart";
typedef int f1<T>([int a, int b, T c]);
@@ -1,12 +1,9 @@
// Copyright (c) 2011, 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 for function type alias with an imported result type that happens
// to have the same name as a type parameter.
library main;
import "package:expect/expect.dart";
import "library11.dart" as lib11;
@@ -1,9 +1,8 @@
// Copyright (c) 2011, 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 for function type alias with a type parameter as result type.
// Dart test for function type alias with a type parameter as result type.
import "package:expect/expect.dart";
typedef bool F<bool>(bool a); // 'bool' is not the boolean type.
@@ -3,15 +3,15 @@
// BSD-style license that can be found in the LICENSE file.
// Dart test for illegally self referencing function type alias.
typedef Handle Handle(String command); // //# 00: compile-time error
typedef Handle Handle(String command); //# 00: compile-time error
typedef F(F x); // //# 01: compile-time error
typedef F(F x); //# 01: compile-time error
typedef A(B x); // //# 02: compile-time error
typedef B(A x); // //# 02: continued
typedef A(B x); //# 02: compile-time error
typedef B(A x); //# 02: continued
main() {
Handle h; // //# 00: continued
F f; // //# 01: continued
A f; // //# 02: continued
Handle h; //# 00: continued
F f; //# 01: continued
A f; //# 02: continued
}
@@ -7,7 +7,7 @@ import "package:expect/expect.dart";
typedef F(
List
<F> // //# 00: compile-time error
<F> //# 00: compile-time error
x);
typedef D C();
@@ -4,9 +4,9 @@
typedef void funcType([int arg]);
typedef void badFuncType([int arg = 0]); // //# 00: compile-time error
typedef void badFuncType([int arg = 0]); //# 00: compile-time error
typedef void badFuncType({int arg: 0}); // //# 02: compile-time error
typedef void badFuncType({int arg: 0}); //# 02: compile-time error
class A
extends funcType // //# 01: compile-time error
@@ -14,6 +14,6 @@ class A
main() {
new A();
badFuncType f; // //# 00: continued
badFuncType f; // //# 02: continued
badFuncType f; //# 00: continued
badFuncType f; //# 02: continued
}
@@ -5,7 +5,7 @@
typedef void F(
List
<G> // //# 00: compile-time error
<G> //# 00: compile-time error
l);
typedef void G(List<F> l);
@@ -30,7 +30,7 @@ typedef void BoundsCheck<T extends num>(T arg);
class FunctionTypeAliasTest {
FunctionTypeAliasTest() {}
static int test(CompareObj compare, Object a, Object b) {
static int test<T>(int compare(T a, T b), T a, T b) {
return compare(a, b);
}
@@ -49,7 +49,7 @@ class FunctionTypeAliasTest {
Expect.isTrue(compareStrLen is Fun);
Expect.isTrue(compareStrLen is IntFun);
Expect.isTrue(compareStrLen is! BoolFun);
Expect.isTrue(compareStrLen is CompareObj);
Expect.isTrue(compareStrLen is! CompareObj);
Expect.isTrue(compareStrLen is! CompareInt);
Expect.isTrue(compareStrLen is! CompareString);
Expect.equals(3, test(compareStrLen, "abcdef", "xyz"));
@@ -61,7 +61,7 @@ class FunctionTypeAliasTest {
Expect.isTrue(compareStrLenSwap is Fun);
Expect.isTrue(compareStrLenSwap is IntFun);
Expect.isTrue(compareStrLenSwap is! BoolFun);
Expect.isTrue(compareStrLenSwap is CompareObj);
Expect.isTrue(compareStrLenSwap is! CompareObj);
Expect.isTrue(compareStrLenSwap is! CompareInt);
Expect.isTrue(compareStrLenSwap is CompareString);
@@ -72,7 +72,7 @@ class FunctionTypeAliasTest {
Expect.isTrue(compareStrLenReverse is Fun);
Expect.isTrue(compareStrLenReverse is IntFun);
Expect.isTrue(compareStrLenReverse is! BoolFun);
Expect.isTrue(compareStrLenReverse is CompareObj);
Expect.isTrue(compareStrLenReverse is! CompareObj);
Expect.isTrue(compareStrLenReverse is! CompareInt);
Expect.isTrue(compareStrLenReverse is CompareString);
@@ -92,9 +92,9 @@ class FunctionTypeAliasTest {
return a - b;
};
Expect.isTrue(minus is Fun);
Expect.isTrue(compareStrLen is IntFun);
Expect.isTrue(compareStrLen is! BoolFun);
Expect.isTrue(minus is CompareObj);
Expect.isTrue(minus is IntFun);
Expect.isTrue(minus is! BoolFun);
Expect.isTrue(minus is! CompareObj);
Expect.isTrue(minus is CompareInt);
Expect.isTrue(minus is! CompareString);
Expect.equals(99, test(minus, 100, 1));
@@ -107,15 +107,15 @@ class FunctionTypeAliasTest {
Expect.isTrue(plus is Fun);
Expect.isTrue(plus is IntFun);
Expect.isTrue(plus is! BoolFun);
Expect.isTrue(plus is CompareObj);
Expect.isTrue(plus is! CompareObj);
Expect.isTrue(plus is CompareInt);
Expect.isTrue(plus is! CompareString);
Expect.equals(0, bar());
Function boundsTrue = (int arg) {};
Function boundsTrue = (num arg) {};
Function boundsFalse = (String arg) {};
Expect.isTrue(boundsTrue is BoundsCheck<num>);
Expect.isTrue(boundsTrue is BoundsCheck<int>);
Expect.isFalse(boundsFalse is BoundsCheck<num>);
}
}
@@ -0,0 +1,73 @@
// 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 LICENSE file.
import "package:expect/expect.dart";
class A {
final call = null;
}
class B {
get call => null;
}
class C {
set call(x) {}
}
typedef int F(String str);
main() {
A a = new A();
B b = new B();
C c = new C();
final
Function //# 00: compile-time error
a2 = a;
final
F //# 01: compile-time error
a3 = a;
final
Function //# 02: compile-time error
b2 = b;
final
F //# 03: compile-time error
b3 = b;
final
Function //# 04: compile-time error
c2 = c;
final
F //# 05: compile-time error
c3 = c;
Expect.throwsTypeError(() {
Function a4 = a as dynamic;
});
Expect.throwsTypeError(() {
F a5 = a as dynamic;
});
Expect.throwsTypeError(() {
Function b4 = b as dynamic;
});
Expect.throwsTypeError(() {
F b5 = b as dynamic;
});
Expect.throwsTypeError(() {
Function c4 = c as dynamic;
});
Expect.throwsTypeError(() {
F c5 = c as dynamic;
});
}
@@ -1,6 +1,7 @@
// Copyright (c) 2011, 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 that we detect that a function literal is not
// a compile time constant.
@@ -1,6 +1,7 @@
// Copyright (c) 2011, 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 to check that we can parse closure type formal parameters with
// default value.
@@ -1,37 +1,17 @@
// 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.
// Dart test for a function type test that cannot be eliminated at compile time.
// Dart test for a function type test that cannot be eliminated at compile time.
import "package:expect/expect.dart";
isCheckedMode() {
try {
var i = 1;
String s = i;
return false;
} catch (e) {
return true;
}
}
typedef FList(List l);
typedef FListInt(List<int> l);
FList f() {
return (List<String> l) => null; // Type of function is a subtype of FList.
}
main() {
bool got_type_error = false;
try {
Expect.throwsTypeError(() {
// Static result type of f(), i.e. FList, is a subtype of FListInt.
// However, run time type of returned function is not a subtype of FListInt.
// Run time type check should not be eliminated.
FListInt fli = f();
} on TypeError catch (error) {
got_type_error = true;
}
// Type error expected in checked mode only.
Expect.isTrue(got_type_error == isCheckedMode());
FListInt fli = ((List<String> l) => null) as dynamic;
});
}
+27 -1
View File
@@ -67,6 +67,11 @@ call_nonexistent_static_test/10: MissingCompileTimeError
call_through_getter_test/01: MissingCompileTimeError
call_through_getter_test/02: MissingCompileTimeError
call_type_literal_test/01: MissingCompileTimeError
callable_test/00: MissingCompileTimeError
callable_test/01: MissingCompileTimeError
check_member_static_test/01: MissingCompileTimeError
check_method_override_test/01: MissingCompileTimeError
check_method_override_test/02: MissingCompileTimeError
const_constructor2_test/13: MissingCompileTimeError
const_constructor2_test/14: MissingCompileTimeError
const_constructor2_test/15: MissingCompileTimeError
@@ -115,6 +120,13 @@ field_initialization_order_test/01: MissingCompileTimeError
field_method4_test: MissingCompileTimeError
for_in3_test: MissingCompileTimeError
for_in_side_effects_test/01: MissingCompileTimeError
function_malformed_result_type_test/00: MissingCompileTimeError
function_type_call_getter2_test/00: MissingCompileTimeError
function_type_call_getter2_test/01: MissingCompileTimeError
function_type_call_getter2_test/02: MissingCompileTimeError
function_type_call_getter2_test/03: MissingCompileTimeError
function_type_call_getter2_test/04: MissingCompileTimeError
function_type_call_getter2_test/05: MissingCompileTimeError
generic_methods_bounds_test/01: MissingCompileTimeError
generic_methods_closure_test: StaticWarning
generic_methods_dynamic_test/01: MissingCompileTimeError
@@ -513,17 +525,22 @@ call_nonexistent_static_test/10: MissingCompileTimeError
call_through_getter_test/01: MissingCompileTimeError
call_through_getter_test/02: MissingCompileTimeError
call_type_literal_test/01: MissingCompileTimeError
callable_test/00: MissingCompileTimeError
callable_test/01: MissingCompileTimeError
check_member_static_test/01: MissingCompileTimeError
check_method_override_test/01: MissingCompileTimeError
check_method_override_test/02: MissingCompileTimeError
constructor_call_as_function_test/01: MissingCompileTimeError
constructor_duplicate_final_test/01: MissingCompileTimeError
constructor_duplicate_final_test/02: MissingCompileTimeError
constructor_duplicate_final_test/03: MissingCompileTimeError
constructor_named_arguments_test/01: MissingCompileTimeError
covariant_subtyping_with_substitution_test: StaticWarning
cyclic_type_variable_test/01: MissingCompileTimeError
cyclic_type_variable_test/02: MissingCompileTimeError
cyclic_type_variable_test/03: MissingCompileTimeError
cyclic_type_variable_test/04: MissingCompileTimeError
cyclic_typedef_test/13: MissingCompileTimeError
constructor_named_arguments_test/01: MissingCompileTimeError
default_factory2_test/01: MissingCompileTimeError
default_factory_test/01: MissingCompileTimeError
deferred_constraints_type_annotation_test/as_operation: MissingCompileTimeError
@@ -550,6 +567,13 @@ field_initialization_order_test/01: MissingCompileTimeError
field_method4_test: MissingCompileTimeError
for_in3_test: MissingCompileTimeError
for_in_side_effects_test/01: MissingCompileTimeError
function_malformed_result_type_test/00: MissingCompileTimeError
function_type_call_getter2_test/00: MissingCompileTimeError
function_type_call_getter2_test/01: MissingCompileTimeError
function_type_call_getter2_test/02: MissingCompileTimeError
function_type_call_getter2_test/03: MissingCompileTimeError
function_type_call_getter2_test/04: MissingCompileTimeError
function_type_call_getter2_test/05: MissingCompileTimeError
generic_list_checked_test: CompileTimeError
generic_methods_bounds_test/01: MissingCompileTimeError
generic_methods_closure_test: StaticWarning
@@ -1014,6 +1038,8 @@ const_optional_args_negative_test: CompileTimeError
conflicting_type_variable_and_setter_test: CompileTimeError # Issue 25525
constructor3_negative_test: fail # Issue 11585
constructor_call_wrong_argument_count_negative_test: fail # Issue 11585
function_type_parameter2_negative_test: CompileTimeError
function_type_parameter_negative_test: CompileTimeError
[ $strong && $compiler == dart2analyzer ]
accessor_conflict_export2_test: CompileTimeError # Issue 25626
+37 -4
View File
@@ -77,8 +77,13 @@ call_nonexistent_static_test/10: MissingCompileTimeError
call_through_getter_test/01: MissingCompileTimeError
call_through_getter_test/02: MissingCompileTimeError
call_type_literal_test/01: MissingCompileTimeError
callable_test/00: MissingCompileTimeError
callable_test/01: MissingCompileTimeError
cast_test/04: MissingCompileTimeError
cast_test/05: MissingCompileTimeError
check_member_static_test/01: MissingCompileTimeError
check_method_override_test/01: MissingCompileTimeError
check_method_override_test/02: MissingCompileTimeError
checked_null_test/01: MissingCompileTimeError
checked_setter3_test/01: MissingCompileTimeError
checked_setter3_test/02: MissingCompileTimeError
@@ -185,6 +190,13 @@ flatten_test/09: MissingRuntimeError
flatten_test/12: MissingRuntimeError
for_in3_test: MissingCompileTimeError
for_in_side_effects_test/01: MissingCompileTimeError
function_malformed_result_type_test/00: MissingCompileTimeError
function_type_call_getter2_test/00: MissingCompileTimeError
function_type_call_getter2_test/01: MissingCompileTimeError
function_type_call_getter2_test/02: MissingCompileTimeError
function_type_call_getter2_test/03: MissingCompileTimeError
function_type_call_getter2_test/04: MissingCompileTimeError
function_type_call_getter2_test/05: MissingCompileTimeError
generic_constructor_mixin2_test/01: MissingCompileTimeError
generic_constructor_mixin3_test/01: MissingCompileTimeError
generic_constructor_mixin_test/01: MissingCompileTimeError
@@ -738,6 +750,7 @@ async_star_test/02: RuntimeError
bit_operations_test: RuntimeError, OK # Issue 1533
branch_canonicalization_test: RuntimeError # Issue 638.
covariant_override/runtime_check_test: RuntimeError
function_type_alias_test: RuntimeError
generic_closure_test: RuntimeError
generic_function_typedef_test/01: RuntimeError
generic_instanceof_test: RuntimeError
@@ -946,6 +959,7 @@ final_attempt_reinitialization_test.dart: Skip # Issue 29659
const_switch_test/02: RuntimeError # Issue 17960
const_switch_test/04: RuntimeError # Issue 17960
const_dynamic_type_literal_test/03: CompileTimeError # Issue 23009
full_stacktrace3_test: Pass, RuntimeError # Issue 12698
[ $compiler == dart2js && $runtime != none && !$dart2js_with_kernel ]
accessor_conflict_import2_test: RuntimeError # Issue 25626
@@ -979,6 +993,7 @@ regress_28341_test: Fail # Issue 28340
truncdiv_test: RuntimeError # Issue 15246
[ $compiler == dart2js && $runtime != none && !$checked && !$dart2js_with_kernel ]
callable_test/none: RuntimeError
checked_setter_test: RuntimeError
checked_setter2_test: RuntimeError
checked_setter3_test: RuntimeError
@@ -1012,6 +1027,8 @@ function_subtype_typearg3_test: RuntimeError
function_subtype_typearg5_test: RuntimeError
function_type2_test: RuntimeError
function_type_alias2_test: RuntimeError
function_type_call_getter2_test/none: RuntimeError
function_type_test: RuntimeError
generic_field_mixin6_test/none: RuntimeError
generic_list_checked_test: RuntimeError
getters_setters2_test/01: RuntimeError
@@ -1614,6 +1631,7 @@ truncdiv_test: RuntimeError
try_catch_test/01: MissingCompileTimeError
type_literal_test: Crash # 'file:*/pkg/compiler/lib/src/kernel/element_map_mixins.dart': Failed assertion: line 673 pos 14: 'functionType.typedef != null': is not true.
typevariable_substitution2_test/02: RuntimeError
check_member_static_test/02: MissingCompileTimeError
[ $compiler == dart2js && $dart2js_with_kernel && $minified ]
assertion_initializer_const_error2_test/none: CompileTimeError
@@ -2070,6 +2088,8 @@ truncdiv_test: RuntimeError
try_catch_test/01: MissingCompileTimeError
type_literal_test: Crash # NoSuchMethodError: The getter 'enclosingLibrary' was called on null.
typevariable_substitution2_test/02: RuntimeError
check_member_static_test/02: MissingCompileTimeError
full_stacktrace3_test: RuntimeError
[ $compiler == dart2js && $dart2js_with_kernel ]
checked_setter_test: RuntimeError # Issue 31128
@@ -2115,17 +2135,30 @@ field_type_check2_test/01: MissingRuntimeError
[ $compiler == dart2js && $checked && !$dart2js_with_kernel ]
async_return_types_test/nestedFuture: Fail # Issue 26429
async_return_types_test/wrongTypeParameter: Fail # Issue 26429
# callable_test/00: MissingCompileTimeError
# callable_test/01: MissingCompileTimeError
check_member_static_test/01: MissingCompileTimeError
check_method_override_test/01: MissingCompileTimeError
check_method_override_test/02: MissingCompileTimeError
covariant_subtyping_test: CompileTimeError
default_factory2_test/01: Fail # Issue 14121
function_malformed_result_type_test/00: MissingCompileTimeError
function_type_alias_test: RuntimeError
function_type_call_getter2_test/00: MissingCompileTimeError
function_type_call_getter2_test/01: MissingCompileTimeError
function_type_call_getter2_test/02: MissingCompileTimeError
function_type_call_getter2_test/03: MissingCompileTimeError
function_type_call_getter2_test/04: MissingCompileTimeError
malbounded_instantiation_test/01: Fail # Issue 12702
malbounded_redirecting_factory_test/02: Fail # Issue 12825
malbounded_redirecting_factory_test/03: Fail # Issue 12825
malbounded_type_cast2_test: Fail # Issue 14121
malbounded_type_cast_test: Fail # Issue 14121
malbounded_type_test_test/03: Fail # Issue 14121
malbounded_type_test_test/04: Fail # Issue 14121
malbounded_redirecting_factory_test/02: Fail # Issue 12825
malbounded_redirecting_factory_test/03: Fail # Issue 12825
malbounded_instantiation_test/01: Fail # Issue 12702
malbounded_type_cast2_test: Fail # Issue 14121
regress_26133_test: RuntimeError # Issue 26429
regress_29405_test: Fail # Issue 29422
function_type_call_getter2_test/05: MissingCompileTimeError
[ $compiler == dart2js && !$checked ]
type_argument_in_super_type_test: RuntimeError
@@ -274,6 +274,7 @@ flatten_test/09: MissingRuntimeError # Issue 29920
flatten_test/12: MissingRuntimeError # Issue 29920
for_variable_capture_test: RuntimeError # Issue 29920
function_subtype_inline2_test: RuntimeError
function_type_alias6_test/none: RuntimeError
generic_instanceof2_test: RuntimeError # Issue 29920
generic_is_check_test: RuntimeError # Issue 29920
generic_method_types_test/02: RuntimeError
@@ -333,3 +334,4 @@ truncdiv_test: RuntimeError # Issue 29920
first_class_types_test: RuntimeError, OK # Strong mode reifies inferred type argument.
stacktrace_test: RuntimeError # Issue 29920
const_evaluation_test/01: RuntimeError # Issue 29920
asyncstar_throw_in_catch_test: Skip # Times out. Issue 29920
@@ -322,6 +322,10 @@ vm/regress_27201_test: Fail # Flutter Issue 9110
wrong_number_type_arguments_test/00: CompileTimeError
wrong_number_type_arguments_test/01: CompileTimeError
wrong_number_type_arguments_test/02: CompileTimeError
check_method_override_test/01: CompileTimeError
check_method_override_test/02: CompileTimeError
function_malformed_result_type_test: CompileTimeError
asyncstar_yield_test: Skip # Flutter Issue 9110
[ $runtime == flutter && $compiler == none && $checked ]
assert_initializer_test/4*: MissingCompileTimeError # Issue 392. The VM doesn't enforce that potentially const expressions are actually const expressions when the constructor is called with `const`.
@@ -800,6 +800,9 @@ function_subtype_not2_test: RuntimeError
function_subtype_not3_test: RuntimeError
function_subtype_simple1_test: RuntimeError
function_subtype_top_level1_test: RuntimeError
function_type_alias3_test: RuntimeError
function_type_alias4_test: RuntimeError
function_type_alias6_test/none: RuntimeError
generic_instanceof2_test: RuntimeError
generic_is_check_test: RuntimeError
generic_method_types_test/02: RuntimeError
@@ -84,8 +84,13 @@ call_nonexistent_static_test/10: MissingCompileTimeError
call_through_getter_test/01: MissingCompileTimeError
call_through_getter_test/02: MissingCompileTimeError
call_type_literal_test/01: MissingCompileTimeError
callable_test/00: MissingCompileTimeError
callable_test/01: MissingCompileTimeError
cast_test/04: MissingCompileTimeError
cast_test/05: MissingCompileTimeError
check_member_static_test/01: MissingCompileTimeError
check_method_override_test/01: MissingCompileTimeError
check_method_override_test/02: MissingCompileTimeError
checked_null_test/01: MissingCompileTimeError
checked_setter3_test/01: MissingCompileTimeError
checked_setter3_test/02: MissingCompileTimeError
@@ -302,6 +307,7 @@ flatten_test/09: MissingRuntimeError
flatten_test/12: MissingRuntimeError
for_in3_test: MissingCompileTimeError
for_in_side_effects_test/01: MissingCompileTimeError
function_malformed_result_type_test/00: MissingCompileTimeError
function_subtype_bound_closure3_test: RuntimeError
function_subtype_bound_closure4_test: RuntimeError
function_subtype_bound_closure7_test: RuntimeError
@@ -326,6 +332,13 @@ function_subtype_typearg3_test: RuntimeError
function_subtype_typearg5_test: RuntimeError
function_type2_test: RuntimeError
function_type_alias2_test: RuntimeError
function_type_alias_test: RuntimeError
function_type_call_getter2_test/00: MissingCompileTimeError
function_type_call_getter2_test/01: MissingCompileTimeError
function_type_call_getter2_test/02: MissingCompileTimeError
function_type_call_getter2_test/03: MissingCompileTimeError
function_type_call_getter2_test/04: MissingCompileTimeError
function_type_call_getter2_test/05: MissingCompileTimeError
generalized_void_syntax_test: CompileTimeError # Issue #30176
generic_closure_test: RuntimeError
generic_constructor_mixin2_test/01: MissingCompileTimeError
@@ -953,9 +966,12 @@ generic_methods_generic_function_parameter_test: Pass # Issue 25869
assertion_initializer_const_error2_test/cc02: CompileTimeError
assertion_initializer_const_error_test/01: MissingCompileTimeError
assertion_initializer_const_function_error_test/01: MissingCompileTimeError
callable_test/none: RuntimeError
checked_setter2_test: RuntimeError
checked_setter3_test: RuntimeError
checked_setter_test: RuntimeError
function_type_call_getter2_test/none: RuntimeError
function_type_test: RuntimeError
generic_field_mixin6_test/none: RuntimeError
tearoff_dynamic_test: RuntimeError
type_argument_in_super_type_test: RuntimeError
@@ -993,6 +1009,7 @@ vm/no_such_args_error_message_vm_test: Skip
vm/no_such_method_error_message_callable_vm_test: Skip
vm/no_such_method_error_message_vm_test: Skip
vm/regress_28325_test:Skip
full_stacktrace3_test: Skip
[ $runtime == dart_precompiled && $mode == debug ]
regress_29025_test: Crash # Issue dartbug.com/29331
+16
View File
@@ -78,8 +78,13 @@ call_nonexistent_static_test/10: MissingCompileTimeError
call_through_getter_test/01: MissingCompileTimeError
call_through_getter_test/02: MissingCompileTimeError
call_type_literal_test/01: MissingCompileTimeError
callable_test/00: MissingCompileTimeError
callable_test/01: MissingCompileTimeError
cast_test/04: MissingCompileTimeError
cast_test/05: MissingCompileTimeError
check_member_static_test/01: MissingCompileTimeError
check_method_override_test/01: MissingCompileTimeError
check_method_override_test/02: MissingCompileTimeError
checked_null_test/01: MissingCompileTimeError
class_literal_test/01: MissingCompileTimeError
class_literal_test/02: MissingCompileTimeError
@@ -254,6 +259,7 @@ flatten_test/09: MissingRuntimeError
flatten_test/12: MissingRuntimeError
for_in3_test: MissingCompileTimeError
for_in_side_effects_test/01: MissingCompileTimeError
function_malformed_result_type_test/00: MissingCompileTimeError
function_subtype_bound_closure3_test: RuntimeError
function_subtype_bound_closure4_test: RuntimeError
function_subtype_bound_closure7_test: RuntimeError
@@ -262,6 +268,13 @@ function_subtype_call2_test: RuntimeError
function_subtype_cast1_test: RuntimeError
function_subtype_not1_test: RuntimeError
function_subtype_typearg5_test: RuntimeError
function_type_alias_test: RuntimeError
function_type_call_getter2_test/00: MissingCompileTimeError
function_type_call_getter2_test/01: MissingCompileTimeError
function_type_call_getter2_test/02: MissingCompileTimeError
function_type_call_getter2_test/03: MissingCompileTimeError
function_type_call_getter2_test/04: MissingCompileTimeError
function_type_call_getter2_test/05: MissingCompileTimeError
generic_closure_test: RuntimeError
generic_constructor_mixin2_test/01: MissingCompileTimeError
generic_constructor_mixin3_test/01: MissingCompileTimeError
@@ -895,6 +908,7 @@ recursive_mixin_test: Crash
[ $runtime == vm && !$checked ]
bool_check_test: RuntimeError
bool_condition_check_test: RuntimeError
callable_test/none: RuntimeError
checked_setter2_test: RuntimeError
checked_setter3_test: RuntimeError
checked_setter_test: RuntimeError
@@ -929,6 +943,8 @@ function_subtype_regression_ddc_588_test: RuntimeError
function_subtype_setter0_test: RuntimeError
function_type2_test: RuntimeError
function_type_alias2_test: RuntimeError
function_type_call_getter2_test/none: RuntimeError
function_type_test: RuntimeError
generic_field_mixin6_test/none: RuntimeError
generic_list_checked_test: RuntimeError
getters_setters2_test/01: RuntimeError
@@ -1,7 +0,0 @@
// 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 LICENSE file.
foo() => 42;
class C {}
-5
View File
@@ -1,5 +0,0 @@
// Copyright (c) 2015, 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.
library empty_library;
@@ -1,35 +0,0 @@
// 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.
// Dart test for a function with a malformed result type.
import "package:expect/expect.dart";
class C<T, U> {}
main() {
{
C<int> f() => null;
bool got_type_error = false;
try {
f();
} on TypeError catch (error) {
got_type_error = true;
}
// No type error expected, since returned null is not type checked.
Expect.isFalse(got_type_error);
}
{
C<int> f() => new C<int, String>();
bool got_type_error = false;
try {
f();
} on TypeError catch (error) {
got_type_error = true;
}
// Type error not expected in production nor checked mode since C<int>
// is handled like C<dynamic,dynamic>.
Expect.isFalse(got_type_error);
}
}
@@ -1,49 +0,0 @@
// 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 LICENSE file.
import "package:expect/expect.dart";
class A {
final call = null;
}
class B {
get call => null;
}
class C {
set call(x) {}
}
typedef int F(String str);
main() {
A a = new A();
B b = new B();
C c = new C();
final
Function // //# 00: static type warning, dynamic type error
a2 = a;
final
F // //# 01: static type warning, dynamic type error
a3 = a;
final
Function // //# 02: static type warning, dynamic type error
b2 = b;
final
F // //# 03: static type warning, dynamic type error
b3 = b;
final
Function // //# 04: static type warning, dynamic type error
c2 = c;
final
F // //# 05: static type warning, dynamic type error
c3 = c;
}
@@ -1,201 +0,0 @@
# Copyright (c) 2016, 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.
# Skip entire suite if not running in strong mode.
[ ! $strong ]
*: SkipByDesign
# Skip tests that are not yet strong-mode clean.
[ $strong ]
async_or_generator_return_type_stacktrace_test: Skip
async_return_types_test: Skip
bad_constructor_test: Skip
bad_initializer1_negative_test: Skip
bad_initializer2_negative_test: Skip
bad_named_constructor_negative_test: Skip
bad_named_parameters2_test: Skip
bad_named_parameters_test: Skip
bad_override_test: Skip
black_listed_test: Skip
body_less_constructor_wrong_arg_negative_test: Skip
callable_test: Skip
check_member_static_test: Skip
check_method_override_test: Skip
constructor_name_test: Skip
constructor_named_arguments_test: Skip
constructor_redirect1_negative_test: Skip
constructor_redirect2_negative_test: Skip
constructor_redirect2_test: Skip
constructor_redirect_test: Skip
constructor_return_test: Skip
constructor_setter_negative_test: Skip
constructor_test: Skip
constructor_with_mixin_test: Skip
dynamic2_test: Skip
dynamic_field_test: Skip
dynamic_prefix_core_test: Skip
emit_const_fields_test: Skip
empty_block_case_test: Skip
enum_is_keyword_test: Skip
enum_private_test: Skip
enum_syntax_test: Skip
error_stacktrace_test: Skip
example_constructor_test: Skip
double_to_string_as_exponential2_test: Skip
double_to_string_as_fixed2_test: Skip
double_to_string_as_precision2_test: Skip
duplicate_constructor_test: Skip
duplicate_export_negative_test: Skip
duplicate_implements_test: Skip
duplicate_interface_negative_test: Skip
field_override2_test: Skip
field_override3_test: Skip
field_override4_test: Skip
field_override_test: Skip
field_test: Skip
field_type_check_test: Skip
final_field_initialization_order_test: Skip
final_for_in_variable_test: Skip
final_is_not_const_test: Skip
final_param_test: Skip
final_super_field_set_test: Skip
final_syntax_test: Skip
final_variable_assignment_test: Skip
first_class_types_literals_test: Skip
export_ambiguous_main_negative_test: Skip
extend_type_parameter2_negative_test: Skip
extend_type_parameter_negative_test: Skip
external_test: Skip
f_bounded_quantification2_test: Skip
f_bounded_quantification4_test: Skip
f_bounded_quantification5_test: Skip
f_bounded_quantification_test: Skip
factory1_test: Skip
factory2_negative_test: Skip
factory2_test: Skip
factory3_negative_test: Skip
factory3_test: Skip
factory4_test: Skip
factory5_test: Skip
factory_implementation_test: Skip
factory_negative_test: Skip
factory_redirection2_test: Skip
factory_redirection3_cyclic_test: Skip
factory_redirection_test: Skip
factory_return_type_checked_test: Skip
function_literals2_test: Skip
function_literals_test: Skip
function_malformed_result_type_test: Skip
function_type_alias5_test: Skip
function_type_alias6_test: Skip
function_type_alias7_test: Skip
function_type_alias9_test: Skip
function_type_alias_test: Skip
function_type_call_getter2_test: Skip
function_type_parameter2_negative_test: Skip
function_type_parameter_negative_test: Skip
function_type_test: Skip
generic_closure_test: Skip
generic_field_mixin6_test: Skip
getter_declaration_negative_test: Skip
getter_no_setter2_test: Skip
getter_no_setter_test: Skip
getter_override2_test: Skip
getter_override_test: Skip
getter_parameters_test: Skip
getter_setter_in_lib_test: Skip
getters_setters2_test: Skip
getters_setters_test: Skip
is_function_test: Skip
is_malformed_type_test: Skip
is_not_class1_negative_test: Skip
is_not_class2_test: Skip
is_not_class4_negative_test: Skip
is_object_test: Skip
isnot_malformed_type_test: Skip
issue11724_test: Skip
issue11793_test: Skip
return_type_test: Skip
rewrite_implicit_this_test: Skip
setter4_test: Skip
setter_no_getter_call_test: Skip
setter_override2_test: Skip
setter_override_test: Skip
source_self_negative_test: Skip
throw_expr_test: Skip
top_level_getter_no_setter1_test: Skip
top_level_getter_no_setter2_test: Skip
toplevel_collision1_test: Skip
toplevel_collision2_test: Skip
transitive_private_library_access_test: Skip
try_catch_on_syntax_test: Skip
try_catch_syntax_test: Skip
try_catch_test: Skip
type_argument_in_super_type_test: Skip
type_check_const_function_typedef2_test: Skip
type_checks_in_factory_method_test: Skip
[ $compiler == dart2analyzer && $strong ]
# async_await_test/02: CompileTimeError # Issue 28823
# async_await_test/03: CompileTimeError # Issue 28823
# async_await_test/none: CompileTimeError # Issue 28823
# async_star_test/01: CompileTimeError # Issue 28823
# async_star_test/02: CompileTimeError # Issue 28823
# async_star_test/03: CompileTimeError # Issue 28823
# async_star_test/04: CompileTimeError # Issue 28823
# async_star_test/05: CompileTimeError # Issue 28823
# async_star_test/none: CompileTimeError # Issue 28823
# closure_side_effect_test: CompileTimeError # Issue 28823
bit_operations_test/01: MissingStaticWarning # Issue 28823
bit_operations_test/02: MissingStaticWarning # Issue 28823
bit_operations_test/03: MissingStaticWarning # Issue 28823
bit_operations_test/04: MissingStaticWarning # Issue 28823
field3a_negative_test: StaticWarning # Issue 28823
interface_inherit_field_test: StaticWarning # Issue 28823
internal_library_test/02: MissingStaticWarning # Issue 28823
no_main_test/01: MissingStaticWarning # Issue 28823
super_setter_test: StaticWarning # Issue 28823
[ $compiler == dartdevc ]
[ $compiler == dartdevc && $runtime != none ]
async_star_cancel_while_paused_test: RuntimeError # Issue 29920
asyncstar_throw_in_catch_test: Skip # Times out. Issue 29920
bit_operations_test/01: RuntimeError # No bigints on web.
bit_operations_test/02: RuntimeError # No bigints on web.
bit_operations_test/03: RuntimeError # No bigints on web.
bit_operations_test/04: RuntimeError # No bigints on web.
bit_operations_test/none: RuntimeError # No bigints on web.
canonical_const2_test: RuntimeError # Ints and doubles are unified.
canonical_const_test: RuntimeError # Ints and doubles are unified.
call_closurization_test: RuntimeError # Issue 29920
dynamic_test: RuntimeError # Strong mode is-check failure: M1 does not soundly subtype Iface<dynamic, num>
exception_test: RuntimeError # DDC doesn't implement NullThrownError?
double_int_to_string_test: RuntimeError # Issue 29920
execute_finally6_test: RuntimeError # Issue 29920
field_optimization3_test: RuntimeError # Issue 29920
first_class_types_test: RuntimeError, OK # Strong mode reifies inferred type argument.
expect_test: RuntimeError # Issue 29920
f_bounded_quantification3_test: RuntimeError # Issue 29920
instance_creation_in_function_annotation_test: RuntimeError # Issue 29920
instanceof2_test: RuntimeError # Issue 29920
instanceof4_test/01: RuntimeError # Issue 29920
instanceof4_test/none: RuntimeError # Issue 29920
mint_arithmetic_test: RuntimeError # Issue 29920
nan_identical_test: RuntimeError # Issue 29920
nested_switch_label_test: RuntimeError # Issue 29920
regress_16640_test: RuntimeError # Issue 29920
stack_overflow_stacktrace_test: RuntimeError # Issue 29920
stack_overflow_test: RuntimeError # Issue 29920
switch_label2_test: RuntimeError # Issue 29920
switch_label_test: RuntimeError # Issue 29920
# This test does not generate the expected compile time error, but it also does
# not behave correctly at runtime. We cannot record this as "Fail" without
# confusing the DDC travis bot (as "Fail" is normally used for compile time
# failures of _negative_tests). Remove "Skip" once we have the DDC travis bot
# running on test.dart, OR when we fix dartanalyzer/dartdevc CommandOutput
# classes to invert negative test status in the same way our other tools do.
[ $compiler == dartdevc && $system == windows ]
@@ -1,30 +0,0 @@
# Copyright (c) 2016, 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.
[ $compiler == dartk && $runtime == vm ]
async_await_test/02: DartkCompileTimeError
async_await_test/03: DartkCompileTimeError
async_await_test/none: DartkCompileTimeError
async_star_test/01: DartkCompileTimeError
async_star_test/02: DartkCompileTimeError
async_star_test/03: DartkCompileTimeError
async_star_test/04: DartkCompileTimeError
async_star_test/05: DartkCompileTimeError
async_star_test/none: DartkCompileTimeError
asyncstar_throw_in_catch_test: Timeout
asyncstar_yield_test: Timeout
asyncstar_yieldstar_test: Timeout
first_class_types_test: RuntimeError
export_double_same_main_test: DartkCrash
export_main_test: DartkCrash
f_bounded_equality_test: RuntimeError
function_type_alias3_test: RuntimeError
function_type_alias4_test: RuntimeError
inferrer_closure_test: RuntimeError
initializing_formal_final_test: RuntimeError
regress_r24720_test: RuntimeError
reify_typevar_static_test/00: MissingCompileTimeError
reify_typevar_test: RuntimeError
setter_no_getter_test/01: Crash # VM does not support BottomType
sync_generator3_test/test2: RuntimeError
@@ -1,299 +0,0 @@
# 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.
# This file specifies the status of tests for runs with spec_parser.dart.
# Note that there are overlaps between groups, because a single test may
# be skipped for more than one reason. As features are added, groups are
# expected to be eliminated entirely, and this would not work if all
# duplicates were removed.
[ $compiler == spec_parser ]
# Files causing near-stuck parsing (due to exponential complexity)
issue_1751477_test: Skip # Slow.
# Negative tests which contain syntax errors.
field3_negative_test: Skip # Test has syntax error.
getter_declaration_negative_test: Skip # Test has syntax error.
interface_injection1_negative_test: Skip # Test has syntax error.
interface_injection2_negative_test: Skip # Test has syntax error.
is_not_class1_negative_test: Skip # Test has syntax error.
is_not_class4_negative_test: Skip # Test has syntax error.
issue1578_negative_test: Skip # Test has syntax error.
label8_negative_test: Skip # Test has syntax error.
list_literal_negative_test: Skip # Test has syntax error.
map_literal_negative_test: Skip # Test has syntax error.
new_expression1_negative_test: Skip # Test has syntax error.
new_expression2_negative_test: Skip # Test has syntax error.
new_expression3_negative_test: Skip # Test has syntax error.
prefix18_negative_test: Skip # Test has syntax error.
string_escape4_negative_test: Skip # Test has syntax error.
string_interpolate1_negative_test: Skip # Test has syntax error.
string_interpolate2_negative_test: Skip # Test has syntax error.
string_interpolation1_negative_test: Skip # Test has syntax error.
string_interpolation2_negative_test: Skip # Test has syntax error.
string_interpolation3_negative_test: Skip # Test has syntax error.
string_interpolation4_negative_test: Skip # Test has syntax error.
string_interpolation5_negative_test: Skip # Test has syntax error.
string_interpolation6_negative_test: Skip # Test has syntax error.
switch1_negative_test: Skip # Test has syntax error.
test_negative_test: Skip # Test has syntax error.
unary_plus_negative_test: Skip # Test has syntax error.
unhandled_exception_negative_test: Skip # Test has syntax error.
# Multi-tests containing compile-time errors.
abstract_syntax_test: Skip # Not yet supported.
arg_param_trailing_comma_test: Skip # Not yet supported.
argument_definition_test: Skip # Not yet supported.
assert_initializer_test: Skip # Not yet supported.
assert_trailing_comma_test: Skip # Not yet supported.
assign_static_type_test: Skip # Not yet supported.
assignable_expression_test: Skip # Not yet supported.
async_await_syntax_test: Skip # Not yet supported.
async_return_types_test: Skip # Not yet supported.
async_test: Skip # Not yet supported.
await_backwards_compatibility_test: Skip # Not yet supported.
bad_constructor_test: Skip # Not yet supported.
bad_override_test: Skip # Not yet supported.
bad_raw_string_test: Skip # Not yet supported.
bad_typedef_test: Skip # Not yet supported.
black_listed_test: Skip # Not yet supported.
built_in_identifier_illegal_test: Skip # Not yet supported.
canonical_const2_test: Skip # Not yet supported.
canonical_const_test: Skip # Not yet supported.
cascade_test: Skip # Not yet supported.
check_member_static_test: Skip # Not yet supported.
class_cycle2_test: Skip # Not yet supported.
class_cycle_test: Skip # Not yet supported.
class_keyword_test: Skip # Not yet supported.
class_syntax_test: Skip # Not yet supported.
compile_time_constant10_test: Skip # Not yet supported.
compile_time_constant11_test: Skip # Not yet supported.
compile_time_constant13_test: Skip # Not yet supported.
compile_time_constant_arguments_test: Skip # Not yet supported.
compile_time_constant_c_test: Skip # Not yet supported.
compile_time_constant_checked2_test: Skip # Not yet supported.
compile_time_constant_checked3_test: Skip # Not yet supported.
compile_time_constant_checked4_test: Skip # Not yet supported.
compile_time_constant_checked5_test: Skip # Not yet supported.
compile_time_constant_checked_test: Skip # Not yet supported.
compile_time_constant_o_test: Skip # Not yet supported.
compile_time_constant_p_test: Skip # Not yet supported.
compile_time_constant_r_test: Skip # Not yet supported.
compile_time_constant_test: Skip # Not yet supported.
conditional_method_invocation_test: Skip # Not yet supported.
conditional_property_access_test: Skip # Not yet supported.
conditional_property_assignment_test: Skip # Not yet supported.
const_conditional_test: Skip # Not yet supported.
const_constructor2_test: Skip # Not yet supported.
const_constructor3_test: Skip # Not yet supported.
const_constructor_mixin2_test: Skip # Not yet supported.
const_constructor_mixin3_test: Skip # Not yet supported.
const_constructor_mixin_test: Skip # Not yet supported.
const_constructor_nonconst_field_test: Skip # Not yet supported.
const_constructor_super_test: Skip # Not yet supported.
const_constructor_syntax_test: Skip # Not yet supported.
const_constructor_test: Skip # Not yet supported.
const_error_multiply_initialized_test: Skip # Not yet supported.
const_evaluation_test: Skip # Not yet supported.
const_factory_redirection_test: Skip # Not yet supported.
const_factory_with_body_test: Skip # Not yet supported.
const_for_in_variable_test: Skip # Not yet supported.
const_getter_test: Skip # Not yet supported.
const_init2_test: Skip # Not yet supported.
const_init_test: Skip # Not yet supported.
const_instance_field_test: Skip # Not yet supported.
const_locals_test: Skip # Not yet supported.
const_map2_test: Skip # Not yet supported.
const_map3_test: Skip # Not yet supported.
const_native_factory_test: Skip # Not yet supported.
const_nested_test: Skip # Not yet supported.
const_qq_test: Skip # Not yet supported.
const_string_test: Skip # Not yet supported.
const_switch2_test: Skip # Not yet supported.
const_syntax_test: Skip # Not yet supported.
const_types_test: Skip # Not yet supported.
constant_locals_test: Skip # Not yet supported.
constant_type_literal_test: Skip # Not yet supported.
constants_test: Skip # Not yet supported.
constructor10_test: Skip # Not yet supported.
constructor_duplicate_final_test: Skip # Not yet supported.
constructor_duplicate_initializers_test: Skip # Not yet supported.
constructor_initializer_test: Skip # Not yet supported.
constructor_name_test: Skip # Not yet supported.
constructor_redirect2_test: Skip # Not yet supported.
constructor_redirect_test: Skip # Not yet supported.
constructor_return_test: Skip # Not yet supported.
covariant_test: Skip # Not yet supported.
ct_const2_test: Skip # Not yet supported.
ct_const4_test: Skip # Not yet supported.
ct_const_test: Skip # Not yet supported.
cyclic_class_member_test: Skip # Not yet supported.
cyclic_constructor_test: Skip # Not yet supported.
cyclic_typedef_test: Skip # Not yet supported.
deferred_constraints_constants_test: Skip # Not yet supported.
deferred_duplicate_prefix1_test: Skip # Not yet supported.
deferred_duplicate_prefix2_test: Skip # Not yet supported.
deferred_duplicate_prefix3_test: Skip # Not yet supported.
deferred_inheritance_constraints_test: Skip # Not yet supported.
deferred_load_constants_test: Skip # Not yet supported.
deferred_no_prefix_test: Skip # Not yet supported.
deferred_type_dependency_test: Skip # Not yet supported.
duplicate_constructor_test: Skip # Not yet supported.
duplicate_export_test: Skip # Not yet supported.
duplicate_implements_test: Skip # Not yet supported.
duplicate_interface_negative_test: Skip # Not yet supported.
dynamic2_test: Skip # Not yet supported.
enum_is_keyword_test: Skip # Not yet supported.
enum_syntax_test: Skip # Not yet supported.
export_private_test: Skip # Not yet supported.
external_test: Skip # Not yet supported.
factory2_negative_test: Skip # Not yet supported.
factory3_negative_test: Skip # Not yet supported.
factory_implementation_test: Skip # Not yet supported.
factory_negative_test: Skip # Not yet supported.
factory_redirection2_test: Skip # Not yet supported.
factory_redirection3_cyclic_test: Skip # Not yet supported.
factory_redirection_test: Skip # Not yet supported.
fauxverride_test: Skip # Not yet supported.
field_decl_missing_var_type_test: Skip # Not yet supported.
field_override3_test: Skip # Not yet supported.
field_override4_test: Skip # Not yet supported.
final_initializer_instance_reference_test: Skip # Not yet supported.
final_is_not_const_test: Skip # Not yet supported.
final_syntax_test: Skip # Not yet supported.
function_syntax_test: Skip # Not yet supported.
function_type_alias5_test: Skip # Not yet supported.
function_type_alias6_test: Skip # Not yet supported.
function_type_alias7_test: Skip # Not yet supported.
function_type_alias9_test: Skip # Not yet supported.
function_type_parameter2_negative_test: Skip # Not yet supported.
function_type_parameter_negative_test: Skip # Not yet supported.
function_type_test: Skip # Not yet supported.
generic_function_typedef2_test: Skip # Not yet supported.
generic_function_typedef_test: Skip # Not yet supported.
generic_metadata_test: Skip # Not yet supported.
get_set_syntax_test: Skip # Not yet supported.
getter_no_setter2_test: Skip # Not yet supported.
getter_no_setter_test: Skip # Not yet supported.
getter_override2_test: Skip # Not yet supported.
getter_override_test: Skip # Not yet supported.
getter_parameters_test: Skip # Not yet supported.
identical_const_test: Skip # Not yet supported.
if_null_assignment_behavior_test: Skip # Not yet supported.
illegal_declaration_test: Skip # Not yet supported.
illegal_initializer_test: Skip # Not yet supported.
illegal_invocation_test: Skip # Not yet supported.
import_private_test: Skip # Not yet supported.
interface_cycle_test: Skip # Not yet supported.
internal_library_test: Skip # Not yet supported.
keyword_type_expression_test: Skip # Not yet supported.
library_ambiguous_test: Skip # Not yet supported.
list_literal1_test: Skip # Not yet supported.
list_literal_syntax_test: Skip # Not yet supported.
literal_unary_plus_test: Skip # Not yet supported.
malformed2_test: Skip # Not yet supported.
malformed_inheritance_test: Skip # Not yet supported.
malformed_test: Skip # Not yet supported.
map_literal1_test: Skip # Not yet supported.
missing_const_constructor_test: Skip # Not yet supported.
missing_part_of_tag_test: Skip # Not yet supported.
mixin_black_listed_test: Skip # Not yet supported.
mixin_cyclic_test: Skip # Not yet supported.
mixin_forwarding_constructor4_test: Skip # Not yet supported.
mixin_illegal_constructor_test: Skip # Not yet supported.
mixin_illegal_cycles_test: Skip # Not yet supported.
mixin_illegal_object_test: Skip # Not yet supported.
mixin_illegal_super_use_test: Skip # Not yet supported.
mixin_illegal_superclass_test: Skip # Not yet supported.
mixin_illegal_syntax_test: Skip # Not yet supported.
mixin_invalid_inheritance1_test: Skip # Not yet supported.
mixin_invalid_inheritance2_test: Skip # Not yet supported.
multiline_newline_test: Skip # Not yet supported.
named_constructor_test: Skip # Not yet supported.
named_parameters_aggregated_test: Skip # Not yet supported.
named_parameters_default_eq_test: Skip # Not yet supported.
override_field_test: Skip # Not yet supported.
override_inheritance_mixed_test: Skip # Not yet supported.
override_method_with_field_test: Skip # Not yet supported.
parameter_default_test: Skip # Not yet supported.
parameter_initializer6_negative_test: Skip # Not yet supported.
parser_quirks_test: Skip # Not yet supported.
prefix_assignment_test: Skip # Not yet supported.
prefix_identifier_reference_test: Skip # Not yet supported.
prefix_unqualified_invocation_test: Skip # Not yet supported.
private_super_constructor_test: Skip # Not yet supported.
redirecting_factory_default_values_test: Skip # Not yet supported.
redirecting_factory_infinite_steps_test: Skip # Not yet supported.
ref_before_declaration_test: Skip # Not yet supported.
regress_20394_test: Skip # Not yet supported.
regress_23038_test: Skip # Not yet supported.
regress_23051_test: Skip # Not yet supported.
regress_26855_test: Skip # Not yet supported.
regress_27164_test: Skip # Not yet supported.
regress_27617_test: Skip # Not yet supported.
regress_28217_test: Skip # Not yet supported.
reify_typevar_static_test: Skip # Not yet supported.
scope_variable_test: Skip # Not yet supported.
setter_override2_test: Skip # Not yet supported.
setter_override_test: Skip # Not yet supported.
static_final_field2_test: Skip # Not yet supported.
static_parameter_test: Skip # Not yet supported.
static_top_level_test: Skip # Not yet supported.
string_interpolation1_test: Skip # Not yet supported.
string_interpolation2_test: Skip # Not yet supported.
string_interpolation3_test: Skip # Not yet supported.
string_interpolation4_test: Skip # Not yet supported.
string_interpolation5_test: Skip # Not yet supported.
string_interpolation6_test: Skip # Not yet supported.
string_interpolation9_test: Skip # Not yet supported.
super_call3_test: Skip # Not yet supported.
super_conditional_operator_test: Skip # Not yet supported.
switch8_test: Skip # Not yet supported.
switch_bad_case_test: Skip # Not yet supported.
switch_case_test: Skip # Not yet supported.
sync_generator2_test: Skip # Not yet supported.
syntax_test: Skip # Not yet supported.
this_conditional_operator_test: Skip # Not yet supported.
this_test: Skip # Not yet supported.
toplevel_collision1_test: Skip # Not yet supported.
toplevel_collision2_test: Skip # Not yet supported.
try_catch_on_syntax_test: Skip # Not yet supported.
try_catch_syntax_test: Skip # Not yet supported.
try_catch_test: Skip # Not yet supported.
type_check_const_function_typedef2_test: Skip # Not yet supported.
type_parameter_test: Skip # Not yet supported.
type_variable_conflict2_test: Skip # Not yet supported.
type_variable_conflict_test: Skip # Not yet supported.
type_variable_scope3_test: Skip # Not yet supported.
unbalanced_brace_test: Skip # Not yet supported.
unsigned_right_shift_test: Skip # Not yet supported.
unsupported_operators_test: Skip # Not yet supported.
variable_declaration_metadata_test: Skip # Not yet supported.
# Syntax errors caused by tests being multi-tests.
main_test: Skip # Not yet supported.
mixin_supertype_subclass2_test: Skip # Not yet supported.
mixin_supertype_subclass4_test: Skip # Not yet supported.
mixin_supertype_subclass_test: Skip # Not yet supported.
override_inheritance_generic_test: Skip # Not yet supported.
type_variable_bounds2_test: Skip # Not yet supported.
# Tests containing conditional imports.
conditional_import_string_test: Skip # Not yet supported.
conditional_import_test: Skip # Not yet supported.
config_import_corelib_test: Skip # Not yet supported.
config_import_test: Skip # Not yet supported.
# Tests using assert in initializer list.
assertion_initializer_test: Skip # Not yet supported.
assertion_initializer_const_error_test: Skip # Not yet supported.
assertion_initializer_const_error2_test: Skip # Not yet supported.
assertion_initializer_const_function_test: Skip # Not yet supported.
assertion_initializer_const_function_error_test: Skip # Not yet supported.
# Not working for miscellaneous other reasons.
deep_nesting1_negative_test: Skip # Stack overflow, not important here.
deep_nesting2_negative_test: Skip # Stack overflow, not important here.
issue_1751477_test: Skip # Slow: 9 levels, exponential blowup => 430 secs.
-18
View File
@@ -1,18 +0,0 @@
// Copyright (c) 2011, 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.
//
library library1.dart;
var foo;
bar() => "library1.dart bar()";
baz() => "library1.dart baz()";
var bay;
typedef int bax(int a, int b);
class baw {}
-40
View File
@@ -1,40 +0,0 @@
// Copyright (c) 2011, 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.
//
library library10.dart;
import "library11.dart" as lib11;
import "package:expect/expect.dart";
class Library10 {
Library10(this.fld);
func() {
return 2;
}
var fld;
static static_func() {
var result = 0;
var obj = new lib11.Library11(4);
result = obj.fld;
Expect.equals(4, result);
result += obj.func();
Expect.equals(7, result);
result += lib11.Library11.static_func();
Expect.equals(9, result);
result += lib11.Library11.static_fld;
Expect.equals(10, result);
Expect.equals(100, lib11.top_level11);
Expect.equals(200, lib11.top_level_func11());
return 3;
}
static var static_fld = 4;
}
const int top_level10 = 10;
top_level_func10() {
return 20;
}
-31
View File
@@ -1,31 +0,0 @@
// Copyright (c) 2011, 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.
//
library library11.dart;
class Library11 {
Library11(this.fld);
Library11.namedConstructor(this.fld);
func() {
return 3;
}
var fld;
static static_func() {
return 2;
}
static var static_fld = 1;
}
class Library111<T> {
Library111.namedConstructor(T this.fld);
T fld;
}
const int top_level11 = 100;
top_level_func11() {
return 200;
}
-48
View File
@@ -1,48 +0,0 @@
// 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.
//
library library12.dart;
import 'package:expect/expect.dart';
import "library11.dart";
class Library12 {
Library12(this.fld);
Library12.other(fld, multiplier) {
this.fld = fld * multiplier;
}
func() {
return 2;
}
var fld;
static static_func() {
var result = 0;
var obj = new Library11(4);
result = obj.fld;
Expect.equals(4, result);
result += obj.func();
Expect.equals(7, result);
result += Library11.static_func();
Expect.equals(9, result);
result += Library11.static_fld;
Expect.equals(10, result);
Expect.equals(100, top_level11);
Expect.equals(200, top_level_func11());
return 3;
}
static var static_fld = 4;
}
abstract class Library12Interface {
Library12 addObjects(Library12 value1, Library12 value2);
}
const int top_level12 = 10;
top_level_func12() {
return 20;
}
-7
View File
@@ -1,7 +0,0 @@
// Copyright (c) 2011, 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.
library Library1Lib;
part "library1_lib.dart";
-19
View File
@@ -1,19 +0,0 @@
// Copyright (c) 2011, 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.
//
library library2.dart;
var foo;
var foo1 = 0;
bar() => "library2.dart bar()";
var baz;
bay() => "library2.dart bay()";
typedef double bax(int a, int b);
var baw;
-15
View File
@@ -1,15 +0,0 @@
// Copyright (c) 2013, 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 that inlining in the compiler works with privacy.
library other_library;
// Make [foo] small enough that is can be inlined. Make it call a
// private method.
foo(a) => a._bar();
class A {
_bar() => 42;
}
-10
View File
@@ -1,10 +0,0 @@
// Copyright (c) 2013, 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.
library prefix24_lib1;
import "prefix24_lib2.dart" as X;
// lib1_foo() returns value of bar() in library prefix24_lib2.
lib1_foo() => X.bar();
-10
View File
@@ -1,10 +0,0 @@
// Copyright (c) 2011, 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 for testing access to private fields.
library PrivateOther;
import "private_test.dart";
part "private3.dart";
-1
View File
@@ -1 +0,0 @@
Hello Dart, wassup!
+1 -2
View File
@@ -17,8 +17,7 @@ TARGETS = [
'language_2',
'corelib_2',
'lib_2',
# TODO(rnystrom): Remove these when all tests have been migrated out.
'language_strong',
# TODO(rnystrom): Remove this when all tests have been migrated out.
'lib_strong'
]
@@ -42,7 +42,6 @@ final TEST_SUITE_DIRECTORIES = [
new Path('tests/isolate'),
new Path('tests/kernel'),
new Path('tests/language'),
new Path('tests/language_strong'),
new Path('tests/language_2'),
new Path('tests/lib'),
new Path('tests/lib_strong'),