| Index: tests/standalone/io/directory_non_ascii_test.dart
|
| diff --git a/tests/standalone/io/directory_non_ascii_test.dart b/tests/standalone/io/directory_non_ascii_test.dart
|
| index 2a317e5daa49378408a59bf58d37bf08dc9d0c5a..c29e9cef4dc873c53a4b4b1830254870eae9c553 100644
|
| --- a/tests/standalone/io/directory_non_ascii_test.dart
|
| +++ b/tests/standalone/io/directory_non_ascii_test.dart
|
| @@ -9,12 +9,17 @@ main() {
|
| var port = new ReceivePort();
|
| Directory scriptDir = new File(new Options().script).directorySync();
|
| var d = new Directory("${scriptDir.path}/æøå");
|
| + // On MacOS you get the decomposed utf8 form of file and directory
|
| + // names from the system. Therefore, we have to check for both here.
|
| + var precomposed = 'æøå';
|
| + var decomposed = new String.fromCharCodes([47, 230, 248, 97, 778]);
|
| d.exists().then((e) {
|
| Expect.isTrue(e);
|
| d.create().then((_) {
|
| new Directory('').createTemp().then((temp) {
|
| new Directory("${temp.path}/æøå").createTemp().then((temp2) {
|
| - Expect.isTrue(temp2.path.contains("æøå"));
|
| + Expect.isTrue(temp2.path.contains(precomposed) ||
|
| + temp2.path.contains(decomposed));
|
| temp2.delete().then((_) {
|
| temp.delete(recursive: true).then((_) {
|
| port.close();
|
|
|