| 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 void testEmptyListInputStream() { | 5 void testEmptyListInputStream() { |
| 6 InputStream stream = new ListInputStream([]); | 6 InputStream stream = new ListInputStream([]); |
| 7 ReceivePort donePort = new ReceivePort(); | 7 ReceivePort donePort = new ReceivePort(); |
| 8 | 8 |
| 9 void onData() { | 9 void onData() { |
| 10 throw "No data expected"; | 10 throw "No data expected"; |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 stream.closeHandler = onClose; | 165 stream.closeHandler = onClose; |
| 166 | 166 |
| 167 donePort.receive((x,y) => donePort.close()); | 167 donePort.receive((x,y) => donePort.close()); |
| 168 } | 168 } |
| 169 | 169 |
| 170 main() { | 170 main() { |
| 171 testEmptyListInputStream(); | 171 testEmptyListInputStream(); |
| 172 testEmptyDynamicListInputStream(); | 172 testEmptyDynamicListInputStream(); |
| 173 testListInputStream1(); | 173 testListInputStream1(); |
| 174 testListInputStream2(); | 174 testListInputStream2(); |
| 175 //testListInputStreamPipe1(); | 175 testListInputStreamPipe1(); |
| 176 //testListInputStreamPipe2(); | 176 testListInputStreamPipe2(); |
| 177 testDynamicListInputStream1(); | 177 testDynamicListInputStream1(); |
| 178 } | 178 } |
| OLD | NEW |