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

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: 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
« no previous file with comments | « tests/lib/async/stream_single_test.dart ('k') | tests/lib/async/stream_subscription_as_future_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 798e819660e3347a4a9171af6a374cb246936ceb..6cfea25568c73102acefc47b6c5ac76038747cd2 100644
--- a/tests/lib/async/stream_state_helper.dart
+++ b/tests/lib/async/stream_state_helper.dart
@@ -77,11 +77,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}]");
}
});
}
@@ -194,7 +194,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;
@@ -237,7 +237,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]";
}
@@ -274,8 +274,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() {
« no previous file with comments | « tests/lib/async/stream_single_test.dart ('k') | tests/lib/async/stream_subscription_as_future_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698