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

Unified Diff: tests/html/xhr_test.dart

Issue 27280003: Fixing XHR responseHeaders test (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
« no previous file with comments | « no previous file | 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 6394ef4db1a45213b62265052a7f98afdf8feae0..78b8c5a08097af05105ad46ca558009fcf2b8c26 100644
--- a/tests/html/xhr_test.dart
+++ b/tests/html/xhr_test.dart
@@ -249,9 +249,12 @@ main() {
group('headers', () {
test('xhr responseHeaders', () {
- return HttpRequest.request(url, mimeType: 'application/binary').then(
+ return HttpRequest.request(url).then(
(xhr) {
- expect(xhr.responseHeaders['content-type'], 'application/binary');
+ var serverHeader = xhr.responseHeaders['server'];
+ expect(serverHeader, isNotNull);
+ // Should be like: 'Dart/0.1 (dart:io)'
+ expect(serverHeader.startsWith('Dart/'), isTrue);
});
});
});
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698