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

Unified Diff: pkg/analysis_server/test/services/correction/util_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/util_test.dart
diff --git a/pkg/analysis_server/test/services/correction/util_test.dart b/pkg/analysis_server/test/services/correction/util_test.dart
index d698e07fa2c3d1c711fcc54ee5976e382ec37651..1589df0d629d27936c605db7a3558caf4eea710a 100644
--- a/pkg/analysis_server/test/services/correction/util_test.dart
+++ b/pkg/analysis_server/test/services/correction/util_test.dart
@@ -25,9 +25,7 @@ import 'dart:async';
import 'dart:math';
''');
Source newLibrary = _getDartSource('dart:collection');
- _assertAddLibraryImport(
- <Source>[newLibrary],
- '''
+ _assertAddLibraryImport(<Source>[newLibrary], '''
import 'dart:async';
import 'dart:collection';
import 'dart:math';
@@ -40,9 +38,7 @@ import 'dart:collection';
import 'dart:math';
''');
Source newLibrary = _getDartSource('dart:async');
- _assertAddLibraryImport(
- <Source>[newLibrary],
- '''
+ _assertAddLibraryImport(<Source>[newLibrary], '''
import 'dart:async';
import 'dart:collection';
import 'dart:math';
@@ -55,9 +51,7 @@ import 'dart:async';
import 'dart:collection';
''');
Source newLibrary = _getDartSource('dart:math');
- _assertAddLibraryImport(
- <Source>[newLibrary],
- '''
+ _assertAddLibraryImport(<Source>[newLibrary], '''
import 'dart:async';
import 'dart:collection';
import 'dart:math';
@@ -71,9 +65,7 @@ import 'dart:math';
''');
Source newLibrary1 = _getDartSource('dart:async');
Source newLibrary2 = _getDartSource('dart:html');
- _assertAddLibraryImport(
- <Source>[newLibrary1, newLibrary2],
- '''
+ _assertAddLibraryImport(<Source>[newLibrary1, newLibrary2], '''
import 'dart:async';
import 'dart:collection';
import 'dart:html';
@@ -88,9 +80,7 @@ import 'dart:math';
''');
Source newLibrary1 = _getDartSource('dart:async');
Source newLibrary2 = _getDartSource('dart:collection');
- _assertAddLibraryImport(
- <Source>[newLibrary1, newLibrary2],
- '''
+ _assertAddLibraryImport(<Source>[newLibrary1, newLibrary2], '''
import 'dart:async';
import 'dart:collection';
import 'dart:html';
@@ -105,9 +95,7 @@ import 'dart:collection';
''');
Source newLibrary1 = _getDartSource('dart:html');
Source newLibrary2 = _getDartSource('dart:math');
- _assertAddLibraryImport(
- <Source>[newLibrary1, newLibrary2],
- '''
+ _assertAddLibraryImport(<Source>[newLibrary1, newLibrary2], '''
import 'dart:async';
import 'dart:collection';
import 'dart:html';
@@ -123,9 +111,7 @@ class A {}
''');
Source newLibrary1 = _getDartSource('dart:math');
Source newLibrary2 = _getDartSource('dart:async');
- _assertAddLibraryImport(
- <Source>[newLibrary1, newLibrary2],
- '''
+ _assertAddLibraryImport(<Source>[newLibrary1, newLibrary2], '''
library test;
import 'dart:async';
@@ -143,9 +129,7 @@ class A {}
''');
Source newLibrary1 = _getDartSource('dart:math');
Source newLibrary2 = _getDartSource('dart:async');
- _assertAddLibraryImport(
- <Source>[newLibrary1, newLibrary2],
- '''
+ _assertAddLibraryImport(<Source>[newLibrary1, newLibrary2], '''
/// Comment.
import 'dart:async';
@@ -163,9 +147,7 @@ class A {}
''');
Source newLibrary1 = _getDartSource('dart:math');
Source newLibrary2 = _getDartSource('dart:async');
- _assertAddLibraryImport(
- <Source>[newLibrary1, newLibrary2],
- '''
+ _assertAddLibraryImport(<Source>[newLibrary1, newLibrary2], '''
#!/bin/dart
import 'dart:async';
@@ -181,9 +163,7 @@ class A {}
''');
Source newLibrary1 = _getDartSource('dart:math');
Source newLibrary2 = _getDartSource('dart:async');
- _assertAddLibraryImport(
- <Source>[newLibrary1, newLibrary2],
- '''
+ _assertAddLibraryImport(<Source>[newLibrary1, newLibrary2], '''
import 'dart:async';
import 'dart:math';
@@ -199,9 +179,7 @@ import 'dart:async';
import 'package:aaa/aaa.dart';
''');
Source newLibrary = _getSource('/lib/bbb.dart', 'package:bbb/bbb.dart');
- _assertAddLibraryImport(
- <Source>[newLibrary],
- '''
+ _assertAddLibraryImport(<Source>[newLibrary], '''
import 'dart:async';
import 'package:aaa/aaa.dart';
@@ -217,9 +195,7 @@ import 'dart:async';
import 'package:bbb/bbb.dart';
''');
Source newLibrary = _getSource('/lib/aaa.dart', 'package:aaa/aaa.dart');
- _assertAddLibraryImport(
- <Source>[newLibrary],
- '''
+ _assertAddLibraryImport(<Source>[newLibrary], '''
import 'dart:async';
import 'package:aaa/aaa.dart';
@@ -236,9 +212,7 @@ import 'package:ddd/ddd.dart';
''');
Source newLibrary1 = _getSource('/lib/bbb.dart', 'package:bbb/bbb.dart');
Source newLibrary2 = _getSource('/lib/ccc.dart', 'package:ccc/ccc.dart');
- _assertAddLibraryImport(
- <Source>[newLibrary1, newLibrary2],
- '''
+ _assertAddLibraryImport(<Source>[newLibrary1, newLibrary2], '''
import 'package:aaa/aaa.dart';
import 'package:bbb/bbb.dart';
import 'package:ccc/ccc.dart';

Powered by Google App Engine
This is Rietveld 408576698