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

Unified Diff: compiler/javatests/com/google/dart/compiler/MockLibrarySource.java

Issue 9420011: Issue 1548. If URI can not be parsed, return null. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 10 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/MockLibrarySource.java
diff --git a/compiler/javatests/com/google/dart/compiler/MockLibrarySource.java b/compiler/javatests/com/google/dart/compiler/MockLibrarySource.java
index d5696cb1840aec97f8a0ddf345eddd2df641ef1a..7c06ffbd4072fa5a4e119fd98d2d7326c3c63e1e 100644
--- a/compiler/javatests/com/google/dart/compiler/MockLibrarySource.java
+++ b/compiler/javatests/com/google/dart/compiler/MockLibrarySource.java
@@ -46,7 +46,7 @@ public class MockLibrarySource extends SourceTest implements LibrarySource {
return lib;
}
}
- throw new RuntimeException("Cannot find import for " + relPath);
+ return null;
}
@Override
@@ -59,7 +59,7 @@ public class MockLibrarySource extends SourceTest implements LibrarySource {
return source;
}
}
- throw new RuntimeException("Cannot find source for " + relPath);
+ return null;
}
public void addSource(DartSource src) {

Powered by Google App Engine
This is Rietveld 408576698