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

Unified Diff: compiler/javatests/com/google/dart/compiler/end2end/NamedParameterTest.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: compiler/javatests/com/google/dart/compiler/end2end/NamedParameterTest.java
diff --git a/compiler/javatests/com/google/dart/compiler/end2end/NamedParameterTest.java b/compiler/javatests/com/google/dart/compiler/end2end/NamedParameterTest.java
index e6ccb0b5c63158cb80eee4938aeb0613cec19601..a94ca95a4a7e089c51af8333c5d4e19e6e804b62 100644
--- a/compiler/javatests/com/google/dart/compiler/end2end/NamedParameterTest.java
+++ b/compiler/javatests/com/google/dart/compiler/end2end/NamedParameterTest.java
@@ -31,6 +31,7 @@ import com.google.dart.compiler.DartCompilationError;
import com.google.dart.compiler.DartCompilerListener;
import com.google.dart.compiler.DartCompilerListenerTest;
import com.google.dart.compiler.DartLibrarySourceTest;
+import com.google.dart.compiler.SubSystem;
/**
* Tests for lots of cases involving named parameters.
@@ -40,9 +41,14 @@ public class NamedParameterTest extends End2EndTestCase {
public void testStuff() throws Exception {
DartCompilerListener listener = new DartCompilerListenerTest(null) {
@Override
- public void typeError(DartCompilationError event) {
+ public void onError(DartCompilationError event) {
// Skip type errors -- we trigger some intentionally in order to test that
// NoSuchMethodException gets thrown.
+ if (event.getErrorCode().getSubSystem() == SubSystem.STATIC_TYPE) {
+ return;
+ }
+ // Propagate error.
+ super.onError(event);
}
};
DartLibrarySourceTest app = new DartLibrarySourceTest(getClass(), "NamedParameterTest.dart");

Powered by Google App Engine
This is Rietveld 408576698