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

Unified Diff: tests/lib/async/schedule_microtask5_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/schedule_microtask5_test.dart
diff --git a/tests/lib/async/schedule_microtask5_test.dart b/tests/lib/async/schedule_microtask5_test.dart
index 8e068b4a082c9772824bf7405f66c6941b623f19..cdc6da8d69d00851097073689be4f928d84726d1 100644
--- a/tests/lib/async/schedule_microtask5_test.dart
+++ b/tests/lib/async/schedule_microtask5_test.dart
@@ -13,17 +13,17 @@ main() {
// Check that Timers don't run before the async callbacks.
bool timerCallbackExecuted = false;
- scheduleMicrotask(expectAsync0(() {
+ scheduleMicrotask(expectAsync(() {
Expect.isFalse(timerCallbackExecuted);
}));
- Timer.run(expectAsync0(() { timerCallbackExecuted = true; }));
+ Timer.run(expectAsync(() { timerCallbackExecuted = true; }));
- scheduleMicrotask(expectAsync0(() {
+ scheduleMicrotask(expectAsync(() {
Expect.isFalse(timerCallbackExecuted);
}));
- scheduleMicrotask(expectAsync0(() {
+ scheduleMicrotask(expectAsync(() {
// Busy loop.
var sum = 1;
var sw = new Stopwatch()..start();
@@ -31,12 +31,12 @@ main() {
sum++;
}
if (sum == 0) throw "bad"; // Just to use the result.
- scheduleMicrotask(expectAsync0(() {
+ scheduleMicrotask(expectAsync(() {
Expect.isFalse(timerCallbackExecuted);
}));
}));
- scheduleMicrotask(expectAsync0(() {
+ scheduleMicrotask(expectAsync(() {
Expect.isFalse(timerCallbackExecuted);
}));
});

Powered by Google App Engine
This is Rietveld 408576698