| 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"; | 7 import "package:expect/expect.dart"; |
| 8 import 'dart:async'; | 8 import 'dart:async'; |
| 9 import 'dart:collection'; | 9 import 'dart:collection'; |
| 10 import 'dart:io'; | 10 import 'dart:io'; |
| 11 import 'dart:isolate'; | 11 import 'dart:isolate'; |
| 12 | 12 |
| 13 class MyListOfOneElement extends Object with ListMixin { | 13 class MyListOfOneElement |
| 14 extends Object with ListMixin<int>, UnmodifiableListMixin { |
| 14 int _value; | 15 int _value; |
| 15 MyListOfOneElement(this._value); | 16 MyListOfOneElement(this._value); |
| 16 int get length => 1; | 17 int get length => 1; |
| 17 operator [](int index) => _value; | 18 operator [](int index) => _value; |
| 18 } | 19 } |
| 19 | 20 |
| 20 class FileTest { | 21 class FileTest { |
| 21 static Directory tempDirectory; | 22 static Directory tempDirectory; |
| 22 static int numLiveAsyncTests = 0; | 23 static int numLiveAsyncTests = 0; |
| 23 static ReceivePort port; | 24 static ReceivePort port; |
| (...skipping 1257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1281 testDirectorySync(); | 1282 testDirectorySync(); |
| 1282 testWriteStringUtf8(); | 1283 testWriteStringUtf8(); |
| 1283 testWriteStringUtf8Sync(); | 1284 testWriteStringUtf8Sync(); |
| 1284 }); | 1285 }); |
| 1285 } | 1286 } |
| 1286 } | 1287 } |
| 1287 | 1288 |
| 1288 main() { | 1289 main() { |
| 1289 FileTest.testMain(); | 1290 FileTest.testMain(); |
| 1290 } | 1291 } |
| OLD | NEW |