| 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 file I/O. | 5 // Dart test program for testing file I/O. |
| 6 | 6 |
| 7 #import("dart:io"); | 7 #import("dart:io"); |
| 8 #import("dart:isolate"); |
| 8 | 9 |
| 9 class MyListOfOneElement implements List { | 10 class MyListOfOneElement implements List { |
| 10 int _value; | 11 int _value; |
| 11 MyListOfOneElement(this._value); | 12 MyListOfOneElement(this._value); |
| 12 int get length() => 1; | 13 int get length() => 1; |
| 13 operator [](int index) => _value; | 14 operator [](int index) => _value; |
| 14 } | 15 } |
| 15 | 16 |
| 16 class FileTest { | 17 class FileTest { |
| 17 static Directory tempDirectory; | 18 static Directory tempDirectory; |
| (...skipping 1087 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1105 testWriteVariousLists(); | 1106 testWriteVariousLists(); |
| 1106 testDirectory(); | 1107 testDirectory(); |
| 1107 testDirectorySync(); | 1108 testDirectorySync(); |
| 1108 }); | 1109 }); |
| 1109 } | 1110 } |
| 1110 } | 1111 } |
| 1111 | 1112 |
| 1112 main() { | 1113 main() { |
| 1113 FileTest.testMain(); | 1114 FileTest.testMain(); |
| 1114 } | 1115 } |
| OLD | NEW |