Update metadata syntax test to check for non-existing constants and type literals (see issue 14647).
R=bak@google.com, hausner@google.com, scheglov@google.com BUG= Review URL: https://codereview.chromium.org//54613002 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@29667 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
@@ -25,6 +25,8 @@ mixin_forwarding_constructor2_test: Fail # Issue 13641
|
||||
|
||||
[ $compiler == none && $runtime == vm ]
|
||||
class_keyword_test/02: MissingCompileTimeError # Issue 13627
|
||||
metadata_syntax_test/04: MissingCompileTimeError # Issue 14652
|
||||
metadata_syntax_test/05: MissingCompileTimeError # Issue 14652
|
||||
|
||||
[ $compiler == none && $checked ]
|
||||
type_variable_bounds4_test/01: Fail # Issue 14006
|
||||
|
||||
@@ -23,6 +23,7 @@ method_override8_test/03: Fail # Issue 11496
|
||||
|
||||
built_in_identifier_test/none: Fail # Issue 13023
|
||||
|
||||
metadata_syntax_test/04: MissingCompileTimeError # Issue 14653
|
||||
|
||||
# Please add new failing tests before this line.
|
||||
# Section below is for invalid tests.
|
||||
|
||||
@@ -23,6 +23,7 @@ method_override8_test/03: Fail # Issue 11496
|
||||
|
||||
built_in_identifier_test/none: Fail # Issue 13023
|
||||
|
||||
metadata_syntax_test/04: MissingCompileTimeError # Issue 14653
|
||||
|
||||
# Please add new failing tests before this line.
|
||||
# Section below is for invalid tests.
|
||||
|
||||
@@ -117,6 +117,7 @@ not_enough_positional_arguments_test/01: CompileTimeError # Issue 12838
|
||||
not_enough_positional_arguments_test/02: CompileTimeError # Issue 12838
|
||||
not_enough_positional_arguments_test/05: CompileTimeError # Issue 12838
|
||||
metadata_test: CompileTimeError # Issue 5841
|
||||
metadata_syntax_test/05: MissingCompileTimeError # Issue 14548
|
||||
infinity_test: RuntimeError # Issue 4984
|
||||
positive_bit_operations_test: RuntimeError # Issue 12795
|
||||
mixin_mixin2_test: RuntimeError # Issue 13109.
|
||||
|
||||
@@ -16,10 +16,27 @@ class Bar {
|
||||
|
||||
@Bar()
|
||||
@List<String> /// 03: compile-time error
|
||||
final x = '';
|
||||
final x = 'x';
|
||||
|
||||
@unknown /// 04: compile-time error
|
||||
final y = 'y';
|
||||
|
||||
@Bar /// 05: compile-time error
|
||||
final z = 'z';
|
||||
|
||||
@1234 /// 06: compile-time error
|
||||
final w = 'w';
|
||||
}
|
||||
|
||||
main() {
|
||||
Expect.equals('', new Bar().x);
|
||||
Expect.equals('', const Bar().x);
|
||||
Expect.equals('x', new Bar().x);
|
||||
Expect.equals('x', const Bar().x);
|
||||
Expect.equals('y', new Bar().y);
|
||||
Expect.equals('y', const Bar().y);
|
||||
Expect.equals('z', new Bar().z);
|
||||
Expect.equals('z', const Bar().z);
|
||||
Expect.equals('z', new Bar().z);
|
||||
Expect.equals('z', const Bar().z);
|
||||
Expect.equals('w', new Bar().w);
|
||||
Expect.equals('w', const Bar().w);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user