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

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

Issue 11275281: Update dart:io to convert strings between UTF8 and current code page (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments Created 8 years, 1 month 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/float_array_test.dart ('k') | tests/standalone/io/directory_non_ascii_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/directory_non_ascii_sync_test.dart
diff --git a/tests/standalone/io/directory_non_ascii_sync_test.dart b/tests/standalone/io/directory_non_ascii_sync_test.dart
new file mode 100644
index 0000000000000000000000000000000000000000..cdce67a61bf0457403e9e6cc05d480986672eff9
--- /dev/null
+++ b/tests/standalone/io/directory_non_ascii_sync_test.dart
@@ -0,0 +1,17 @@
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+import 'dart:io';
+
+main() {
+ Directory scriptDir = new File(new Options().script).directorySync();
+ var d = new Directory("${scriptDir.path}/æøå");
+ Expect.isTrue(d.existsSync());
+ d.createSync();
+ var temp = new Directory('').createTempSync();
+ var temp2 = new Directory("${temp.path}/æøå").createTempSync();
+ Expect.isTrue(temp2.path.contains("æøå"));
+ temp2.deleteSync();
+ temp.deleteSync(recursive: true);
+}
« no previous file with comments | « tests/standalone/float_array_test.dart ('k') | tests/standalone/io/directory_non_ascii_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698