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

Unified Diff: tests/corelib/futures_test.dart

Issue 11411242: Fix the Futures tests for dart2js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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: tests/corelib/futures_test.dart
diff --git a/tests/corelib/futures_test.dart b/tests/corelib/futures_test.dart
index c3f48fb2743c5e67c148191ba7f07d9ff6007bc0..70a54bfbb441970442a79bf2079eb1f80e411e9d 100644
--- a/tests/corelib/futures_test.dart
+++ b/tests/corelib/futures_test.dart
@@ -28,7 +28,9 @@ Future testCompleteBeforeWait() {
}
Future testForEachEmpty() {
- return Futures.forEach([], (_) => throw 'should not be called');
+ return Futures.forEach([], (_) {
+ throw 'should not be called';
+ });
}
Future testForEach() {
@@ -45,7 +47,9 @@ Future testForEachWithException() {
if (n == 4) throw 'correct exception';
seen.add(n);
return new Future.immediate(null);
- }).transform((_) => throw 'incorrect exception').transformException((e) {
+ }).transform((_) {
+ throw 'incorrect exception';
+ }).transformException((e) {
Expect.equals('correct exception', e);
});
}
« 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