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

Unified Diff: pkg/unittest/test/unittest_test_returning_future_test.dart

Issue 187653007: Revert https://code.google.com/p/dart/source/detail?r=33346 (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 10 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: pkg/unittest/test/unittest_test_returning_future_test.dart
===================================================================
--- pkg/unittest/test/unittest_test_returning_future_test.dart (revision 33351)
+++ pkg/unittest/test/unittest_test_returning_future_test.dart (working copy)
@@ -21,8 +21,8 @@
// I had a situation where either worked fine on their own, and
// error/fail worked, but fail/error would time out.
test("error1", () {
- var callback = expectAsync(() {});
- var excesscallback = expectAsync(() {});
+ var callback = expectAsync0((){});
+ var excesscallback = expectAsync0((){});
return _defer(() {
excesscallback();
excesscallback();
@@ -36,8 +36,8 @@
});
});
test("error2", () {
- var callback = expectAsync(() {});
- var excesscallback = expectAsync(() {});
+ var callback = expectAsync0((){});
+ var excesscallback = expectAsync0((){});
return _defer(() {
excesscallback();
excesscallback();

Powered by Google App Engine
This is Rietveld 408576698