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

Unified Diff: compiler/javatests/com/google/dart/compiler/DartCompilerListenerTest.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/DartCompilerListenerTest.java
diff --git a/compiler/javatests/com/google/dart/compiler/DartCompilerListenerTest.java b/compiler/javatests/com/google/dart/compiler/DartCompilerListenerTest.java
index 8f75e1dcf3e9ec5b5bf459b4c7416b6a3559cad2..cc018e318b6304bfc71c18a2c306e4b5bea1bd71 100644
--- a/compiler/javatests/com/google/dart/compiler/DartCompilerListenerTest.java
+++ b/compiler/javatests/com/google/dart/compiler/DartCompilerListenerTest.java
@@ -50,7 +50,7 @@ public class DartCompilerListenerTest extends DartCompilerListener {
}
@Override
- public void compilationError(DartCompilationError event) {
+ public void onError(DartCompilationError event) {
String reportedSrcName = (event.getSource() != null)
? event.getSource().getName()
: null;
@@ -77,16 +77,6 @@ public class DartCompilerListenerTest extends DartCompilerListener {
current++;
}
- @Override
- public void compilationWarning(DartCompilationError event) {
- compilationError(event);
- }
-
- @Override
- public void typeError(DartCompilationError event) {
- compilationError(event);
- }
-
/** Checks that all expected errors were reported. */
public void checkAllErrorsReported() {
CompilerTestCase.assertEquals("Not all expected errors were reported",

Powered by Google App Engine
This is Rietveld 408576698