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

Unified Diff: pkg/analysis_server/test/services/correction/fix_test.dart

Issue 2830733002: We cannot use relative URIs to reference files outside of a package. (Closed)
Patch Set: Created 3 years, 8 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/analysis_server/lib/src/services/correction/fix_internal.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/test/services/correction/fix_test.dart
diff --git a/pkg/analysis_server/test/services/correction/fix_test.dart b/pkg/analysis_server/test/services/correction/fix_test.dart
index 84b313adac620a726166f6cbe25a09d0362ed4bf..cf0cfccf6ec93364d96613fe49ea9ea78c28dff8 100644
--- a/pkg/analysis_server/test/services/correction/fix_test.dart
+++ b/pkg/analysis_server/test/services/correction/fix_test.dart
@@ -3380,6 +3380,34 @@ main() {
''');
}
+ test_importLibraryProject_BAD_notInLib_BUILD() async {
+ testFile = '/aaa/bin/test.dart';
+ provider.newFile('/aaa/BUILD', '');
+ provider.newFile('/bbb/BUILD', '');
+ addSource('/bbb/test/lib.dart', 'class Test {}');
+ await resolveTestUnit('''
+main() {
+ Test t;
+}
+''');
+ performAllAnalysisTasks();
+ await assertNoFix(DartFixKind.IMPORT_LIBRARY_PROJECT1);
+ }
+
+ test_importLibraryProject_BAD_notInLib_pubspec() async {
+ testFile = '/aaa/bin/test.dart';
+ provider.newFile('/aaa/pubspec.yaml', 'name: aaa');
+ provider.newFile('/bbb/pubspec.yaml', 'name: bbb');
+ addSource('/bbb/test/lib.dart', 'class Test {}');
+ await resolveTestUnit('''
+main() {
+ Test t;
+}
+''');
+ performAllAnalysisTasks();
+ await assertNoFix(DartFixKind.IMPORT_LIBRARY_PROJECT1);
+ }
+
test_importLibraryProject_withClass_annotation() async {
addSource(
'/lib.dart',
« no previous file with comments | « pkg/analysis_server/lib/src/services/correction/fix_internal.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698