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

Unified Diff: compiler/javatests/com/google/dart/compiler/resolver/NegativeResolverTest.java

Issue 8384012: Make some ErrorCode-s compile-time errors and some just type warnings (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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/resolver/NegativeResolverTest.java
diff --git a/compiler/javatests/com/google/dart/compiler/resolver/NegativeResolverTest.java b/compiler/javatests/com/google/dart/compiler/resolver/NegativeResolverTest.java
index 6b31dc3026c3a1368db4f71d48c6dc626a3c0f7e..3c6eefcea14385f38a971011dbf14c5d6c4fe65a 100644
--- a/compiler/javatests/com/google/dart/compiler/resolver/NegativeResolverTest.java
+++ b/compiler/javatests/com/google/dart/compiler/resolver/NegativeResolverTest.java
@@ -21,8 +21,12 @@ public class NegativeResolverTest extends CompilerTestCase {
public void checkNumErrors(String fileName, int expectedErrorCount) {
DartUnit unit = parseUnit(fileName);
+ unit.addTopLevelNode(ResolverTestCase.makeClass("int", null));
unit.addTopLevelNode(ResolverTestCase.makeClass("Object", null));
+ unit.addTopLevelNode(ResolverTestCase.makeClass("String", null));
unit.addTopLevelNode(ResolverTestCase.makeClass("Function", null));
+ unit.addTopLevelNode(ResolverTestCase.makeClass("List", null, "T"));
+ unit.addTopLevelNode(ResolverTestCase.makeClass("Map", null, "K", "V"));
ResolverTestCase.resolve(unit, getContext());
assertEquals(new ArrayList<DartCompilationError>(), typeErrors);
if (errors.size() != expectedErrorCount) {

Powered by Google App Engine
This is Rietveld 408576698