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 ec97e7a90f5452d869fb4fe6b9a3bf13082e981c..c6fbf3909860443b27776b9d5e6788ffaaff0d68 100644 |
--- a/compiler/javatests/com/google/dart/compiler/DartCompilerListenerTest.java |
+++ b/compiler/javatests/com/google/dart/compiler/DartCompilerListenerTest.java |
@@ -4,6 +4,8 @@ |
package com.google.dart.compiler; |
+import com.google.dart.compiler.resolver.TypeErrorCode; |
+ |
/** |
* Testing implementation of {@link DartCompilerListener}. |
*/ |
@@ -49,6 +51,11 @@ public class DartCompilerListenerTest extends DartCompilerListener.Empty { |
@Override |
public void onError(DartCompilationError event) { |
+ // ignore deprecated |
+ if (event.getErrorCode() == TypeErrorCode.DEPRECATED_ELEMENT) { |
+ return; |
+ } |
+ // validate |
String reportedSrcName = (event.getSource() != null) |
? event.getSource().getName() |
: null; |