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

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

Issue 14251006: Remove AsyncError with Expando. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebuild DOM and rebase. 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/stream_state_helper.dart
diff --git a/tests/lib/async/stream_state_helper.dart b/tests/lib/async/stream_state_helper.dart
index b982d9d23be4e82fd13fec277e913907f31fbeac..57288e89345042fe19d2ed95e813ce97be518d3a 100644
--- a/tests/lib/async/stream_state_helper.dart
+++ b/tests/lib/async/stream_state_helper.dart
@@ -73,11 +73,11 @@ class StreamProtocolTest {
});
}
- void _onError(AsyncError error) {
+ void _onError(error) {
_withNextExpectation((Event expect) {
if (!expect.matchError(error)) {
_fail("Expected: $expect\n"
- "Found : [Data: ${error.error}]");
+ "Found : [Data: ${error}]");
}
});
}
@@ -190,7 +190,7 @@ class Event {
if (_action != null) _action();
return true;
}
- bool matchError(AsyncError e) {
+ bool matchError(e) {
if (!_testError(e)) return false;
if (_action != null) _action();
return true;
@@ -233,7 +233,7 @@ class DataEvent extends Event {
class ErrorEvent extends Event {
final error;
ErrorEvent(this.error, void action()) : super(action);
- bool _testError(AsyncError error) => this.error == error.error;
+ bool _testError(error) => this.error == error;
String toString() => "[Error: $error]";
}
@@ -270,8 +270,8 @@ class LogAnyEvent extends Event {
_actual = "*[Data $data]";
return true;
}
- bool _testError(AsyncError error) {
- _actual = "*[Error ${error.error}]";
+ bool _testError(error) {
+ _actual = "*[Error ${error}]";
return true;
}
bool _testDone() {

Powered by Google App Engine
This is Rietveld 408576698