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

Unified Diff: tests/html/url_test.dart

Issue 226903002: tests/html: removed usage of deprecated unittest features (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
« no previous file with comments | « tests/html/postmessage_structured_test.dart ('k') | tests/html/websql_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/url_test.dart
diff --git a/tests/html/url_test.dart b/tests/html/url_test.dart
index 32143990fa481f43483d25b27bf09c8858430045..6852fc68d5eb1ee565eecfb3ed53ac21a482c69f 100644
--- a/tests/html/url_test.dart
+++ b/tests/html/url_test.dart
@@ -46,9 +46,7 @@ main() {
expect(img.complete, true);
}));
img.onError.listen((_) {
- guardAsync(() {
- expect(true, isFalse, reason: 'URL failed to load.');
- });
+ fail('URL failed to load.');
});
img.src = url;
});
@@ -64,9 +62,7 @@ main() {
img.onError.listen(expectAsync((_) {
}));
img.onLoad.listen((_) {
- guardAsync(() {
- expect(true, isFalse, reason: 'URL should not have loaded.');
- });
+ fail('URL should not have loaded.');
});
img.src = url;
});
« no previous file with comments | « tests/html/postmessage_structured_test.dart ('k') | tests/html/websql_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698