Skip to content

Commit a003351

Browse files
srawlinsCommit Queue
authored andcommitted
DAS: Remove unnecessary library directives in import_library tests
Change-Id: Ib82dd70742ac18ed21850d31e28eeb14a468b6b8 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/418401 Auto-Submit: Samuel Rawlins <[email protected]> Reviewed-by: Phil Quitslund <[email protected]> Commit-Queue: Phil Quitslund <[email protected]>
1 parent cbe2793 commit a003351

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

pkg/analysis_server/test/src/services/correction/fix/import_library_project_test.dart

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ void f() {
142142

143143
Future<void> test_withEnum_value() async {
144144
newFile('$testPackageLibPath/lib.dart', '''
145-
library lib;
146145
enum E { one, two }
147146
''');
148147
await resolveTestCode('''
@@ -275,7 +274,6 @@ void f() {
275274

276275
Future<void> test_withEnum_value() async {
277276
newFile('$testPackageLibPath/lib.dart', '''
278-
library lib;
279277
enum E { one, two }
280278
''');
281279
await resolveTestCode('''
@@ -957,7 +955,6 @@ void f() { new Foo(); }
957955

958956
Future<void> test_withClass_annotation() async {
959957
newFile('$testPackageLibPath/lib.dart', '''
960-
library lib;
961958
class Test {
962959
const Test(int p);
963960
}
@@ -1005,7 +1002,6 @@ void f() {
10051002
Future<void> test_withClass_commentReference() async {
10061003
createAnalysisOptionsFile(lints: [LintNames.comment_references]);
10071004
newFile('$testPackageLibPath/lib.dart', '''
1008-
library lib;
10091005
class Test {
10101006
const Test(int p);
10111007
}
@@ -1026,11 +1022,9 @@ void f() {
10261022

10271023
Future<void> test_withClass_hasOtherLibraryWithPrefix() async {
10281024
newFile('$testPackageLibPath/a.dart', '''
1029-
library a;
10301025
class One {}
10311026
''');
10321027
newFile('$testPackageLibPath/b.dart', '''
1033-
library b;
10341028
class One {}
10351029
class Two {}
10361030
''');
@@ -1054,7 +1048,6 @@ main () {
10541048
Future<void> test_withClass_inParentFolder() async {
10551049
testFilePath = convertPath('/home/test/bin/aaa/test.dart');
10561050
newFile('/home/test/bin/lib.dart', '''
1057-
library lib;
10581051
class Test {}
10591052
''');
10601053
await resolveTestCode('''
@@ -1076,7 +1069,6 @@ void f() {
10761069
Future<void> test_withClass_inRelativeFolder() async {
10771070
testFilePath = convertPath('/home/test/bin/test.dart');
10781071
newFile('/home/test/tool/sub/folder/lib.dart', '''
1079-
library lib;
10801072
class Test {}
10811073
''');
10821074
await resolveTestCode('''
@@ -1098,7 +1090,6 @@ void f() {
10981090
Future<void> test_withClass_inSameFolder() async {
10991091
testFilePath = convertPath('/home/test/bin/test.dart');
11001092
newFile('/home/test/bin/lib.dart', '''
1101-
library lib;
11021093
class Test {}
11031094
''');
11041095
await resolveTestCode('''
@@ -1396,7 +1387,6 @@ void f() {
13961387

13971388
Future<void> test_withClass_static_getter_annotation() async {
13981389
newFile('$testPackageLibPath/lib.dart', '''
1399-
library lib;
14001390
class Test {
14011391
const Test();
14021392
static const instance = Test();
@@ -1418,7 +1408,6 @@ void f() {
14181408

14191409
Future<void> test_withEnum_value() async {
14201410
newFile('$testPackageLibPath/lib.dart', '''
1421-
library lib;
14221411
enum E { one, two }
14231412
''');
14241413
await resolveTestCode('''
@@ -1463,7 +1452,6 @@ void f() {
14631452

14641453
Future<void> test_withFunction() async {
14651454
newFile('$testPackageLibPath/lib.dart', '''
1466-
library lib;
14671455
myFunction() {}
14681456
''');
14691457
await resolveTestCode('''
@@ -1518,7 +1506,6 @@ void f() {
15181506

15191507
Future<void> test_withFunction_identifier() async {
15201508
newFile('$testPackageLibPath/lib.dart', '''
1521-
library lib;
15221509
myFunction() {}
15231510
''');
15241511
await resolveTestCode('''
@@ -1550,7 +1537,6 @@ void f() {
15501537

15511538
Future<void> test_withFunction_unresolvedMethod() async {
15521539
newFile('$testPackageLibPath/lib.dart', '''
1553-
library lib;
15541540
myFunction() {}
15551541
''');
15561542
await resolveTestCode('''
@@ -1573,7 +1559,6 @@ class A {
15731559

15741560
Future<void> test_withFunctionTypeAlias() async {
15751561
newFile('$testPackageLibPath/lib.dart', '''
1576-
library lib;
15771562
typedef MyFunction();
15781563
''');
15791564
await resolveTestCode('''
@@ -1879,7 +1864,6 @@ void f() {
18791864

18801865
Future<void> test_withEnum_value() async {
18811866
newFile('$testPackageLibPath/lib.dart', '''
1882-
library lib;
18831867
enum E { one, two }
18841868
''');
18851869
await resolveTestCode('''

0 commit comments

Comments
 (0)