Index: tests/lib/async/stream_event_transform_test.dart |
diff --git a/tests/lib/async/stream_event_transform_test.dart b/tests/lib/async/stream_event_transform_test.dart |
index 78c79cdcab98e9cfa00e3e7a01053651879f0a5d..87f114c8a43348dd06a8a738702535418d998f95 100644 |
--- a/tests/lib/async/stream_event_transform_test.dart |
+++ b/tests/lib/async/stream_event_transform_test.dart |
@@ -10,15 +10,15 @@ import '../../../pkg/unittest/lib/unittest.dart'; |
import 'event_helper.dart'; |
void handleData(int data, EventSink<int> sink) { |
- sink.addError(new AsyncError("$data")); |
+ sink.addError("$data"); |
sink.add(data + 1); |
} |
-void handleError(AsyncError e, EventSink<int> sink) { |
- String value = e.error; |
+void handleError(error, EventSink<int> sink) { |
+ String value = error; |
int data = int.parse(value); |
sink.add(data); |
- sink.addError(new AsyncError("${data + 1}")); |
+ sink.addError("${data + 1}"); |
} |
void handleDone(EventSink<int> sink) { |
@@ -28,15 +28,14 @@ void handleDone(EventSink<int> sink) { |
class EventTransformer extends StreamEventTransformer<int,int> { |
void handleData(int data, EventSink<int> sink) { |
- sink.addError(new AsyncError("$data")); |
+ sink.addError("$data"); |
sink.add(data + 1); |
} |
- void handleError(AsyncError e, EventSink<int> sink) { |
- String value = e.error; |
+ void handleError(String value, EventSink<int> sink) { |
int data = int.parse(value); |
sink.add(data); |
- sink.addError(new AsyncError("${data + 1}")); |
+ sink.addError("${data + 1}"); |
} |
void handleDone(EventSink<int> sink) { |