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

Unified Diff: utils/tests/pub/test_pub.dart

Issue 11363249: Fix error reporting on invalid command line args. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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/tests/pub/pub_test.dart ('k') | utils/tests/pub/version_solver_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/tests/pub/test_pub.dart
diff --git a/utils/tests/pub/test_pub.dart b/utils/tests/pub/test_pub.dart
index 0c06a418f0ed72080d73016a656cb1116f330bf1..590c92b13798e8171ef8f29cdb6ef2737cebcd45 100644
--- a/utils/tests/pub/test_pub.dart
+++ b/utils/tests/pub/test_pub.dart
@@ -720,26 +720,26 @@ abstract class Descriptor {
* Creates the file or directory within [dir]. Returns a [Future] that is
* completed after the creation is done.
*/
- abstract Future create(dir);
+ Future create(dir);
/**
* Validates that this descriptor correctly matches the corresponding file
* system entry within [dir]. Returns a [Future] that completes to `null` if
* the entry is valid, or throws an error if it failed.
*/
- abstract Future validate(String dir);
+ Future validate(String dir);
/**
* Deletes the file or directory within [dir]. Returns a [Future] that is
* completed after the deletion is done.
*/
- abstract Future delete(String dir);
+ Future delete(String dir);
/**
* Loads the file at [path] from within this descriptor. If [path] is empty,
* loads the contents of the descriptor itself.
*/
- abstract InputStream load(List<String> path);
+ InputStream load(List<String> path);
/**
* Schedules the directory to be created before Pub is run with [runPub]. The
@@ -1159,7 +1159,7 @@ class TarFileDescriptor extends Descriptor {
var sourceStream = tar.openInputStream();
pipeInputToInput(sourceStream,
sinkStream,
- () => tempDir.delete(recursive: true));
+ () => tempDir.deleteRecursively());
});
return sinkStream;
}
« no previous file with comments | « utils/tests/pub/pub_test.dart ('k') | utils/tests/pub/version_solver_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698