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

Unified Diff: pkg/analysis_server/lib/src/resource.dart

Issue 300853006: Tests for exceptional situations in MemoryResourceProvider. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 7 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: pkg/analysis_server/lib/src/resource.dart
diff --git a/pkg/analysis_server/lib/src/resource.dart b/pkg/analysis_server/lib/src/resource.dart
index af2280932388b2af55d9e0545f3fad6fe6a773d5..ba7f288b82b4c699fd723f6f63ee4e1fdf89eaf9 100644
--- a/pkg/analysis_server/lib/src/resource.dart
+++ b/pkg/analysis_server/lib/src/resource.dart
@@ -247,9 +247,6 @@ class MemoryResourceProvider implements ResourceProvider {
Folder newFolder(String path) {
path = posix.normalize(path);
- if (path.isEmpty) {
- throw new ArgumentError('Empty paths are not supported');
- }
if (!path.startsWith('/')) {
throw new ArgumentError("Path must start with '/'");
}
« no previous file with comments | « no previous file | pkg/analysis_server/test/resource_test.dart » ('j') | pkg/analysis_server/test/resource_test.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698