Attempt to fix DartEditBuilderImplTest on Windows.

TBR

R=brianwilkerson@google.com
BUG=

Review-Url: https://codereview.chromium.org/2958803003 .
This commit is contained in:
Konstantin Shcheglov 2017-06-26 14:39:38 -07:00
parent 93ab0f107e
commit 9775892109

View file

@ -1365,7 +1365,8 @@ f(int i, String s) {
DartChangeBuilderImpl builder = new DartChangeBuilderImpl(driver);
await builder.addFileEdit(path, 1, (DartFileEditBuilder builder) {
Iterable<_MockSource> sources = newUris.map((newUri) {
String path = newUri.contains(':') ? null : '/$newUri';
String path =
newUri.contains(':') ? null : provider.convertPath('/$newUri');
return new _MockSource(path, Uri.parse(newUri));
});
builder.importLibraries(sources);