Index: tests/html/xhr_cross_origin_test.dart |
diff --git a/tests/html/xhr_cross_origin_test.dart b/tests/html/xhr_cross_origin_test.dart |
index fabc5a1bb39c7ea7f2d42ff70afb227e5e764617..4f4d8bd34a042cb85e1fbca4a629a593b998e87f 100644 |
--- a/tests/html/xhr_cross_origin_test.dart |
+++ b/tests/html/xhr_cross_origin_test.dart |
@@ -38,7 +38,7 @@ main() { |
expect(data['feed'], contains('entry')); |
expect(data, isMap); |
}); |
- xhr.on.readyStateChange.add((e) { |
+ xhr.onReadyStateChange.listen((e) { |
guardAsync(() { |
if (xhr.readyState == HttpRequest.DONE) { |
validate(json.parse(xhr.response)); |