Skip to content

Commit 9a23f9a

Browse files
DanTupCommit Queue
authored andcommitted
[analysis_server] Update some tests to work with normalized line endings
See #60234 Change-Id: I50f7973bd0fd989cadfa221813b0ea9904a5c5fe Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/423802 Reviewed-by: Samuel Rawlins <[email protected]> Commit-Queue: Brian Wilkerson <[email protected]> Reviewed-by: Brian Wilkerson <[email protected]>
1 parent 7073a83 commit 9a23f9a

File tree

4 files changed

+136
-152
lines changed

4 files changed

+136
-152
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ class AbstractOutlineComputerTest extends AbstractContextTest {
2929
}
3030

3131
Future<Outline> _computeOutline(String code) async {
32-
testCode = code;
33-
newFile(testPath, code);
32+
testCode = normalizeSource(code);
33+
newFile(testPath, testCode);
3434
var resolveResult = await getResolvedUnit(testFile);
3535
return DartUnitOutlineComputer(
3636
resolveResult,
@@ -48,8 +48,6 @@ class FlutterOutlineComputerTest extends AbstractOutlineComputerTest {
4848
}
4949

5050
Future<void> test_columnWithChildren() async {
51-
useLineEndingsForPlatform = false;
52-
5351
var unitOutline = await _computeOutline('''
5452
import 'package:flutter/widgets.dart';
5553

0 commit comments

Comments
 (0)