| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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"); |
| 6 |
| 5 void testEmptyListInputStream() { | 7 void testEmptyListInputStream() { |
| 6 InputStream stream = new ListInputStream([]); | 8 InputStream stream = new ListInputStream([]); |
| 7 ReceivePort donePort = new ReceivePort(); | 9 ReceivePort donePort = new ReceivePort(); |
| 8 | 10 |
| 9 void onData() { | 11 void onData() { |
| 10 throw "No data expected"; | 12 throw "No data expected"; |
| 11 } | 13 } |
| 12 | 14 |
| 13 void onClose() { | 15 void onClose() { |
| 14 donePort.toSendPort().send(null); | 16 donePort.toSendPort().send(null); |
| (...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 testListInputStream1(); | 265 testListInputStream1(); |
| 264 testListInputStream2(); | 266 testListInputStream2(); |
| 265 testListInputStreamPipe1(); | 267 testListInputStreamPipe1(); |
| 266 testListInputStreamPipe2(); | 268 testListInputStreamPipe2(); |
| 267 testListInputClose1(); | 269 testListInputClose1(); |
| 268 testListInputClose2(); | 270 testListInputClose2(); |
| 269 testDynamicListInputStream(); | 271 testDynamicListInputStream(); |
| 270 testDynamicListInputClose1(); | 272 testDynamicListInputClose1(); |
| 271 testDynamicListInputClose2(); | 273 testDynamicListInputClose2(); |
| 272 } | 274 } |
| OLD | NEW |