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

Unified Diff: compiler/javatests/com/google/dart/compiler/DartCompilerListenerTest.java

Issue 12220077: Issue 8426. Ignore depecated warnings in DartCompilerListenerTest. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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
« no previous file with comments | « no previous file | compiler/javatests/com/google/dart/compiler/end2end/End2EndTests.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | compiler/javatests/com/google/dart/compiler/end2end/End2EndTests.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698