Chromium Code Reviews| Index: pkg/analysis_server/test/mock_sdk.dart |
| diff --git a/pkg/analysis_server/test/mock_sdk.dart b/pkg/analysis_server/test/mock_sdk.dart |
| index 19679949589216055fef65a1841630243843d109..504ecd97cba53fe4733a692b61b3ea532f8cc2d8 100644 |
| --- a/pkg/analysis_server/test/mock_sdk.dart |
| +++ b/pkg/analysis_server/test/mock_sdk.dart |
| @@ -223,10 +223,9 @@ class HtmlElement {} |
| for (SdkLibrary library in LIBRARIES) { |
| String libraryPath = library.path; |
| if (filePath.replaceAll('\\', '/') == libraryPath) { |
| - String path = library.shortName; |
| try { |
| resource.File file = provider.getResource(uri.path); |
| - Uri dartUri = new Uri(scheme: 'dart', path: path); |
| + Uri dartUri = Uri.parse(library.shortName); |
|
Brian Wilkerson
2015/03/06 15:04:27
I would have expected, based on the old code, that
scheglov
2015/03/06 21:47:03
The comment in SdkLibrary says:
/**
* Return
Paul Berry
2015/03/06 22:04:45
I think Konstantin's analysis is correct. However
|
| return file.createSource(dartUri); |
| } catch (exception) { |
| return null; |