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

Unified Diff: tests/standalone/io/windows_environment_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/windows_environment_test.dart
diff --git a/tests/standalone/io/windows_environment_test.dart b/tests/standalone/io/windows_environment_test.dart
index abbb350cb9c9555eb46b700a493e2b26e477b622..7df329464623f23ed0ab16bcc0bd75b39d8df266 100644
--- a/tests/standalone/io/windows_environment_test.dart
+++ b/tests/standalone/io/windows_environment_test.dart
@@ -8,10 +8,10 @@ import "dart:io";
main() {
if (Platform.operatingSystem != 'windows') return;
- var tempDir = new Directory('').createTempSync();
- var funkyDir = new Directory("${tempDir.path}/å");
+ var tempDir = Directory.systemTemp.createTempSync('dart_windows_environment');
+ var funkyDir = new Directory(join(tempDir.path, 'å'));
funkyDir.createSync();
- var funkyFile = new File('${funkyDir.path}/funky.bat');
+ var funkyFile = new File(join(funkyDir.path, 'funky.bat'));
funkyFile.writeAsStringSync("""
@echo off
set SCRIPTDIR=%~dp0
« no previous file with comments | « tests/standalone/io/test_extension_test.dart ('k') | tests/standalone/io/windows_file_system_async_links_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698