File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
pkg/analysis_server/test/src/computer Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments