Fix FixesTest on Windows

Bug: https://github.com/dart-lang/sdk/issues/32226
Change-Id: I010b2365ffc2a3ab2a9daa6cec71067ce32a2f76
Reviewed-on: https://dart-review.googlesource.com/43663
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
This commit is contained in:
Danny Tuppeny 2018-02-26 15:37:47 +00:00 committed by commit-bot@chromium.org
parent e9527bed5e
commit 0c62908b40

View file

@ -110,10 +110,12 @@ print(1)
}
test_suggestImportFromDifferentAnalysisRoot() async {
String asFileUri(String input) =>
new Uri.file(convertPath(input)).toString();
newFolder('/aaa');
newFile('/aaa/.packages', content: '''
aaa:${resourceProvider.convertPath('/aaa/lib')}
bbb:${resourceProvider.convertPath('/bbb/lib')}
aaa:${asFileUri('/aaa/lib')}
bbb:${asFileUri('/bbb/lib')}
''');
// Ensure that the target is analyzed as an implicit source.
newFile('/aaa/lib/foo.dart', content: 'import "package:bbb/target.dart";');
@ -122,7 +124,8 @@ bbb:${resourceProvider.convertPath('/bbb/lib')}
newFile('/bbb/lib/target.dart', content: 'class Foo() {}');
handleSuccessfulRequest(
new AnalysisSetAnalysisRootsParams(['/aaa', '/bbb'], []).toRequest('0'),
new AnalysisSetAnalysisRootsParams(
[convertPath('/aaa'), convertPath('/bbb')], []).toRequest('0'),
handler: analysisHandler);
// Configure the test file.