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

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

Issue 11414175: Issue 6881. Import and part URIs can be adjacent strings (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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
« no previous file with comments | « compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java ('k') | tests/co19/co19-compiler.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiler/javatests/com/google/dart/compiler/parser/SyntaxTest.java
diff --git a/compiler/javatests/com/google/dart/compiler/parser/SyntaxTest.java b/compiler/javatests/com/google/dart/compiler/parser/SyntaxTest.java
index 496653f1e5726558e9bccea8e51c72c1be2b4fc6..4f9415ad7e07ebda38ff36419bc5f27619c25966 100644
--- a/compiler/javatests/com/google/dart/compiler/parser/SyntaxTest.java
+++ b/compiler/javatests/com/google/dart/compiler/parser/SyntaxTest.java
@@ -46,6 +46,27 @@ import static com.google.dart.compiler.common.ErrorExpectation.errEx;
import java.util.List;
public class SyntaxTest extends AbstractParserTest {
+ /**
+ * <p>
+ * http://code.google.com/p/dart/issues/detail?id=6881
+ */
+ public void test_uri_adjacent() {
+ parseUnit("test.dart", Joiner.on("\n").join(
+ "import 'myLib' '.dart';",
+ ""));
+ }
+ /**
+ * <p>
+ * http://code.google.com/p/dart/issues/detail?id=6881
+ */
+ public void test_uri_interpolation() {
+ parseUnit("test.dart", Joiner.on("\n").join(
+ "import 'my$x' '.dart';",
+ "var a = 'Lib';",
+ ""),
+ ParserErrorCode.URI_CANNOT_USE_INTERPOLATION, 1, 8);
+ }
+
public void test_exportDirective_combinators() {
parseUnit("test.dart", Joiner.on("\n").join(
"library lib;",
« no previous file with comments | « compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java ('k') | tests/co19/co19-compiler.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698