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

Unified Diff: tests/lib/async/event_helper.dart

Issue 14251006: Remove AsyncError with Expando. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: tests/lib/async/event_helper.dart
diff --git a/tests/lib/async/event_helper.dart b/tests/lib/async/event_helper.dart
index 0d6ef1aef2cb1c4d334cd7948e548ded8133cd75..eeafcc69ff92a516e458e8810ec4db40a27b5357 100644
--- a/tests/lib/async/event_helper.dart
+++ b/tests/lib/async/event_helper.dart
@@ -29,7 +29,7 @@ class DataEvent implements Event {
}
class ErrorEvent implements Event {
- final AsyncError error;
+ final error;
ErrorEvent(this.error);
@@ -40,10 +40,10 @@ class ErrorEvent implements Event {
bool operator==(Object other) {
if (other is! ErrorEvent) return false;
ErrorEvent otherEvent = other;
- return error.error == other.error.error;
+ return error == other.error;
}
- String toString() => "ErrorEvent: ${error.error}";
+ String toString() => "ErrorEvent: ${error}";
}
class DoneEvent implements Event {
@@ -77,7 +77,7 @@ class Events implements EventSink {
events.add(new DataEvent(value));
}
- void addError(AsyncError error) {
+ void addError(error) {
events.add(new ErrorEvent(error));
}
@@ -86,7 +86,7 @@ class Events implements EventSink {
}
// Error helper for creating errors manually..
- void error(var value) { addError(new AsyncError(value, null)); }
+ void error(var value) { addError(value); }
/** Replay the captured events on a sink. */
void replay(EventSink sink) {
@@ -146,7 +146,7 @@ class CaptureEvents extends Events {
cancelOnError: cancelOnError);
}
- void addError(AsyncError error) {
+ void addError(error) {
super.addError(error);
if (cancelOnError) onDoneSignal.complete(null);
}
« no previous file with comments | « tests/isolate/global_error_handler_stream2_test.dart ('k') | tests/lib/async/future_delayed_error_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698