Chromium Code Reviews| Index: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/SimpleParserTest.java |
| diff --git a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/SimpleParserTest.java b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/SimpleParserTest.java |
| index acb8b39fd3e91dbeb3adc4c0d001bcfa1687443d..50271e206eab7ea45ea0423ae72ef70ead9b0c23 100644 |
| --- a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/SimpleParserTest.java |
| +++ b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/SimpleParserTest.java |
| @@ -181,20 +181,9 @@ public class SimpleParserTest extends ParserTestCase { |
| parseCompilationUnit("class C { C() : a = (() {}); }"); |
| } |
| - public void test_function_literal_disallowed_in_StringInterpolation_in_ConstructorFieldInitializer() |
| + public void test_function_literal_allowed_in_StringInterpolation_in_ConstructorFieldInitializer() |
| throws Exception { |
| - // TODO: fix this if the VM and dart2js decide to start accepting this syntax |
| - // (dartbug.com/18102). |
| - |
| - // Note: recovery isn't very good inside string interpolation so we expect a lot of errors |
| - // (dartbug.com/946) |
| - parseCompilationUnit( |
| - "class C { C() : a = \"${(){}}\"; }", |
| - ParserErrorCode.MISSING_IDENTIFIER, |
| - ParserErrorCode.EXPECTED_TOKEN, |
| - ParserErrorCode.MISSING_IDENTIFIER, |
| - ParserErrorCode.MISSING_IDENTIFIER, |
| - ParserErrorCode.MISSING_IDENTIFIER); |
| + parseCompilationUnit("class C { C() : a = \"${(){}}\"; }"); |
|
Brian Wilkerson
2014/04/10 22:33:54
Not that it matters, but...
Because Dart allows u
Paul Berry
2014/04/10 22:43:22
Good point. I'll keep that in mind in the future.
|
| } |
| public void test_isFunctionDeclaration_nameButNoReturn_block() throws Exception { |