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

Unified Diff: pkg/analysis_server/test/edit/organize_directives_test.dart

Issue 1380893003: More tests for 'Organize Directives'. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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 | pkg/analysis_server/test/services/correction/organize_directives_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/test/edit/organize_directives_test.dart
diff --git a/pkg/analysis_server/test/edit/organize_directives_test.dart b/pkg/analysis_server/test/edit/organize_directives_test.dart
index deb4ed9a42a9e398895eaccb0fab189ecf611532..821e4a4da9564c10d8b7e4a95ec728cf3164fb44 100644
--- a/pkg/analysis_server/test/edit/organize_directives_test.dart
+++ b/pkg/analysis_server/test/edit/organize_directives_test.dart
@@ -65,6 +65,28 @@ main() {}
response, isResponseFailure('0', RequestErrorCode.FILE_NOT_ANALYZED));
}
+ Future test_OK_remove_duplicateImports_withSamePrefix() {
+ addTestFile('''
+library lib;
+
+import 'dart:async' as async;
+import 'dart:async' as async;
+
+main() {
+ async.Future f;
+}
+''');
+ return _assertOrganized(r'''
+library lib;
+
+import 'dart:async' as async;
+
+main() {
+ async.Future f;
+}
+''');
+ }
+
Future test_OK_remove_unresolvedDirectives() {
addFile('$testFolder/existing_part1.dart', 'part of lib;');
addFile('$testFolder/existing_part2.dart', 'part of lib;');
« no previous file with comments | « no previous file | pkg/analysis_server/test/services/correction/organize_directives_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698