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

Unified Diff: pkg/analyzer/test/src/context/context_test.dart

Issue 1426943005: Fix null pointer (issue 24790) (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month 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/context/context.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/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 39496e55c6dbd18f0a25e5e650e10d34ca6efc63..24d462289b6c9d982487e8423b1505bfdd687dbb 100644
--- a/pkg/analyzer/test/src/context/context_test.dart
+++ b/pkg/analyzer/test/src/context/context_test.dart
@@ -1441,6 +1441,11 @@ main() {}''');
expect(context.isClientLibrary(source), isFalse);
}
+ void test_isClientLibrary_unknown() {
+ Source source = newSource("/test.dart");
+ expect(context.isClientLibrary(source), isFalse);
+ }
+
void test_isServerLibrary_dart() {
Source source = addSource(
"/test.dart",
@@ -1460,6 +1465,11 @@ main() {}''');
expect(context.isServerLibrary(source), isFalse);
}
+ void test_isServerLibrary_unknown() {
+ Source source = newSource("/test.dart");
+ expect(context.isServerLibrary(source), isFalse);
+ }
+
void test_parseCompilationUnit_errors() {
Source source = addSource("/lib.dart", "library {");
CompilationUnit compilationUnit = context.parseCompilationUnit(source);
« no previous file with comments | « pkg/analyzer/lib/src/context/context.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698