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

Unified Diff: compiler/javatests/com/google/dart/compiler/parser/NegativeParserTest.java

Issue 10700146: Issue 4040. Fix NPE when report problem with no node. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 5 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/parser/NegativeParserTest.java
diff --git a/compiler/javatests/com/google/dart/compiler/parser/NegativeParserTest.java b/compiler/javatests/com/google/dart/compiler/parser/NegativeParserTest.java
index 7627b34c4ba587fb1fb24be5ad790c4224a51267..682105c77ec814c32cb9a70b5bd7e976a3f57624 100644
--- a/compiler/javatests/com/google/dart/compiler/parser/NegativeParserTest.java
+++ b/compiler/javatests/com/google/dart/compiler/parser/NegativeParserTest.java
@@ -79,6 +79,20 @@ public class NegativeParserTest extends CompilerTestCase {
errEx(ParserErrorCode.REDIRECTING_CONSTRUCTOR_MULTIPLE, 1, 39, 7));
}
+ /**
+ * May be parsing errors, but not exceptions.
+ * <p>
+ * http://code.google.com/p/dart/issues/detail?id=4040
+ */
+ public void test_incompleteArguments() {
+ parseSource(makeCode(
+ "// filler filler filler filler filler filler filler filler filler filler",
+ "main() {",
+ " f(a: 0,",
+ "}",
+ ""));
+ }
+
public void testSuperMultipleInvocationsTest() {
String source =
makeCode(

Powered by Google App Engine
This is Rietveld 408576698