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

Unified Diff: pkg/analyzer/test/src/context/context_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/lib/src/task/general.dart ('k') | pkg/analyzer/test/src/task/dart_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/src/context/context_test.dart
diff --git a/pkg/analyzer/test/src/context/context_test.dart b/pkg/analyzer/test/src/context/context_test.dart
index 24899224d66136f098644538729e22aa42780a63..d7e9986895f79b5f481a340e7b11b8f22a5b1f68 100644
--- a/pkg/analyzer/test/src/context/context_test.dart
+++ b/pkg/analyzer/test/src/context/context_test.dart
@@ -682,7 +682,7 @@ void g() { f(null); }''');
expect(error.errorCode, ScannerErrorCode.UNABLE_GET_CONTENT);
}
- void fail_performAnalysisTask_importedLibraryAdd() {
+ void test_performAnalysisTask_importedLibraryAdd() {
Source libASource =
addSource("/libA.dart", "library libA; import 'libB.dart';");
_analyzeAll_assertFinished();
@@ -700,8 +700,8 @@ void g() { f(null); }''');
expect(
context.getResolvedCompilationUnit2(libBSource, libBSource), isNotNull,
reason: "libB resolved 2");
- expect(!_hasAnalysisErrorWithErrorSeverity(context.getErrors(libASource)),
- isTrue, reason: "libA doesn't have errors");
+ expect(_hasAnalysisErrorWithErrorSeverity(context.getErrors(libASource)),
+ isFalse, reason: "libA doesn't have errors");
}
void fail_performAnalysisTask_importedLibraryAdd_html() {
« no previous file with comments | « pkg/analyzer/lib/src/task/general.dart ('k') | pkg/analyzer/test/src/task/dart_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698