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

Unified Diff: pkg/analyzer/test/generated/compile_time_error_code_test.dart

Issue 1180043006: Fix tests with 'part' without 'library'. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/generated/compile_time_error_code_test.dart
diff --git a/pkg/analyzer/test/generated/compile_time_error_code_test.dart b/pkg/analyzer/test/generated/compile_time_error_code_test.dart
index 540f98365714ddd1f633298167da0c1ad464e0d1..ac6549c652813f004f1933828870c579fc6a08bf 100644
--- a/pkg/analyzer/test/generated/compile_time_error_code_test.dart
+++ b/pkg/analyzer/test/generated/compile_time_error_code_test.dart
@@ -3289,7 +3289,9 @@ class A<E> {
}
void test_invalidUri_part() {
- Source source = addSource("part 'ht:';");
+ Source source = addSource(r'''
+library lib;
+part 'ht:';''');
computeLibrarySourceErrors(source);
assertErrors(source, [CompileTimeErrorCode.INVALID_URI]);
}
@@ -5804,7 +5806,9 @@ main() {
}
void test_uriDoesNotExist_part() {
- Source source = addSource("part 'unknown.dart';");
+ Source source = addSource(r'''
+library lib;
+part 'unknown.dart';''');
computeLibrarySourceErrors(source);
assertErrors(source, [CompileTimeErrorCode.URI_DOES_NOT_EXIST]);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698