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

Unified Diff: editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/compiler/TestCompilerListener.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: editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/compiler/TestCompilerListener.java
diff --git a/editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/compiler/TestCompilerListener.java b/editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/compiler/TestCompilerListener.java
index 7aea2e7a3a116b4c6123cddd650520ba7bef71c1..f386c8912bdabb43c648d12f258cf5129faf17ad 100644
--- a/editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/compiler/TestCompilerListener.java
+++ b/editor/tools/plugins/com.google.dart.tools.core_test/src/com/google/dart/tools/core/internal/compiler/TestCompilerListener.java
@@ -55,9 +55,9 @@ public class TestCompilerListener extends DartCompilerListener {
public void assertAllErrorsReported() {
assertEquals("Not all expected errors were reported", total, current);
}
-
+
@Override
- public void compilationError(DartCompilationError event) {
+ public void onError(DartCompilationError event) {
assertTrue("More errors (" + (current + 1) + ") than expected (" + total + "):\n" + event,
current < total);
assertEquals("Wrong error message", messages[current], event.getMessage());
@@ -67,16 +67,6 @@ public class TestCompilerListener extends DartCompilerListener {
}
@Override
- public void compilationWarning(DartCompilationError event) {
- compilationError(event);
- }
-
- @Override
- public void typeError(DartCompilationError event) {
- compilationError(event);
- }
-
- @Override
public void unitCompiled(DartUnit unit) {
}
}

Powered by Google App Engine
This is Rietveld 408576698