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

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

Issue 8395013: DartC User Warning Framework (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Use new ErrorCode enums in single onError() method. Created 9 years, 2 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/SyntaxTest.java
diff --git a/compiler/javatests/com/google/dart/compiler/parser/SyntaxTest.java b/compiler/javatests/com/google/dart/compiler/parser/SyntaxTest.java
index 017ef6664257308eba9792f6aec5a9999566b742..8fdd6700d3f120413f7cde82b6319f9615814350 100644
--- a/compiler/javatests/com/google/dart/compiler/parser/SyntaxTest.java
+++ b/compiler/javatests/com/google/dart/compiler/parser/SyntaxTest.java
@@ -5,7 +5,6 @@
package com.google.dart.compiler.parser;
import com.google.dart.compiler.DartCompilationError;
-import com.google.dart.compiler.DartCompilerErrorCode;
import com.google.dart.compiler.DartCompilerListener;
import com.google.dart.compiler.DartSourceTest;
import com.google.dart.compiler.ast.DartArrayLiteral;
@@ -84,13 +83,7 @@ public class SyntaxTest extends AbstractParserTest {
DartScannerParserContext context =
new DartScannerParserContext(dartSrc, sourceCode, new DartCompilerListener() {
@Override
- public void typeError(DartCompilationError event) {
- }
- @Override
- public void compilationWarning(DartCompilationError event) {
- }
- @Override
- public void compilationError(DartCompilationError event) {
+ public void onError(DartCompilationError event) {
}
@Override
public void unitCompiled(DartUnit unit) {
@@ -148,7 +141,7 @@ public class SyntaxTest extends AbstractParserTest {
assertNotNull(tryCatch.getFinallyBlock());
parseUnitErrors("TryCatchNegative.dart",
- DartCompilerErrorCode.CATCH_OR_FINALLY_EXPECTED, 8, 3);
+ ParserErrorCode.CATCH_OR_FINALLY_EXPECTED, 8, 3);
}
public void testArrayLiteral() {

Powered by Google App Engine
This is Rietveld 408576698