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

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

Issue 25279003: dart:io | Add Directory.CreateSystemTemp(template) and change Directory.CreateTemp(template). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add check of "TMP" environment variable if "TMPDIR" is missing. 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
« no previous file with comments | « sdk/lib/io/io_service.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/directory_test.dart
diff --git a/tests/standalone/io/directory_test.dart b/tests/standalone/io/directory_test.dart
index aaedf1cb73970c4a90b890f3938afd432f4ea6b4..ea1e21c1f0529d72bdd578b42fc46d92bf8d9f3e 100644
--- a/tests/standalone/io/directory_test.dart
+++ b/tests/standalone/io/directory_test.dart
@@ -452,9 +452,8 @@ class NestedTempDirectoryTest {
var os = Platform.operatingSystem;
if (os == "windows") nestingDepth = 2;
if (createdDirectories.length < nestingDepth) {
- temp = new Directory(
- '${temp.path}/nested_temp_dir_${createdDirectories.length}_');
- temp.createTemp().then(createPhaseCallback);
+ temp.createTemp('nested_temp_dir_${createdDirectories.length}_')
+ .then(createPhaseCallback);
} else {
deletePhaseCallback();
}
« no previous file with comments | « sdk/lib/io/io_service.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698