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

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

Issue 10825346: Fix bugs in parser and update tests to use new directive syntax (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/SyntaxTest.java
===================================================================
--- compiler/javatests/com/google/dart/compiler/parser/SyntaxTest.java (revision 10652)
+++ compiler/javatests/com/google/dart/compiler/parser/SyntaxTest.java (working copy)
@@ -174,8 +174,8 @@
assertEquals(
Joiner.on("\n").join(
"// unit QualifiedReturnTypeB.dart",
- "#library(\"test\");",
- "#import(\"QualifiedReturnTypeA.dart\", prefix : \"pref\");",
+ "library test;",
+ "import \"QualifiedReturnTypeA.dart\" as pref;",
"class A {",
"",
" pref.A foo() {",
@@ -1061,17 +1061,6 @@
ParserErrorCode.OPERATOR_CANNOT_BE_STATIC, 2, 10);
}
- public void test_expectedPrefixIdentifier() throws Exception {
- parseUnit("phony_expected_prefix_identifier.dart",
- Joiner.on("\n").join(
- "#import(\"l.dart\", postfix : \"l\");",
- "#import(\"l.dart\", );",
- "#import(\"l.dart\", prefix : \"1\");"),
- ParserErrorCode.EXPECTED_PREFIX_KEYWORD, 1, 17,
- ParserErrorCode.EXPECTED_PREFIX_KEYWORD, 2, 17,
- ParserErrorCode.EXPECTED_PREFIX_IDENTIFIER, 3, 28);
- }
-
public void test_nonFinalStaticMemberInInterface() throws Exception {
parseUnit("phony_non_final_static_member_in_interface.dart",
Joiner.on("\n").join(

Powered by Google App Engine
This is Rietveld 408576698