| 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 import "dart:io"; | 5 import 'dart:async'; |
| 6 import "dart:isolate"; | 6 import 'dart:io'; |
| 7 import 'dart:isolate'; |
| 7 | 8 |
| 8 void testEmptyListOutputStream1() { | 9 void testEmptyListOutputStream1() { |
| 9 ListOutputStream stream = new ListOutputStream(); | 10 ListOutputStream stream = new ListOutputStream(); |
| 10 Expect.equals(null, stream.read()); | 11 Expect.equals(null, stream.read()); |
| 11 stream.close(); | 12 stream.close(); |
| 12 Expect.equals(null, stream.read()); | 13 Expect.equals(null, stream.read()); |
| 13 Expect.throws(() { stream.write([0]); }); | 14 Expect.throws(() { stream.write([0]); }); |
| 14 } | 15 } |
| 15 | 16 |
| 16 | 17 |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 | 164 |
| 164 main() { | 165 main() { |
| 165 testEmptyListOutputStream1(); | 166 testEmptyListOutputStream1(); |
| 166 testEmptyListOutputStream2(); | 167 testEmptyListOutputStream2(); |
| 167 testListOutputStream1(); | 168 testListOutputStream1(); |
| 168 testListOutputStream2(); | 169 testListOutputStream2(); |
| 169 testListOutputStream3(); | 170 testListOutputStream3(); |
| 170 testListOutputStream4(); | 171 testListOutputStream4(); |
| 171 testListOutputStream5(); | 172 testListOutputStream5(); |
| 172 } | 173 } |
| OLD | NEW |