Fix test that reads "Date" header on IE

IE caches xhr responses pretty aggressively and after restoring the
previous response from cache, it blanks out the "Date" header (probably
by design). The solution for this test is to use a cache-busting query
parameter.
This commit is contained in:
Mislav Marohnić 2014-10-30 14:18:41 +01:00
Родитель 1aa4bbff1f
Коммит eea856859e
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -31,7 +31,7 @@ asyncTest('sends request headers', 2, function() {
})
asyncTest('parses response headers', 2, function() {
fetch('/headers').then(function(response) {
fetch('/headers?' + new Date().getTime()).then(function(response) {
equal(response.headers.get('Date'), 'Mon, 13 Oct 2014 21:02:27 GMT')
equal(response.headers.get('Content-Type'), 'text/html; charset=utf-8')
start()