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

Unified Diff: tests/html/xhr_test.dart

Issue 14752025: Adding ability to specify request headers and mime type for Future-based XHRs. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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 9d44746ff1f942c1c4e97440c112c22c4c81012a..a3d7a852155ce289befaf9ad65d79ce16fcaa05c 100644
--- a/tests/html/xhr_test.dart
+++ b/tests/html/xhr_test.dart
@@ -145,7 +145,9 @@ main() {
test('XHR.request responseType arraybuffer', () {
if (Platform.supportsTypedData) {
- HttpRequest.request(url, responseType: 'arraybuffer').then(
+ HttpRequest.request(url, responseType: 'arraybuffer',
+ mimeType: 'application/binary',
+ requestHeaders: {'Content-Type': 'text/xml'}).then(
expectAsync1((xhr) {
expect(xhr.status, equals(200));
var byteBuffer = xhr.response;
« 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