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

Unified Diff: compiler/javatests/com/google/dart/compiler/parser/NegativeParserTest.java

Issue 9959054: More error recovery back to the top level for some cases (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Previous patch had problems when JUnit tests added Created 8 years, 9 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
Index: compiler/javatests/com/google/dart/compiler/parser/NegativeParserTest.java
diff --git a/compiler/javatests/com/google/dart/compiler/parser/NegativeParserTest.java b/compiler/javatests/com/google/dart/compiler/parser/NegativeParserTest.java
index 95e387ff4041aeb34b382e02b53566ded718fc64..3d2885319c7475a191f3d122cbbf88cfab9c9953 100644
--- a/compiler/javatests/com/google/dart/compiler/parser/NegativeParserTest.java
+++ b/compiler/javatests/com/google/dart/compiler/parser/NegativeParserTest.java
@@ -303,19 +303,7 @@ public class NegativeParserTest extends CompilerTestCase {
"foo.baz() {}",
errEx(ParserErrorCode.FUNCTION_NAME_EXPECTED_IDENTIFIER, 1, 1, 7));
}
-
- public void testReservedWordClass() {
- parseExpectErrors(
- Joiner.on("\n").join(
- "class foo {}",
- "main() {",
- " int class = 10;",
- " print(\"class = $class\");",
- "}"),
- errEx(ParserErrorCode.EXPECTED_TOKEN, 3, 7, 5),
- errEx(ParserErrorCode.UNEXPECTED_TOKEN, 4, 19, 5));
- }
-
+
zundel 2012/04/02 20:02:59 (Moved to ParserRecoveryTest)
public void testInvalidStringInterpolation() {
parseExpectErrors(
Joiner.on("\n").join(

Powered by Google App Engine
This is Rietveld 408576698