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

Unified Diff: tests/html/canvas_test.dart

Issue 12040059: Converting tests over to using event streams. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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/canvas_test.dart
diff --git a/tests/html/canvas_test.dart b/tests/html/canvas_test.dart
index 79c48cb119462d113421e11e4a2493554af50380..6d95d3a2a2331e6cd4d59c808cca44d094f51a71 100644
--- a/tests/html/canvas_test.dart
+++ b/tests/html/canvas_test.dart
@@ -37,10 +37,10 @@ main() {
var url = canvas.toDataUrl('image/png');
var img = new ImageElement();
- img.on.load.add(expectAsync1((_) {
+ img.onLoad.listen(expectAsync1((_) {
expect(img.complete, true);
}));
- img.on.error.add((_) {
+ img.onError.listen((_) {
guardAsync(() {
expect(true, isFalse, reason: 'URL failed to load.');
});

Powered by Google App Engine
This is Rietveld 408576698