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

Unified Diff: sdk/lib/_internal/pub/test/test_pub.dart

Issue 896623005: Use native async/await support in pub. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review changes Created 5 years, 10 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
« no previous file with comments | « sdk/lib/_internal/pub/test/async_compile_test.dart ('k') | sdk/lib/_internal/pub_generated/README.md » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/pub/test/test_pub.dart
diff --git a/sdk/lib/_internal/pub/test/test_pub.dart b/sdk/lib/_internal/pub/test/test_pub.dart
index 4b6afb3408f609d2bcc10b76a04768b1eed85dc6..cb555a085dcc4f7dd484efd02c065b5c66f84928 100644
--- a/sdk/lib/_internal/pub/test/test_pub.dart
+++ b/sdk/lib/_internal/pub/test/test_pub.dart
@@ -809,16 +809,8 @@ Map packageMap(String name, String version, [Map dependencies]) {
}
/// Resolves [target] relative to the path to pub's `test/asset` directory.
-String testAssetPath(String target) {
- var libPath = libraryPath('test_pub');
-
- // We are running from the generated directory, but non-dart assets are only
- // in the canonical directory.
- // TODO(rnystrom): Remove this when #104 is fixed.
- libPath = libPath.replaceAll('pub_generated', 'pub');
-
- return p.join(p.dirname(libPath), 'asset', target);
-}
+String testAssetPath(String target) =>
+ p.join(p.dirname(libraryPath('test_pub')), 'asset', target);
/// Returns a Map in the format used by the pub.dartlang.org API to represent a
/// package version.
« no previous file with comments | « sdk/lib/_internal/pub/test/async_compile_test.dart ('k') | sdk/lib/_internal/pub_generated/README.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698