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

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

Issue 3001963002: [dart:io] Namespaces for file IO (Closed)
Patch Set: Fuchsia fix Created 3 years, 4 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/namespace_impl.dart ('k') | tests/standalone/io/namespace_test.dart » ('j') | 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 c1934835abb74812235bcd4ba0d3881d1930f633..f5079f04b140bbb546120720ecb4e30b144d8732 100644
--- a/tests/standalone/io/directory_test.dart
+++ b/tests/standalone/io/directory_test.dart
@@ -372,6 +372,22 @@ class DirectoryTest {
}
}
+ static void testCreateTempRelative() {
+ String template = 'dart_relative_temp_dir';
+ Directory base = new Directory('tmp');
+ base.createSync();
+ Expect.isTrue(base.existsSync());
+ try {
+ Directory tmp = base.createTempSync(template);
+ Expect.isTrue(tmp.existsSync());
+ Directory tmpCurrent = Directory.current.createTempSync(template);
+ Expect.isTrue(tmpCurrent.existsSync());
+ tmpCurrent.deleteSync();
+ } finally {
+ base.deleteSync(recursive: true);
+ }
+ }
+
static void testCreateSystemTemp() {
String template = 'dart_system_temp_dir';
asyncStart();
@@ -444,6 +460,7 @@ class DirectoryTest {
testListBrokenLinkSync();
testListLinkSync();
testCreateTemp();
+ testCreateTempRelative();
testCreateSystemTemp();
testCreateDeleteTemp();
testCurrent();
« no previous file with comments | « sdk/lib/io/namespace_impl.dart ('k') | tests/standalone/io/namespace_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698