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

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

Issue 218273002: Upgrading tests with unittest deprecations (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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_periodic4_test.dart
diff --git a/tests/lib/async/stream_periodic4_test.dart b/tests/lib/async/stream_periodic4_test.dart
index 779947bf4264461e950cc4b4ee571f3d5c8bf451..b311cd738fe403a3e833676ec2d22e30eeb84391 100644
--- a/tests/lib/async/stream_periodic4_test.dart
+++ b/tests/lib/async/stream_periodic4_test.dart
@@ -9,7 +9,7 @@ import "dart:async";
import '../../../pkg/unittest/lib/unittest.dart';
void runTest(period, maxElapsed, pauseDuration) {
- Function done = expectAsync0(() { });
+ Function done = expectAsync(() { });
Stopwatch watch = new Stopwatch()..start();
Stream stream = new Stream.periodic(period, (x) => x);

Powered by Google App Engine
This is Rietveld 408576698