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

Unified Diff: tests/standalone/io/process_non_ascii_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/io/file_non_ascii_test.dart ('k') | tests/standalone/standalone.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/io/process_non_ascii_test.dart
diff --git a/tests/standalone/io/process_non_ascii_test.dart b/tests/standalone/io/process_non_ascii_test.dart
new file mode 100644
index 0000000000000000000000000000000000000000..5ea4e3c1b0ab003e47c75633cab14b446de22da0
--- /dev/null
+++ b/tests/standalone/io/process_non_ascii_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() {
+ var scriptDir = new File(new Options().script).directorySync();
+ var executable = new File(new Options().executable).fullPathSync();
+ var options = new ProcessOptions();
+ options.workingDirectory = "${scriptDir.path}/æøå";
+ var script = "${scriptDir.path}/æøå.dart";
+ print(options.workingDirectory);
+ Process.run(executable, [script], options).then((result) {
+ Expect.equals(0, result.exitCode);
+ });
+}
diff --git a/tests/language/function_getter_test.dart "b/tests/standalone/io/\303\246\303\270\303\245.dart"
similarity index 72%
copy from tests/language/function_getter_test.dart
copy to "tests/standalone/io/\303\246\303\270\303\245.dart"
index d927a045fcf7b1bb511d51e161bb1331916a2e46..abf731c1678f469eecbf8a4130aea6348aba9dab 100644
--- a/tests/language/function_getter_test.dart
+++ "b/tests/standalone/io/\303\246\303\270\303\245.dart"
@@ -2,10 +2,8 @@
// 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.
-class A {
- a() => 42;
-}
+import 'dart:io';
main() {
- Expect.equals(new A().a(), (new A().a)());
+ Expect.equals('æøå', new File('æøå.dat').readAsTextSync());
}
diff --git "a/tests/standalone/io/\303\246\303\270\303\245/\303\246\303\270\303\245.dat" "b/tests/standalone/io/\303\246\303\270\303\245/\303\246\303\270\303\245.dat"
new file mode 100644
index 0000000000000000000000000000000000000000..5a9c6c8500db78700d651360f18dec88dc2fb642
--- /dev/null
+++ "b/tests/standalone/io/\303\246\303\270\303\245/\303\246\303\270\303\245.dat"
@@ -0,0 +1 @@
+æøå
« no previous file with comments | « tests/standalone/io/file_non_ascii_test.dart ('k') | tests/standalone/standalone.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698