OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 // | 4 // |
5 // Directory listing test. | 5 // Directory listing test. |
6 | 6 |
7 #import("dart:io"); | 7 #import("dart:io"); |
| 8 #import("dart:isolate"); |
8 | 9 |
9 class DirectoryTest { | 10 class DirectoryTest { |
10 static void testListing() { | 11 static void testListing() { |
11 bool listedDir = false; | 12 bool listedDir = false; |
12 bool listedFile = false; | 13 bool listedFile = false; |
13 | 14 |
14 Directory directory = new Directory(""); | 15 Directory directory = new Directory(""); |
15 directory.createTempSync(); | 16 directory.createTempSync(); |
16 Directory subDirectory = new Directory("${directory.path}/subdir"); | 17 Directory subDirectory = new Directory("${directory.path}/subdir"); |
17 Expect.isFalse(subDirectory.existsSync()); | 18 Expect.isFalse(subDirectory.existsSync()); |
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
474 dir.createTemp(); | 475 dir.createTemp(); |
475 } | 476 } |
476 | 477 |
477 | 478 |
478 main() { | 479 main() { |
479 DirectoryTest.testMain(); | 480 DirectoryTest.testMain(); |
480 NestedTempDirectoryTest.testMain(); | 481 NestedTempDirectoryTest.testMain(); |
481 testCreateTempErrorSync(); | 482 testCreateTempErrorSync(); |
482 testCreateTempError(); | 483 testCreateTempError(); |
483 } | 484 } |
OLD | NEW |