| 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 @@
|
| +æøå
|
|
|