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

Unified Diff: pkg/analysis_server/test/services/completion/dart/library_member_contributor_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/completion/dart/library_member_contributor_test.dart
diff --git a/pkg/analysis_server/test/services/completion/dart/library_member_contributor_test.dart b/pkg/analysis_server/test/services/completion/dart/library_member_contributor_test.dart
index 7491a8e4710d690a708ecebb667692939ee53602..2c49eca8a03f91319eae9ea3dc35f9b3d589ff0c 100644
--- a/pkg/analysis_server/test/services/completion/dart/library_member_contributor_test.dart
+++ b/pkg/analysis_server/test/services/completion/dart/library_member_contributor_test.dart
@@ -88,9 +88,7 @@ class LibraryMemberContributorTest extends DartCompletionContributorTest {
test_libraryPrefix_deferred_inPart() async {
// SimpleIdentifier PrefixedIdentifier ExpressionStatement
var libFile = '${testFile.substring(0, testFile.length - 5)}A.dart';
- addSource(
- libFile,
- '''
+ addSource(libFile, '''
library testA;
import "dart:async" deferred as bar;
part "$testFile";''');
@@ -105,9 +103,7 @@ class LibraryMemberContributorTest extends DartCompletionContributorTest {
test_libraryPrefix_with_exports() async {
addSource('/libA.dart', 'library libA; class A { }');
- addSource(
- '/libB.dart',
- '''
+ addSource('/libB.dart', '''
library libB;
export "/libA.dart";
class B { }
@@ -122,9 +118,7 @@ class LibraryMemberContributorTest extends DartCompletionContributorTest {
test_PrefixedIdentifier_library() async {
// SimpleIdentifier PrefixedIdentifier ExpressionStatement
- addSource(
- '/testB.dart',
- '''
+ addSource('/testB.dart', '''
lib B;
var T1;
class X { }
@@ -150,16 +144,12 @@ class LibraryMemberContributorTest extends DartCompletionContributorTest {
test_PrefixedIdentifier_library_inPart() async {
// SimpleIdentifier PrefixedIdentifier ExpressionStatement
var libFile = '${testFile.substring(0, testFile.length - 5)}A.dart';
- addSource(
- '/testB.dart',
- '''
+ addSource('/testB.dart', '''
lib B;
var T1;
class X { }
class Y { }''');
- addSource(
- libFile,
- '''
+ addSource(libFile, '''
library testA;
import "/testB.dart" as b;
part "$testFile";
@@ -185,9 +175,7 @@ class LibraryMemberContributorTest extends DartCompletionContributorTest {
test_PrefixedIdentifier_library_typesOnly() async {
// SimpleIdentifier PrefixedIdentifier TypeName
- addSource(
- '/testB.dart',
- '''
+ addSource('/testB.dart', '''
lib B;
var T1;
class X { }
@@ -212,9 +200,7 @@ class LibraryMemberContributorTest extends DartCompletionContributorTest {
test_PrefixedIdentifier_library_typesOnly2() async {
// SimpleIdentifier PrefixedIdentifier TypeName
- addSource(
- '/testB.dart',
- '''
+ addSource('/testB.dart', '''
lib B;
var T1;
class X { }
@@ -239,9 +225,7 @@ class LibraryMemberContributorTest extends DartCompletionContributorTest {
test_PrefixedIdentifier_parameter() async {
// SimpleIdentifier PrefixedIdentifier ExpressionStatement
- addSource(
- '/testB.dart',
- '''
+ addSource('/testB.dart', '''
lib B;
class _W {M y; var _z;}
class X extends _W {}
@@ -255,9 +239,7 @@ class LibraryMemberContributorTest extends DartCompletionContributorTest {
test_PrefixedIdentifier_prefix() async {
// SimpleIdentifier PrefixedIdentifier ExpressionStatement
- addSource(
- '/testA.dart',
- '''
+ addSource('/testA.dart', '''
class A {static int bar = 10;}
_B() {}''');
addTestSource('''

Powered by Google App Engine
This is Rietveld 408576698