| Index: compiler/javatests/com/google/dart/compiler/CompilerTestCase.java
|
| diff --git a/compiler/javatests/com/google/dart/compiler/CompilerTestCase.java b/compiler/javatests/com/google/dart/compiler/CompilerTestCase.java
|
| index 0ab0e5b79c2cce2d6d325b309f5212ffdf28bf61..7fd05b80f5bdaf5cde5d15fb4a9fe2079e0bd6f5 100644
|
| --- a/compiler/javatests/com/google/dart/compiler/CompilerTestCase.java
|
| +++ b/compiler/javatests/com/google/dart/compiler/CompilerTestCase.java
|
| @@ -88,18 +88,14 @@ public abstract class CompilerTestCase extends TestCase {
|
| }
|
|
|
| @Override
|
| - public void compilationError(DartCompilationError event) {
|
| - compilationErrors.add(event);
|
| - }
|
| -
|
| - @Override
|
| - public void compilationWarning(DartCompilationError event) {
|
| - compilationWarnings.add(event);
|
| - }
|
| -
|
| - @Override
|
| - public void typeError(DartCompilationError event) {
|
| - typeErrors.add(event);
|
| + public void onError(DartCompilationError event) {
|
| + if (event.getErrorCode().getSubSystem() == SubSystem.STATIC_TYPE) {
|
| + typeErrors.add(event);
|
| + } else if (event.getErrorCode().getErrorSeverity() == ErrorSeverity.ERROR) {
|
| + compilationErrors.add(event);
|
| + } else if (event.getErrorCode().getErrorSeverity() == ErrorSeverity.WARNING) {
|
| + compilationWarnings.add(event);
|
| + }
|
| }
|
|
|
| /**
|
|
|