Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(609)

Unified Diff: pkg/analysis_server/test/mock_sdk.dart

Issue 987663002: Fix for subscribing for notifications for files in packages. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698