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

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

Issue 10823014: Fix for issue 1489 (Closed) Base URL: http://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
===================================================================
--- compiler/javatests/com/google/dart/compiler/parser/NegativeParserTest.java (revision 9886)
+++ compiler/javatests/com/google/dart/compiler/parser/NegativeParserTest.java (working copy)
@@ -477,19 +477,6 @@
errEx(ParserErrorCode.NO_SPACE_AFTER_PLUS, 7, 9, 1));
}
- public void test_functionDeclaration_name() {
- parseExpectWarnings(
- Joiner.on("\n").join(
- "// filler filler filler filler filler filler filler filler filler filler",
- "foo() {",
- " f1(p){};", // function declaration as statement, has name
- " (p){}", // function declaration as statement, should have name
- " var f2 = (p){};", // variable declaration, name of function literal is not required
- "}",
- ""),
- errEx(ParserErrorCode.MISSING_FUNCTION_NAME, 4, 3, 5));
- }
-
/**
* Separate test for invocation of function literal which has both return type and name.
*/

Powered by Google App Engine
This is Rietveld 408576698