OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 "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 class MyListOfOneElement implements List { | 11 class MyListOfOneElement implements List { |
13 int _value; | 12 int _value; |
14 MyListOfOneElement(this._value); | 13 MyListOfOneElement(this._value); |
15 int get length => 1; | 14 int get length => 1; |
16 operator [](int index) => _value; | 15 operator [](int index) => _value; |
17 } | 16 } |
(...skipping 1219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1237 testDirectorySync(); | 1236 testDirectorySync(); |
1238 testWriteStringUtf8(); | 1237 testWriteStringUtf8(); |
1239 testWriteStringUtf8Sync(); | 1238 testWriteStringUtf8Sync(); |
1240 }); | 1239 }); |
1241 } | 1240 } |
1242 } | 1241 } |
1243 | 1242 |
1244 main() { | 1243 main() { |
1245 FileTest.testMain(); | 1244 FileTest.testMain(); |
1246 } | 1245 } |
OLD | NEW |