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

Unified Diff: tests/html/xhr_test.dart

Issue 26893008: Adding HttpRequest.responseHeaders (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Tightening up some error edge cases Created 7 years, 2 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/xhr_test.dart
diff --git a/tests/html/xhr_test.dart b/tests/html/xhr_test.dart
index b39ab1cadbc38103b33dfa4f6900f54130a1be01..6394ef4db1a45213b62265052a7f98afdf8feae0 100644
--- a/tests/html/xhr_test.dart
+++ b/tests/html/xhr_test.dart
@@ -246,4 +246,13 @@ main() {
}));
});
});
+
+ group('headers', () {
+ test('xhr responseHeaders', () {
+ return HttpRequest.request(url, mimeType: 'application/binary').then(
+ (xhr) {
+ expect(xhr.responseHeaders['content-type'], 'application/binary');
+ });
+ });
+ });
}
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | tools/dom/templates/html/impl/impl_XMLHttpRequest.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698