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

Unified Diff: tests/html/xhr_test.dart

Issue 12088029: Adding test for bug 5374 (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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/xhr_test.dart
diff --git a/tests/html/xhr_test.dart b/tests/html/xhr_test.dart
index c5d16a3287f550218061305821566093f914565a..66d495eeb6234886c632d09f6ba234456f9ab08f 100644
--- a/tests/html/xhr_test.dart
+++ b/tests/html/xhr_test.dart
@@ -51,6 +51,11 @@ main() {
validate200Response(xhr);
}
}, () => xhr.readyState == HttpRequest.DONE));
+
+ xhr.onLoadEnd.listen(expectAsync1((ProgressEvent e) {
+ expect(e.currentTarget, xhr);
+ expect(e.target, xhr);
+ }));
xhr.send();
});
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698