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

Unified Diff: tests/html/form_data_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/form_data_test.dart
diff --git a/tests/html/form_data_test.dart b/tests/html/form_data_test.dart
index cdcca7e76abaf21d5638912c48443a1510a9727c..0ddd97db2b6b8712e8ed01a92628d0bd64c9c355 100644
--- a/tests/html/form_data_test.dart
+++ b/tests/html/form_data_test.dart
@@ -61,10 +61,10 @@ void main() {
var xhr = new HttpRequest();
xhr.open("POST", "http://localhost:${window.location.port}/echo");
- xhr.on.load.add(expectAsync1((e) {
+ xhr.onLoad.listen(expectAsync1((e) {
expect(xhr.responseText.contains(blobString), true);
}));
- xhr.on.error.add((e) {
+ xhr.onError.listen((e) {
fail('$e');
});
xhr.send(form);

Powered by Google App Engine
This is Rietveld 408576698