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

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

Issue 10837286: Support new optional parameter syntax (issue 4289) (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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
===================================================================
--- compiler/javatests/com/google/dart/compiler/parser/NegativeParserTest.java (revision 10825)
+++ compiler/javatests/com/google/dart/compiler/parser/NegativeParserTest.java (working copy)
@@ -184,7 +184,7 @@
public void test_missingEndOfOptionalParameters() {
parseExpectErrors(
"class A {void m(var p1, [var p2 = const []) {} }",
- errEx(ParserErrorCode.MISSING_NAMED_PARAMETER_END, 1, 43, 1));
+ errEx(ParserErrorCode.MISSING_OPTIONAL_PARAMETER_END, 1, 43, 1));
}
public void test_namedParameterValue_inOperator() {

Powered by Google App Engine
This is Rietveld 408576698