Chromium Code Reviews| Index: pkg/barback/test/stream_pool_test.dart |
| diff --git a/pkg/barback/test/stream_pool_test.dart b/pkg/barback/test/stream_pool_test.dart |
| index d7013292cb42551de8a5467f5c47c6bfab2dfba5..2054a4cef29e1a425702947618bf805a198a436a 100644 |
| --- a/pkg/barback/test/stream_pool_test.dart |
| +++ b/pkg/barback/test/stream_pool_test.dart |
| @@ -50,9 +50,9 @@ main() { |
| controller1.add("fifth"); |
| expect(newFuture(() { |
| - return pool.stream.transform(new StreamTransformer( |
| + return pool.stream.transform(new StreamTransformer.fromHandlers( |
| handleData: (data, sink) => sink.add(["data", data]), |
| - handleError: (error, sink) => sink.add(["error", error]))).toList(); |
| + handleError: (e, st, sink) => sink.add(["error", e]))).toList(); |
|
nweiz
2013/10/07 20:29:20
Please use a full word rather than "st". Also belo
Bob Nystrom
2013/10/07 20:29:54
e -> error
st -> stackTrace
Here and below.
floitsch
2013/10/10 15:39:57
Done.
floitsch
2013/10/10 15:39:57
Done.
|
| }), completion(equals([ |
| ["data", "first"], |
| ["data", "second"], |
| @@ -111,9 +111,9 @@ main() { |
| controller2.addError("second"); |
| expect(newFuture(() { |
| - return pool.stream.transform(new StreamTransformer( |
| + return pool.stream.transform(new StreamTransformer.fromHandlers( |
| handleData: (data, sink) => sink.add(data), |
| - handleError: (error, sink) => sink.add(error))).toList(); |
| + handleError: (error, st, sink) => sink.add(error))).toList(); |
| }), completion(isEmpty)); |
| pumpEventQueue().then((_) => pool.close()); |