Skip to content

Commit dbf80ad

Browse files
DanTupCommit Queue
authored andcommitted
[analysis_server] Normalize EOLs in imported_elements_computer_test
This is the last test that opts out of normalization, but there's still some cleanup to do. See #60234 Change-Id: I292fb47dc697a1c19be2fa6817277a23321e8426 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/444120 Auto-Submit: Danny Tuppeny <[email protected]> Commit-Queue: Brian Wilkerson <[email protected]> Reviewed-by: Samuel Rawlins <[email protected]> Commit-Queue: Samuel Rawlins <[email protected]> Reviewed-by: Brian Wilkerson <[email protected]>
1 parent 53ba44f commit dbf80ad

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/analysis_server/test/src/computer/import_elements_computer_test.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ class ImportElementsComputerTest extends AbstractContextTest {
2727
late SourceFileEdit? sourceFileEdit;
2828

2929
void assertChanges(String expectedContent) {
30+
expectedContent = normalizeSource(expectedContent);
3031
var resultCode = SourceEdit.applySequence(
3132
originalContent,
3233
sourceFileEdit!.edits,
@@ -51,6 +52,7 @@ class ImportElementsComputerTest extends AbstractContextTest {
5152
}
5253

5354
Future<void> createBuilder(String content) async {
55+
content = normalizeSource(content);
5456
originalContent = content;
5557
var file = newFile(path, content);
5658
var result = await getResolvedUnit(file);
@@ -59,7 +61,6 @@ class ImportElementsComputerTest extends AbstractContextTest {
5961

6062
@override
6163
void setUp() {
62-
useLineEndingsForPlatform = false;
6364
super.setUp();
6465
path = convertPath('$testPackageLibPath/test.dart');
6566
}

0 commit comments

Comments
 (0)