| 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 "package:expect/expect.dart"; |
| 7 import "dart:io"; | 8 import "dart:io"; |
| 8 import "dart:isolate"; | 9 import "dart:isolate"; |
| 9 | 10 |
| 10 class DirectoryTest { | 11 class DirectoryTest { |
| 11 static void testListing() { | 12 static void testListing() { |
| 12 bool listedDir = false; | 13 bool listedDir = false; |
| 13 bool listedFile = false; | 14 bool listedFile = false; |
| 14 | 15 |
| 15 Directory directory = new Directory("").createTempSync(); | 16 Directory directory = new Directory("").createTempSync(); |
| 16 Directory subDirectory = new Directory("${directory.path}/subdir"); | 17 Directory subDirectory = new Directory("${directory.path}/subdir"); |
| (...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 611 testCreateTempErrorSync(); | 612 testCreateTempErrorSync(); |
| 612 testCreateTempError(); | 613 testCreateTempError(); |
| 613 testCreateExistingSync(); | 614 testCreateExistingSync(); |
| 614 testCreateExisting(); | 615 testCreateExisting(); |
| 615 testCreateDirExistingFileSync(); | 616 testCreateDirExistingFileSync(); |
| 616 testCreateDirExistingFile(); | 617 testCreateDirExistingFile(); |
| 617 testCreateRecursive(); | 618 testCreateRecursive(); |
| 618 testCreateRecursiveSync(); | 619 testCreateRecursiveSync(); |
| 619 testRename(); | 620 testRename(); |
| 620 } | 621 } |
| OLD | NEW |