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

Unified Diff: tests/standalone/io/file_system_watcher_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
« no previous file with comments | « tests/standalone/io/file_system_links_test.dart ('k') | tests/standalone/io/file_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/file_system_watcher_test.dart
diff --git a/tests/standalone/io/file_system_watcher_test.dart b/tests/standalone/io/file_system_watcher_test.dart
index 41f494894e21fc71109ed737b997bf0b22bb1af8..6b37799c307dbdc26fdee8f836c269714895c916 100644
--- a/tests/standalone/io/file_system_watcher_test.dart
+++ b/tests/standalone/io/file_system_watcher_test.dart
@@ -10,7 +10,7 @@ import "package:expect/expect.dart";
void testWatchCreateFile() {
- var dir = new Directory('').createTempSync();
+ var dir = Directory.systemTemp.createTempSync('dart_file_system_watcher');
var file = new File(dir.path + '/file');
var watcher = dir.watch();
@@ -34,7 +34,7 @@ void testWatchCreateFile() {
void testWatchModifyFile() {
- var dir = new Directory('').createTempSync();
+ var dir = Directory.systemTemp.createTempSync('dart_file_system_watcher');
var file = new File(dir.path + '/file');
file.createSync();
@@ -59,7 +59,7 @@ void testWatchModifyFile() {
void testWatchMoveFile() {
- var dir = new Directory('').createTempSync();
+ var dir = Directory.systemTemp.createTempSync('dart_file_system_watcher');
var file = new File(dir.path + '/file');
file.createSync();
@@ -87,7 +87,7 @@ void testWatchMoveFile() {
void testWatchDeleteFile() {
- var dir = new Directory('').createTempSync();
+ var dir = Directory.systemTemp.createTempSync('dart_file_system_watcher');
var file = new File(dir.path + '/file');
file.createSync();
@@ -112,7 +112,7 @@ void testWatchDeleteFile() {
void testWatchOnlyModifyFile() {
- var dir = new Directory('').createTempSync();
+ var dir = Directory.systemTemp.createTempSync('dart_file_system_watcher');
var file = new File(dir.path + '/file');
var watcher = dir.watch(events: FileSystemEvent.MODIFY);
@@ -136,7 +136,7 @@ void testWatchOnlyModifyFile() {
void testMultipleEvents() {
- var dir = new Directory('').createTempSync();
+ var dir = Directory.systemTemp.createTempSync('dart_file_system_watcher');
var file = new File(dir.path + '/file');
var file2 = new File(dir.path + '/file2');
@@ -181,7 +181,7 @@ void testMultipleEvents() {
void testWatchRecursive() {
- var dir = new Directory('').createTempSync();
+ var dir = Directory.systemTemp.createTempSync('dart_file_system_watcher');
if (Platform.isLinux) {
Expect.throws(() => dir.watch(recursive: true));
return;
@@ -210,7 +210,7 @@ void testWatchRecursive() {
void testWatchNonRecursive() {
- var dir = new Directory('').createTempSync();
+ var dir = Directory.systemTemp.createTempSync('dart_file_system_watcher');
var dir2 = new Directory(dir.path + '/dir');
dir2.createSync();
var file = new File(dir.path + '/dir/file');
« no previous file with comments | « tests/standalone/io/file_system_links_test.dart ('k') | tests/standalone/io/file_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698