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

Unified Diff: tests/html/xhr_test.dart

Issue 11799002: Intermediary fixes to get some bots green. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 12 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 | « tests/html/html.status ('k') | 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 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);
« no previous file with comments | « tests/html/html.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698