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

Unified Diff: utils/tests/pub/descriptor/tar.dart

Issue 13332009: Make listDir and createSymlink synchronous in pub. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review changes Created 7 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
« no previous file with comments | « utils/pub/validator/utf8_readme.dart ('k') | utils/tests/pub/io_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/tests/pub/descriptor/tar.dart
diff --git a/utils/tests/pub/descriptor/tar.dart b/utils/tests/pub/descriptor/tar.dart
index 18af2b38fdbf70351aa9704e4bd6ab7fc32c8d4e..88b0dc150d34741021232acb0ce44decbd2b9ac2 100644
--- a/utils/tests/pub/descriptor/tar.dart
+++ b/utils/tests/pub/descriptor/tar.dart
@@ -27,8 +27,9 @@ class TarFileDescriptor extends DirectoryDescriptor {
return Future.wait(contents.map((entry) {
return entry.create(tempDir);
})).then((_) {
- return listDir(tempDir, recursive: true, includeHiddenFiles: true);
- }).then((createdContents) {
+ var createdContents = listDir(tempDir,
+ recursive: true,
+ includeHiddenFiles: true);
return createTarGz(createdContents, baseDir: tempDir).toBytes();
}).then((bytes) {
var file = path.join(parent, name);
« no previous file with comments | « utils/pub/validator/utf8_readme.dart ('k') | utils/tests/pub/io_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698