Commit Graph

9 Commits

Author SHA1 Message Date
nobuti
7b1047a4b6 Fix headers in modern browsers. 2016-09-30 15:48:24 +02:00
Joey Parrish
4df24d7e81 Add responseURL support
This adds the ability to mock responseURL, which is used to detect the
ultimate request URL when following 302 redirects.

For more information, see:
https://xhr.spec.whatwg.org/#the-responseurl-attribute

Closes jasmine/jasmine-ajax#145
2016-01-12 14:13:39 -08:00
slackersoft
2d0bf42151 Include trailing newline in response headers to match browsers.
- Some libraries are relying on it existing, even though the specs
  doesn't say it should.

Fix #91
2015-01-23 13:11:42 -08:00
slackersoft
7446f2a190 Set response attribute for document responses 2014-11-26 21:25:49 -08:00
slackersoft
6b5cae82d5 Merge branch 'master' of https://github.com/albertyw/jasmine-ajax into albertyw-master
Conflicts:
	lib/mock-ajax.js
	spec/javascripts/fake-xml-http-request-spec.js
	spec/mock-ajax-toplevel-spec.js
2014-11-25 18:41:01 -08:00
slackersoft
0d14f5729d Deprecate the response function on fake request.
Starting on #49 #60 #89
2014-11-17 13:35:55 -08:00
slackersoft
4751eaafbb Parse responseText into a responseXML if the contentType is xml-ish
closes #55
2014-11-01 15:13:55 -07:00
slackersoft
35ffa0d72c Move some specs into unit tests for request tracker 2014-08-06 18:30:35 -07:00
slackersoft
9322af290a Run specs against separate and concatenated files
- also get rid of spec/javascripts, since there's only js here
2014-08-04 13:15:28 -07:00