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

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

Issue 25471003: Modify tests to use Directory.systemTemp (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase Created 7 years, 2 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/file_stat_test.dart
diff --git a/tests/standalone/io/file_stat_test.dart b/tests/standalone/io/file_stat_test.dart
index afd1b67a0adaf9b0f4c7e5e45985847338ab44eb..28fbcc386798a8a248d0255853f1155850e45bd3 100644
--- a/tests/standalone/io/file_stat_test.dart
+++ b/tests/standalone/io/file_stat_test.dart
@@ -12,7 +12,7 @@ import "package:expect/expect.dart";
import "package:path/path.dart";
void testStat() {
- Directory directory = new Directory("").createTempSync();
+ Directory directory = Directory.systemTemp.createTempSync('dart_file_stat');
File file = new File(join(directory.path, "file"));
Expect.throws(file.statSync);
Expect.throws(() => FileStat.statSync(file.path));
@@ -48,7 +48,7 @@ void testStat() {
Future testStatAsync() {
- return new Directory("").createTemp()
+ return Directory.systemTemp.createTemp('dart_file_stat')
.then((directory) {
File file = new File(join(directory.path, "file"));
return FileStat.stat(file.path)
« no previous file with comments | « tests/standalone/io/file_read_encoded_test.dart ('k') | tests/standalone/io/file_system_async_links_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698