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

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

Issue 9016026: Moves over remaining .dart code references to 'factory' in interface declartions to 'default' (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years 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 d148b2e97d6ecea77ddb9e97c8f3070178930854..2b647157a97ff1503dc89454b53d79722e09f5f6 100644
--- a/compiler/javatests/com/google/dart/compiler/parser/NegativeParserTest.java
+++ b/compiler/javatests/com/google/dart/compiler/parser/NegativeParserTest.java
@@ -203,7 +203,7 @@ public class NegativeParserTest extends CompilerTestCase {
// check structure of AST
DartUnit dartUnit = parserRunner.getDartUnit();
- String expected =
+ String expected =
Joiner.on("\n").join(
"// unit " + getName(),
"class A {",
@@ -222,7 +222,7 @@ public class NegativeParserTest extends CompilerTestCase {
System.err.println("Expected:\n" + expected);
System.err.println("\nActual:\n" + actual);
}
- assertEquals(expected, actual);
+ assertEquals(expected, actual);
}
/**
@@ -288,7 +288,7 @@ public class NegativeParserTest extends CompilerTestCase {
}
/**
- * Function signatures require the name to be an identifier; especially true at the top level.
+ * Function signatures require the name to be an identifier; especially true at the top level.
* <p>
* http://code.google.com/p/dart/issues/detail?id=839
*/
@@ -308,4 +308,10 @@ public class NegativeParserTest extends CompilerTestCase {
errEx(ParserErrorCode.EXPECTED_TOKEN, 3, 7, 5),
errEx(ParserErrorCode.UNEXPECTED_TOKEN, 4, 19, 5));
}
+
+ public void tstDeprecatedFactoryInInterface() {
+ parseExpectErrors(
+ "interface foo factory bar {}",
+ errEx(ParserErrorCode.DEPRECATED_USE_OF_FACTORY_KEYWORD, 1, 15, 8));
+ }
}

Powered by Google App Engine
This is Rietveld 408576698