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

Unified Diff: tests/standalone/io/directory_list_nonexistent_test.dart

Issue 25471003: Modify tests to use Directory.systemTemp (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 3 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: tests/standalone/io/directory_list_nonexistent_test.dart
diff --git a/tests/standalone/io/directory_list_nonexistent_test.dart b/tests/standalone/io/directory_list_nonexistent_test.dart
index 387f68227de9c6d680cb69b88d5453da73c15f82..5ef0724020c445bfcd09ef0b39ec840996b7aaff 100644
--- a/tests/standalone/io/directory_list_nonexistent_test.dart
+++ b/tests/standalone/io/directory_list_nonexistent_test.dart
@@ -14,7 +14,7 @@ import "package:expect/expect.dart";
void testListNonExistent() {
asyncStart();
- new Directory("").createTemp().then((d) {
+ Directory.createSystemTemp('dart_directory_list_nonexistent').then((d) {
d.delete().then((ignore) {
Expect.throws(() => d.listSync(), (e) => e is DirectoryException);
Expect.throws(() => d.listSync(recursive: true),
@@ -26,7 +26,7 @@ void testListNonExistent() {
void testListTooLongName() {
asyncStart();
- new Directory("").createTemp().then((d) {
+ Directory.createSystemTemp('dart_directory_list_nonexistent').then((d) {
var subDirName = 'subdir';
var subDir = new Directory("${d.path}/$subDirName");
subDir.create().then((ignore) {

Powered by Google App Engine
This is Rietveld 408576698