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

Unified Diff: tests/isolate/mint_maker_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/isolate/mint_maker_test.dart
diff --git a/tests/isolate/mint_maker_test.dart b/tests/isolate/mint_maker_test.dart
index 60b430ffc53efdee607a88386c84ddfa52fd1580..fa200fcfd9541eb7b165a171a513897e9578c13d 100644
--- a/tests/isolate/mint_maker_test.dart
+++ b/tests/isolate/mint_maker_test.dart
@@ -150,7 +150,7 @@ class MintMakerWrapper {
}
_checkBalance(PurseWrapper wrapper, expected) {
- wrapper.queryBalance(expectAsync1((int balance) {
+ wrapper.queryBalance(expectAsync((int balance) {
expect(balance, equals(expected));
}));
}
@@ -158,11 +158,11 @@ _checkBalance(PurseWrapper wrapper, expected) {
void main([args, port]) {
if (testRemote(main, port)) return;
test("creating purse, deposit, and query balance", () {
- MintMakerWrapper.create().then(expectAsync1((mintMaker) {
- mintMaker.makeMint(expectAsync1((MintWrapper mint) {
- mint.createPurse(100, expectAsync1((PurseWrapper purse) {
+ MintMakerWrapper.create().then(expectAsync((mintMaker) {
+ mintMaker.makeMint(expectAsync((MintWrapper mint) {
+ mint.createPurse(100, expectAsync((PurseWrapper purse) {
_checkBalance(purse, 100);
- purse.sproutPurse(expectAsync1((PurseWrapper sprouted) {
+ purse.sproutPurse(expectAsync((PurseWrapper sprouted) {
_checkBalance(sprouted, 0);
_checkBalance(purse, 100);

Powered by Google App Engine
This is Rietveld 408576698