Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(493)

Side by Side Diff: tests/standalone/src/ListInputStreamTest.dart

Issue 9021008: Fix list output stream (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/bin/list_stream.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « runtime/bin/list_stream.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698