Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(202)

Unified Diff: tests/compiler/dart2js/resolver_test.dart

Issue 871863006: Enable enums by default. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove the field in Compiler. Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/compiler/dart2js/mock_compiler.dart ('k') | tests/compiler/dart2js/type_checker_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/resolver_test.dart
diff --git a/tests/compiler/dart2js/resolver_test.dart b/tests/compiler/dart2js/resolver_test.dart
index 207ffa4488d646e80554efb8c8af1c8ebe4248ae..785d6d5e5b1bd915e7906dd4e4f339c51a2850c6 100644
--- a/tests/compiler/dart2js/resolver_test.dart
+++ b/tests/compiler/dart2js/resolver_test.dart
@@ -817,7 +817,7 @@ Future testEnumDeclaration() {
'Unexpected warnings: ${compiler.warnings}');
Expect.equals(1, compiler.errors.length,
'Unexpected errors: ${compiler.errors}');
- }, enableEnums: true),
+ }),
MockCompiler.create((MockCompiler compiler) {
compiler.parseScript("""enum Enum { A }
@@ -828,7 +828,7 @@ Future testEnumDeclaration() {
'Unexpected warnings: ${compiler.warnings}');
Expect.equals(0, compiler.errors.length,
'Unexpected errors: ${compiler.errors}');
- }, enableEnums: true),
+ }),
MockCompiler.create((MockCompiler compiler) {
compiler.parseScript("""enum Enum { A }
@@ -841,7 +841,7 @@ Future testEnumDeclaration() {
compiler.warnings[0].message.kind);
Expect.equals(0, compiler.errors.length,
'Unexpected errors: ${compiler.errors}');
- }, enableEnums: true),
+ }),
MockCompiler.create((MockCompiler compiler) {
compiler.parseScript("""enum Enum { A }
@@ -852,7 +852,7 @@ Future testEnumDeclaration() {
'Unexpected warnings: ${compiler.warnings}');
Expect.equals(0, compiler.errors.length,
'Unexpected errors: ${compiler.errors}');
- }, enableEnums: true),
+ }),
MockCompiler.create((MockCompiler compiler) {
compiler.parseScript("""enum Enum { A }
@@ -865,7 +865,7 @@ Future testEnumDeclaration() {
'Unexpected errors: ${compiler.errors}');
Expect.equals(MessageKind.CANNOT_INSTANTIATE_ENUM,
compiler.errors[0].message.kind);
- }, enableEnums: true),
+ }),
MockCompiler.create((MockCompiler compiler) {
compiler.parseScript("""enum Enum { A }
@@ -878,7 +878,7 @@ Future testEnumDeclaration() {
'Unexpected errors: ${compiler.errors}');
Expect.equals(MessageKind.CANNOT_INSTANTIATE_ENUM,
compiler.errors[0].message.kind);
- }, enableEnums: true),
+ }),
]);
}
« no previous file with comments | « tests/compiler/dart2js/mock_compiler.dart ('k') | tests/compiler/dart2js/type_checker_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698