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

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

Issue 8948001: Updates dartc to recognize 'default' keyword on interface and updated factory method syntax (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Feedback from mmendez Created 9 years 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/ErrorMessageLocationTest.java
diff --git a/compiler/javatests/com/google/dart/compiler/parser/ErrorMessageLocationTest.java b/compiler/javatests/com/google/dart/compiler/parser/ErrorMessageLocationTest.java
index 9c122d67e90ef97823755092ae57c5dc217a6fd3..78e402b37ef6cd9c5a77e5ed4fa56c12623a1276 100644
--- a/compiler/javatests/com/google/dart/compiler/parser/ErrorMessageLocationTest.java
+++ b/compiler/javatests/com/google/dart/compiler/parser/ErrorMessageLocationTest.java
@@ -20,7 +20,7 @@ public class ErrorMessageLocationTest extends TestCase {
public void testUnexpectedTokenErrorMessage() {
String sourceCode =
"// Empty comment\n" +
- "interface foo default Bar {\n" +
+ "interface foo while Bar {\n" +
"}";
DartParserRunner runner = DartParserRunner.parse(getName(), sourceCode);
@@ -29,7 +29,7 @@ public class ErrorMessageLocationTest extends TestCase {
// Due to error recovery more than a single error is generated
DartCompilationError actualError = actualErrors.get(0);
- String errorTokenString = "default";
+ String errorTokenString = "while";
assertEquals(15, actualError.getColumnNumber());
assertEquals(errorTokenString.length(), actualError.getLength());
assertEquals(2, actualError.getLineNumber());

Powered by Google App Engine
This is Rietveld 408576698