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

Unified Diff: tests/html/canvasrenderingcontext2d_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/canvas_test.dart ('k') | tests/html/dromaeo_smoke_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/canvasrenderingcontext2d_test.dart
diff --git a/tests/html/canvasrenderingcontext2d_test.dart b/tests/html/canvasrenderingcontext2d_test.dart
index 9ccb40cd392286cdc18fb6bf73fe92563d5f012c..fa4402fca9349ac965f10398f9df683dc7817f17 100644
--- a/tests/html/canvasrenderingcontext2d_test.dart
+++ b/tests/html/canvasrenderingcontext2d_test.dart
@@ -350,9 +350,7 @@ main() {
expectPixelUnfilled(70, 70);
}));
img.onError.listen((_) {
- guardAsync(() {
- fail('URL failed to load.');
- });
+ fail('URL failed to load.');
});
img.src = dataUrl;
});
@@ -375,9 +373,7 @@ main() {
expectPixelUnfilled(80, 80);
}));
img.onError.listen((_) {
- guardAsync(() {
- fail('URL failed to load.');
- });
+ fail('URL failed to load.');
});
img.src = dataUrl;
});
@@ -412,9 +408,7 @@ main() {
expectPixelUnfilled(80, 80);
}));
img.onError.listen((_) {
- guardAsync(() {
- fail('URL failed to load.');
- });
+ fail('URL failed to load.');
});
img.src = dataUrl;
});
@@ -494,9 +488,7 @@ main() {
}));
video.onError.listen((_) {
- guardAsync(() {
- fail('URL failed to load.');
- });
+ fail('URL failed to load.');
});
if(video.canPlayType('video/webm; codecs="vp8.0, vorbis"', '') != '') {
@@ -523,9 +515,7 @@ main() {
expectPixelUnfilled(80, 80);
}));
video.onError.listen((_) {
- guardAsync(() {
- fail('URL failed to load.');
- });
+ fail('URL failed to load.');
});
if(video.canPlayType('video/webm; codecs="vp8.0, vorbis"', '') != '') {
@@ -554,9 +544,7 @@ main() {
expectPixelUnfilled(80, 80);
}));
video.onError.listen((_) {
- guardAsync(() {
- fail('URL failed to load.');
- });
+ fail('URL failed to load.');
});
if(video.canPlayType('video/webm; codecs="vp8.0, vorbis"', '') != '') {
@@ -592,9 +580,7 @@ main() {
expectPixelUnfilled(80, 80);
}));
video.onError.listen((_) {
- guardAsync(() {
- fail('URL failed to load.');
- });
+ fail('URL failed to load.');
});
if(video.canPlayType('video/webm; codecs="vp8.0, vorbis"', '') != '') {
« no previous file with comments | « tests/html/canvas_test.dart ('k') | tests/html/dromaeo_smoke_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698