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

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

Issue 2975253002: Format analyzer, analysis_server, analyzer_plugin, front_end and kernel with the latest dartfmt. (Closed)
Patch Set: Created 3 years, 5 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
Index: pkg/analysis_server/test/services/correction/organize_directives_test.dart
diff --git a/pkg/analysis_server/test/services/correction/organize_directives_test.dart b/pkg/analysis_server/test/services/correction/organize_directives_test.dart
index 8efa94e87ee85dbc022862bc4a266917a97c5d24..665cad67c040a541001a57b2c47c5ae2104508aa 100644
--- a/pkg/analysis_server/test/services/correction/organize_directives_test.dart
+++ b/pkg/analysis_server/test/services/correction/organize_directives_test.dart
@@ -34,17 +34,14 @@ main() {
async2.Stream s;
}''');
// validate change
- _assertOrganize(
- r'''
+ _assertOrganize(r'''
import 'dart:async' as async1;
import 'dart:async' as async2;
main() {
async1.Future f;
async2.Stream s;
-}''',
- removeUnresolved: true,
- removeUnused: true);
+}''', removeUnresolved: true, removeUnused: true);
}
test_remove_duplicateImports() async {
@@ -56,15 +53,12 @@ main() {
Future f;
}''');
// validate change
- _assertOrganize(
- r'''
+ _assertOrganize(r'''
import 'dart:async';
main() {
Future f;
-}''',
- removeUnresolved: true,
- removeUnused: true);
+}''', removeUnresolved: true, removeUnused: true);
}
test_remove_duplicateImports_differentText_uri() async {
@@ -76,15 +70,12 @@ main() {
async.Future f;
}''');
// validate change
- _assertOrganize(
- r'''
+ _assertOrganize(r'''
import 'dart:async' as async;
main() {
async.Future f;
-}''',
- removeUnresolved: true,
- removeUnused: true);
+}''', removeUnresolved: true, removeUnused: true);
}
test_remove_duplicateImports_withSamePrefix() async {
@@ -96,15 +87,12 @@ main() {
async.Future f;
}''');
// validate change
- _assertOrganize(
- r'''
+ _assertOrganize(r'''
import 'dart:async' as async;
main() {
async.Future f;
-}''',
- removeUnresolved: true,
- removeUnused: true);
+}''', removeUnresolved: true, removeUnused: true);
}
test_remove_unresolvedDirectives() async {
@@ -131,8 +119,7 @@ main() {
}
''');
// validate change
- _assertOrganize(
- r'''
+ _assertOrganize(r'''
library lib;
import 'dart:async';
@@ -146,8 +133,7 @@ part 'existing_part2.dart';
main() {
}
-''',
- removeUnresolved: true);
+''', removeUnresolved: true);
}
test_remove_unusedImports() async {
@@ -165,8 +151,7 @@ main() {
}
''');
// validate change
- _assertOrganize(
- r'''
+ _assertOrganize(r'''
library lib;
import 'dart:collection';
@@ -176,8 +161,7 @@ main() {
print(PI);
new HashMap();
}
-''',
- removeUnused: true);
+''', removeUnused: true);
}
test_remove_unusedImports2() async {
@@ -191,17 +175,14 @@ main() {
Future f;
}''');
// validate change
- _assertOrganize(
- r'''
+ _assertOrganize(r'''
import 'dart:async';
class A {}
main() {
Future f;
-}''',
- removeUnresolved: true,
- removeUnused: true);
+}''', removeUnresolved: true, removeUnused: true);
}
test_sort() async {

Powered by Google App Engine
This is Rietveld 408576698