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

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

Issue 10832274: Initial parser changes for the 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/ParserRecoveryTest.java
===================================================================
--- compiler/javatests/com/google/dart/compiler/parser/ParserRecoveryTest.java (revision 10597)
+++ compiler/javatests/com/google/dart/compiler/parser/ParserRecoveryTest.java (working copy)
@@ -765,9 +765,9 @@
ParserErrorCode.DIRECTIVE_OUT_OF_ORDER, 2, 1,
ParserErrorCode.ONLY_ONE_LIBRARY_DIRECTIVE, 2, 14);
DartLibraryDirective a = (DartLibraryDirective)unit.getDirectives().get(0);
- assertEquals("a", a.getName().getValue());
+ assertEquals("a", a.getLibraryName());
DartLibraryDirective b = (DartLibraryDirective)unit.getDirectives().get(1);
- assertEquals("b", b.getName().getValue());
+ assertEquals("b", b.getLibraryName());
}
public void testRecoveryDirective2() {
@@ -779,7 +779,7 @@
DartImportDirective a = (DartImportDirective)unit.getDirectives().get(0);
assertEquals("a", a.getLibraryUri().getValue());
DartLibraryDirective b = (DartLibraryDirective)unit.getDirectives().get(1);
- assertEquals("b", b.getName().getValue());
+ assertEquals("b", b.getLibraryName());
}
public void testRecoveryDirective3() {

Powered by Google App Engine
This is Rietveld 408576698