Index: tests/html/xhr_test.dart |
diff --git a/tests/html/xhr_test.dart b/tests/html/xhr_test.dart |
index 288f068f6d46046f461357643e869bc55c655c90..4988b1bd625e5ddf37c7cf6e5703ff14e485f591 100644 |
--- a/tests/html/xhr_test.dart |
+++ b/tests/html/xhr_test.dart |
@@ -48,10 +48,10 @@ main() { |
}); |
test('XHR.get file', () { |
- var xhr = new HttpRequest.get(url, expectAsync1((xhr) { |
- expect(xhr.readyState, equals(HttpRequest.DONE)); |
- expect(xhr.status, equals(200)); |
- var data = JSON.parse(xhr.response); |
+ var xhr = new HttpRequest.get(url, expectAsync1((event) { |
+ expect(event.readyState, equals(HttpRequest.DONE)); |
+ expect(event.status, equals(200)); |
+ var data = JSON.parse(event.response); |
expect(data, contains('feed')); |
expect(data['feed'], contains('entry')); |
expect(data, isMap); |