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

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

Issue 10139017: Support for same prefix for multiple imports. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Detect top-level duplicates in libraries with same prefix Created 8 years, 8 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
diff --git a/compiler/javatests/com/google/dart/compiler/parser/AbstractParserTest.java b/compiler/javatests/com/google/dart/compiler/parser/AbstractParserTest.java
index 7bc8f840c1e74a502b95a790580c2fdb20dd1a57..2d8e9348b634a89720b0167350c9c3d034d7b0a2 100644
--- a/compiler/javatests/com/google/dart/compiler/parser/AbstractParserTest.java
+++ b/compiler/javatests/com/google/dart/compiler/parser/AbstractParserTest.java
@@ -90,6 +90,9 @@ public abstract class AbstractParserTest extends CompilerTestCase {
public void testDirectives() {
DartUnit unit = parseUnit("Directives.dart");
+ if (unit == null) {
+ return;
+ }
Iterator<DartDirective> iter = unit.getDirectives().iterator();
DartDirective directive = iter.next();
@@ -112,6 +115,9 @@ public abstract class AbstractParserTest extends CompilerTestCase {
public void testDirectives2() {
DartUnit unit = parseUnit("Directives2.dart");
+ if (unit == null) {
+ return;
+ }
Iterator<DartDirective> iter = unit.getDirectives().iterator();
DartDirective directive = iter.next();

Powered by Google App Engine
This is Rietveld 408576698