| 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 e6fb711ee07f64e9ac32fd29159ee2cfbdf6c453..30a6a249b6ca5cfe1acc18e52229fd9214e30a58 100644
|
| --- a/compiler/javatests/com/google/dart/compiler/parser/NegativeParserTest.java
|
| +++ b/compiler/javatests/com/google/dart/compiler/parser/NegativeParserTest.java
|
| @@ -139,7 +139,7 @@ public class NegativeParserTest extends CompilerTestCase {
|
| DartUnit unit =
|
| parseSourceUnitErrors(
|
| "factory foo() {}",
|
| - ParserErrorCode.DISALLOWED_FACTORY_KEYWORD.getMessage(),
|
| + ParserErrorCode.FACTORY_CANNOT_BE_TOPLEVEL.getMessage(),
|
| 1,
|
| 1);
|
| DartMethodDefinition factory = (DartMethodDefinition) unit.getTopLevelNodes().get(0);
|
| @@ -341,7 +341,7 @@ public class NegativeParserTest extends CompilerTestCase {
|
| "typedef ParameterizedFun1<T, U extends bool, V>(T t, U u);",
|
| ""));
|
| }
|
| -
|
| +
|
| public void test_abstractTopLevel_class() {
|
| parseExpectErrors(Joiner.on("\n").join(
|
| "// filler filler filler filler filler filler filler filler filler filler",
|
| @@ -702,7 +702,7 @@ public class NegativeParserTest extends CompilerTestCase {
|
| "}",
|
| ""));
|
| }
|
| -
|
| +
|
| /**
|
| * We can parse operator "equals" declaration.
|
| */
|
| @@ -972,7 +972,7 @@ public class NegativeParserTest extends CompilerTestCase {
|
| "}",
|
| ""));
|
| }
|
| -
|
| +
|
| /**
|
| * There is ambiguity in parsing function expression inside of initializer.
|
| * <p>
|
| @@ -994,7 +994,7 @@ public class NegativeParserTest extends CompilerTestCase {
|
| "}",
|
| ""));
|
| }
|
| -
|
| +
|
| /**
|
| * There is ambiguity in parsing function expression inside of initializer.
|
| * <p>
|
|
|