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

Unified Diff: compiler/javatests/com/google/dart/compiler/parser/AbstractParserTest.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/AbstractParserTest.java
===================================================================
--- compiler/javatests/com/google/dart/compiler/parser/AbstractParserTest.java (revision 10597)
+++ compiler/javatests/com/google/dart/compiler/parser/AbstractParserTest.java (working copy)
@@ -94,7 +94,7 @@
DartDirective directive = iter.next();
assertEquals(DartLibraryDirective.class, directive.getClass());
- assertEquals("a-directives-test", ((DartLibraryDirective) directive).getName().getValue());
+ assertEquals("a-directives-test", ((DartLibraryDirective) directive).getLibraryName());
directive = iter.next();
assertEquals(DartImportDirective.class, directive.getClass());
@@ -115,7 +115,7 @@
DartDirective directive = iter.next();
assertEquals(DartLibraryDirective.class, directive.getClass());
- assertEquals("b-directives-test", ((DartLibraryDirective) directive).getName().getValue());
+ assertEquals("b-directives-test", ((DartLibraryDirective) directive).getLibraryName());
directive = iter.next();
assertEquals(DartImportDirective.class, directive.getClass());

Powered by Google App Engine
This is Rietveld 408576698