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

Unified Diff: tests/html/url_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/html/url_test.dart
diff --git a/tests/html/url_test.dart b/tests/html/url_test.dart
index c9bd37442691224b084fa2b6cb990ab1f18df606..32143990fa481f43483d25b27bf09c8858430045 100644
--- a/tests/html/url_test.dart
+++ b/tests/html/url_test.dart
@@ -42,7 +42,7 @@ main() {
expect(url, startsWith('blob:'));
var img = new ImageElement();
- img.onLoad.listen(expectAsync1((_) {
+ img.onLoad.listen(expectAsync((_) {
expect(img.complete, true);
}));
img.onError.listen((_) {
@@ -61,7 +61,7 @@ main() {
var img = new ImageElement();
// Image should fail to load since the URL was revoked.
- img.onError.listen(expectAsync1((_) {
+ img.onError.listen(expectAsync((_) {
}));
img.onLoad.listen((_) {
guardAsync(() {

Powered by Google App Engine
This is Rietveld 408576698