Update status files and expectations of rasta tests.
R=karlklose@google.com
Review-Url: https://codereview.chromium.org/2653223002 .
diff --git a/pkg/front_end/lib/src/fasta/testing/kernel_chain.dart b/pkg/front_end/lib/src/fasta/testing/kernel_chain.dart
index ded157d..f5ecfdd 100644
--- a/pkg/front_end/lib/src/fasta/testing/kernel_chain.dart
+++ b/pkg/front_end/lib/src/fasta/testing/kernel_chain.dart
@@ -247,6 +247,12 @@
StringBuffer buffer = new StringBuffer();
new Printer(buffer).writeLibraryFile(library);
+ bool updateExpectations = this.updateExpectations;
+ if (uri.path.contains("/test/rasta/")) {
+ // TODO(ahe): Remove this. Short term, we don't want to automatically
+ // update rasta expectations, as we have too many failures.
+ updateExpectations = false;
+ }
File expectedFile = new File("${uri.toFilePath()}$suffix");
if (await expectedFile.exists()) {
String expected = await expectedFile.readAsString();
diff --git a/pkg/front_end/test/fasta/compile.status b/pkg/front_end/test/fasta/compile.status
index 64e7bbc..97d0da4 100644
--- a/pkg/front_end/test/fasta/compile.status
+++ b/pkg/front_end/test/fasta/compile.status
@@ -8,3 +8,69 @@
await: Fail
invocations: Fail
+
+rasta/abstract_constructor: Fail
+rasta/bad_constructor_redirection: Fail
+rasta/bad_continue: Fail
+rasta/bad_default_constructor: VerificationError
+rasta/bad_explicit_super_constructor: Fail
+rasta/bad_implicit_super_constructor: Fail
+rasta/bad_interpolation: Crash
+rasta/bad_redirection: Crash
+rasta/bad_setter_initializer: Fail
+rasta/bad_unicode: Fail
+rasta/breaking_bad: Fail
+rasta/class_hierarchy: Crash
+rasta/class_member: Fail
+rasta/constant_get_and_invoke: Fail
+rasta/deferred_lib: Fail
+rasta/deferred_load: Fail
+rasta/duplicated_mixin: Fail
+rasta/enum: Fail
+rasta/export: Fail
+rasta/foo: Fail
+rasta/for_loop: Fail
+rasta/generic_factory: Fail
+rasta/issue_000001: Fail
+rasta/issue_000031: Fail
+rasta/issue_000032: Crash
+rasta/issue_000034: Fail
+rasta/issue_000035: Crash
+rasta/issue_000036: Crash
+rasta/issue_000039: Crash
+rasta/issue_000041: Fail
+rasta/issue_000042: Fail
+rasta/issue_000043: Fail
+rasta/issue_000044: Crash
+rasta/issue_000045: Crash
+rasta/issue_000046: Crash
+rasta/issue_000047: Crash
+rasta/issue_000048: Crash
+rasta/issue_000053: Fail
+rasta/issue_000067: Fail
+rasta/issue_000068: Fail
+rasta/issue_000069: Fail
+rasta/issue_000070: Fail
+rasta/malformed_const_constructor: Crash
+rasta/malformed_function: Fail
+rasta/malformed_function_type: Fail
+rasta/mandatory_parameter_initializer: Fail
+rasta/mixin_library: Fail
+rasta/native_is_illegal: Crash
+rasta/parser_error: Crash
+rasta/static: VerificationError
+rasta/super: Fail
+rasta/super_initializer: Fail
+rasta/super_mixin: Crash
+rasta/super_operator: Fail
+rasta/switch_execution_case_t02: Fail
+rasta/switch_fall_through: Fail
+rasta/try_label: Fail
+rasta/type_literals: Fail
+rasta/type_with_parse_error: Crash
+rasta/typedef: Fail
+rasta/unresolved: Fail
+rasta/unresolved_constructor: Fail
+rasta/unresolved_for_in: Fail
+rasta/unresolved_recovery: Crash
+rasta/unsupported_platform_library: Fail
diff --git a/pkg/front_end/test/fasta/kompile.status b/pkg/front_end/test/fasta/kompile.status
index 7395014..c2465ec 100644
--- a/pkg/front_end/test/fasta/kompile.status
+++ b/pkg/front_end/test/fasta/kompile.status
@@ -21,3 +21,86 @@
map: Crash
mixin: Crash
statements: Crash
+
+rasta/abstract_constructor: Crash
+rasta/bad_constructor_redirection: Crash
+rasta/bad_continue: Crash
+rasta/bad_default_constructor: Crash
+rasta/bad_explicit_super_constructor: Crash
+rasta/bad_implicit_super_constructor: Crash
+rasta/bad_interpolation: Crash
+rasta/bad_redirection: Crash
+rasta/bad_setter_initializer: Crash
+rasta/bad_unicode: Fail
+rasta/breaking_bad: Crash
+rasta/cascades: Crash
+rasta/class_hierarchy: Crash
+rasta/class_member: Crash
+rasta/constant_get_and_invoke: Crash
+rasta/deferred_lib: Fail
+rasta/deferred_load: Crash
+rasta/duplicated_mixin: Crash
+rasta/enum: Fail
+rasta/export: Fail
+rasta/external_factory_redirection: Crash
+rasta/foo: Fail
+rasta/for_loop: Crash
+rasta/generic_factory: Crash
+rasta/issue_000001: Crash
+rasta/issue_000002: Crash
+rasta/issue_000004: Crash
+rasta/issue_000006: Crash
+rasta/issue_000007: Crash
+rasta/issue_000008: Crash
+rasta/issue_000011: Crash
+rasta/issue_000012: Crash
+rasta/issue_000025: Crash
+rasta/issue_000026: Crash
+rasta/issue_000031: Crash
+rasta/issue_000032: Crash
+rasta/issue_000034: Crash
+rasta/issue_000035: Crash
+rasta/issue_000036: Crash
+rasta/issue_000039: Crash
+rasta/issue_000041: Crash
+rasta/issue_000042: Crash
+rasta/issue_000043: Fail
+rasta/issue_000044: Crash
+rasta/issue_000045: Crash
+rasta/issue_000046: Crash
+rasta/issue_000047: Crash
+rasta/issue_000048: Crash
+rasta/issue_000052: Crash
+rasta/issue_000053: Crash
+rasta/issue_000067: Crash
+rasta/issue_000068: Crash
+rasta/issue_000069: Crash
+rasta/issue_000070: Crash
+rasta/issue_000080: Crash
+rasta/issue_000081: Crash
+rasta/malformed_const_constructor: Crash
+rasta/malformed_function: Fail
+rasta/malformed_function_type: Crash
+rasta/mandatory_parameter_initializer: Fail
+rasta/mixin_library: Crash
+rasta/native_is_illegal: Crash
+rasta/parser_error: Crash
+rasta/previsit_deferred: Crash
+rasta/static: Crash
+rasta/super: Fail
+rasta/super_initializer: Crash
+rasta/super_mixin: Crash
+rasta/super_operator: Crash
+rasta/supports_reflection: Crash
+rasta/switch_execution_case_t02: Crash
+rasta/switch_fall_through: Crash
+rasta/this_invoke: Crash
+rasta/try_label: Crash
+rasta/type_literals: Crash
+rasta/type_with_parse_error: Crash
+rasta/typedef: Crash
+rasta/unresolved: Crash
+rasta/unresolved_constructor: Crash
+rasta/unresolved_for_in: Crash
+rasta/unresolved_recovery: Crash
+rasta/unsupported_platform_library: Fail
diff --git a/pkg/front_end/test/fasta/outline.status b/pkg/front_end/test/fasta/outline.status
index 53fe05a..038a29a 100644
--- a/pkg/front_end/test/fasta/outline.status
+++ b/pkg/front_end/test/fasta/outline.status
@@ -1,3 +1,26 @@
# 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.md file.
+
+rasta/bad_redirection: Fail
+rasta/class_hierarchy: Crash
+rasta/generic_factory: Fail
+rasta/issue_000002: Fail
+rasta/issue_000032: Crash
+rasta/issue_000035: Crash
+rasta/issue_000044: Crash
+rasta/issue_000045: Crash
+rasta/issue_000046: Crash
+rasta/issue_000047: Crash
+rasta/issue_000048: Crash
+rasta/issue_000067: Fail
+rasta/issue_000068: Fail
+rasta/issue_000070: Fail
+rasta/mandatory_parameter_initializer: Fail
+rasta/mixin_library: Fail
+rasta/native_is_illegal: Crash
+rasta/super: Fail
+rasta/super_mixin: Crash
+rasta/super_operator: Fail
+rasta/type_literals: Fail
+rasta/type_with_parse_error: Crash
diff --git a/pkg/front_end/test/fasta/rasta/enum.dart.dartk.expect b/pkg/front_end/test/fasta/rasta/enum.dart.dartk.expect
index 6f517ea..06c8cda 100644
--- a/pkg/front_end/test/fasta/rasta/enum.dart.dartk.expect
+++ b/pkg/front_end/test/fasta/rasta/enum.dart.dartk.expect
@@ -3,13 +3,13 @@
import "dart:core" as core;
class Foo extends core::Object {
- final field dynamic index;
- static const field dynamic ec1 = const self::Foo::•(0);
- static const field dynamic ec2 = const self::Foo::•(1);
- static const field dynamic values = const <dynamic>[self::Foo::ec1, self::Foo::ec2];
+ final field core::int index;
+ static const field core::List<self::Foo> values = const <self::Foo>[self::Foo::ec1, self::Foo::ec2];
+ static const field self::Foo ec1 = const self::Foo::•(0);
+ static const field self::Foo ec2 = const self::Foo::•(1);
const constructor •(core::int index) → void
: self::Foo::index = index, super core::Object::•()
;
method toString() → core::String
- return const <dynamic, dynamic>{0: "Foo.ec1", 1: "Foo.ec2"}.[](this.index);
+ return const <core::int, core::String>{0: "Foo.ec1", 1: "Foo.ec2"}.[](this.{=self::Foo::index});
}
diff --git a/pkg/front_end/test/fasta/rasta/issue_000043.dart.dartk.expect b/pkg/front_end/test/fasta/rasta/issue_000043.dart.dartk.expect
index 4b9a25a..44eaf81 100644
--- a/pkg/front_end/test/fasta/rasta/issue_000043.dart.dartk.expect
+++ b/pkg/front_end/test/fasta/rasta/issue_000043.dart.dartk.expect
@@ -3,8 +3,9 @@
import "dart:core" as core;
class C extends core::Object {
- constructor •() → self::C
- : super core::Object::•();
+ constructor •() → void
+ : super core::Object::•()
+ ;
get x() → dynamic
return "${self::C}".hashCode;
}
diff --git a/pkg/front_end/test/fasta/rasta/malformed_function.dart.dartk.expect b/pkg/front_end/test/fasta/rasta/malformed_function.dart.dartk.expect
index 1cafd63..5e950cf 100644
--- a/pkg/front_end/test/fasta/rasta/malformed_function.dart.dartk.expect
+++ b/pkg/front_end/test/fasta/rasta/malformed_function.dart.dartk.expect
@@ -1,5 +1,6 @@
library;
import self as self;
-static method main() → dynamic
- invalid-statement;
+static method main() → dynamic {
+ let final dynamic #t1 = null in invalid-expression;
+}