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

Unified Diff: sdk/lib/_internal/pub/test/error_group_test.dart

Issue 16950010: Address comment from CL 14993002. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/pub/test/error_group_test.dart
diff --git a/sdk/lib/_internal/pub/test/error_group_test.dart b/sdk/lib/_internal/pub/test/error_group_test.dart
index 7cad9be8904f65bd223608688671e25bb1a522a7..8fbd0320c2a9335e53d259c534bd26b5f422239b 100644
--- a/sdk/lib/_internal/pub/test/error_group_test.dart
+++ b/sdk/lib/_internal/pub/test/error_group_test.dart
@@ -64,13 +64,13 @@ main() {
"been called", () {
completer.complete('value');
- completer.future.then(expectAsync1((_) {
- expect(() => errorGroup.registerFuture(new Future.value()),
+ expect(completer.future
+ .then((_) => errorGroup.registerFuture(new Future.value())),
+ throwsStateError);
+ expect(completer.future
+ .then((_) => errorGroup.registerStream(
+ new StreamController(sync: true).stream)),
throwsStateError);
- expect(() => errorGroup.registerStream(
- new StreamController(sync: true).stream),
- throwsStateError);
- }));
});
test('should pass through an exception from the future if it has a '
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698