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

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

Issue 9950045: Implements error recovery for cases where 'var' or 'final' prefix a method def'n (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Adds additional unit test 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/TruncatedSourceParserTest.java
diff --git a/compiler/javatests/com/google/dart/compiler/parser/TruncatedSourceParserTest.java b/compiler/javatests/com/google/dart/compiler/parser/TruncatedSourceParserTest.java
index a70f8b81ba9e2e3434ef780680a4fb4431e96b36..bfca3d2aa16b63215c57eb42f32235a24679fdb0 100644
--- a/compiler/javatests/com/google/dart/compiler/parser/TruncatedSourceParserTest.java
+++ b/compiler/javatests/com/google/dart/compiler/parser/TruncatedSourceParserTest.java
@@ -118,7 +118,10 @@ public class TruncatedSourceParserTest extends AbstractParserTest {
}
@Override
- protected DartUnit parseUnit(String srcName, String srcCode) {
+ protected DartUnit parseUnit(String srcName, String srcCode, Object... errors) {
+ if (errors.length > 0) {
+ throw new RuntimeException("Expected errors not implemented");
+ }
// System.out.print(srcName);
ParserThread thread = new ParserThread(srcName);
thread.start();

Powered by Google App Engine
This is Rietveld 408576698