| Index: compiler/javatests/com/google/dart/compiler/parser/DartParserRunner.java
|
| diff --git a/compiler/javatests/com/google/dart/compiler/parser/DartParserRunner.java b/compiler/javatests/com/google/dart/compiler/parser/DartParserRunner.java
|
| index e3687df48fae444e9bc9f4fe1e14cf5e306b39d6..cb39a640ba005900e920cf60d4da293ab155bc8b 100644
|
| --- a/compiler/javatests/com/google/dart/compiler/parser/DartParserRunner.java
|
| +++ b/compiler/javatests/com/google/dart/compiler/parser/DartParserRunner.java
|
| @@ -7,6 +7,7 @@ package com.google.dart.compiler.parser;
|
| import com.google.dart.compiler.DartCompilationError;
|
| import com.google.dart.compiler.DartCompilerListener;
|
| import com.google.dart.compiler.DartSourceTest;
|
| +import com.google.dart.compiler.ErrorSeverity;
|
| import com.google.dart.compiler.ast.DartUnit;
|
|
|
| import junit.framework.TestCase;
|
| @@ -138,15 +139,11 @@ public class DartParserRunner extends DartCompilerListener implements Runnable {
|
| }
|
|
|
| @Override
|
| - public void compilationError(DartCompilationError event) {
|
| - errors.add(event);
|
| - }
|
| -
|
| - @Override
|
| - public void compilationWarning(DartCompilationError event) {
|
| - if (wantWarnings) {
|
| - errors.add(event);
|
| + public void onError(DartCompilationError event) {
|
| + if (event.getErrorCode().getErrorSeverity() == ErrorSeverity.WARNING && !wantWarnings) {
|
| + return;
|
| }
|
| + errors.add(event);
|
| }
|
|
|
| public int getErrorCount() {
|
| @@ -182,11 +179,6 @@ public class DartParserRunner extends DartCompilerListener implements Runnable {
|
| return this;
|
| }
|
|
|
| - @Override
|
| - public void typeError(DartCompilationError event) {
|
| - errors.add(event);
|
| - }
|
| -
|
| private void doWork() throws InterruptedException {
|
| parserWorker.start();
|
| parserWorker.join(timeoutInMillis);
|
|
|