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

Unified Diff: pkg/analyzer/test/src/task/general_test.dart

Issue 1127403004: Return empty contents for not existing sources. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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
« no previous file with comments | « pkg/analyzer/test/src/task/dart_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/src/task/general_test.dart
diff --git a/pkg/analyzer/test/src/task/general_test.dart b/pkg/analyzer/test/src/task/general_test.dart
index a043c84242bc7872ec0911a4c7277869ada7dd8b..e7b6e92d72dad9cb4b84921cd2f0bc99870d56c0 100644
--- a/pkg/analyzer/test/src/task/general_test.dart
+++ b/pkg/analyzer/test/src/task/general_test.dart
@@ -73,8 +73,10 @@ class GetContentTaskTest extends EngineTestCase {
GetContentTask task = new GetContentTask(context, target);
when(context.getContents(target)).thenThrow('My exception!');
task.perform();
- expect(task.caughtException, isNotNull);
- expect(task.outputs, isEmpty);
+ expect(task.caughtException, isNull);
+ expect(task.outputs, hasLength(2));
+ expect(task.outputs[CONTENT], '');
+ expect(task.outputs[MODIFICATION_TIME], -1);
}
}
« no previous file with comments | « pkg/analyzer/test/src/task/dart_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698