| 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 // Dart test program for testing error handling in directory I/O. | 5 // Dart test program for testing error handling in directory I/O. |
| 6 | 6 |
| 7 import "package:expect/expect.dart"; | |
| 8 import "dart:async"; | 7 import "dart:async"; |
| 9 import "dart:io"; | 8 import "dart:io"; |
| 10 import "dart:isolate"; | 9 import "dart:isolate"; |
| 11 | 10 |
| 12 Directory tempDir() { | 11 Directory tempDir() { |
| 13 return new Directory('').createTempSync(); | 12 return new Directory('').createTempSync(); |
| 14 } | 13 } |
| 15 | 14 |
| 16 | 15 |
| 17 bool checkCreateInNonExistentFileException(e) { | 16 bool checkCreateInNonExistentFileException(e) { |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 main() { | 218 main() { |
| 220 runTest(testCreateInNonExistent); | 219 runTest(testCreateInNonExistent); |
| 221 runTest(testCreateTempInNonExistent); | 220 runTest(testCreateTempInNonExistent); |
| 222 runTest(testDeleteNonExistent); | 221 runTest(testDeleteNonExistent); |
| 223 runTest(testDeleteRecursivelyNonExistent); | 222 runTest(testDeleteRecursivelyNonExistent); |
| 224 runTest(testListNonExistent); | 223 runTest(testListNonExistent); |
| 225 runTest(testRenameNonExistent); | 224 runTest(testRenameNonExistent); |
| 226 runTest(testRenameFileAsDirectory); | 225 runTest(testRenameFileAsDirectory); |
| 227 runTest(testRenameOverwriteFile); | 226 runTest(testRenameOverwriteFile); |
| 228 } | 227 } |
| OLD | NEW |