Commit Graph

18 Commits

Author SHA1 Message Date
Albert Wang
f480e105c2 Renamed response function to makeResponse so that it doesn't conflict with the builtin method 2014-06-12 20:09:03 -07:00
slackersoft
54864a45d3 Allow extra qualifications when matching json content-type 2014-06-12 13:33:48 -07:00
slackersoft
d893394765 Add the ability to add custom parameter parsers at runtime 2014-06-12 13:29:33 -07:00
slackersoft
080bbde2b1 Allow to parse request params as JSON
fixes #51
2014-06-11 08:13:26 -07:00
Sheel Choksi
85be9be887 Fixes for IE 8 and IE 9
- Object.keys isn't available in IE 8, so using a local objectKeys helper method
that accomplishes the same effect for spec
- The DONE property isn't supported in IE 8, so falling back to the
numerical 4 in spec when necessary
- Extending from an XMLHttpRequest can't extend properties that are
filled in asynchronously (status, responseText, etc.) on IE 8 and IE 9
so we now skip these properties when extending
2014-06-01 15:40:19 -07:00
Gregg Van Hove
5856e057bf Don't sort url param values
fix #52
2014-04-18 10:52:08 -07:00
Peet Goddard
7acac4b69f fix the prototype chain of the FakeXMLHttpRequest object
the prototype of the FakeXMLHttpRequest object will now be an XMLHttpRequest object, including properties such as 'withCredentials', not the XMLHttpRequest constructor function
2014-04-04 15:29:49 +01:00
slackersoft
3ebf994356 trigger onreadystatechange everywhere we set readyState
- Partially addresses #19
2014-01-17 15:50:48 -08:00
Don McCaughey and Greg Cobb
c788f13224 Create requestHeaders object in FakeXMLHttpRequest constructor instead of on the prototype 2013-12-02 17:51:21 -08:00
JR and Sheel Choksi
546549cb5f Merge pull request #41 2013-11-01 12:09:55 -07:00
slackersoft
c2a02dbdf6 Rework jasmine ajax to behave more like the jasmine clock and spys
- use an instance of MockAjax for nicer tests
- the only global install is `mockAjax`
- mockAjax has a `requests` to track requests that have been made
- mockAjax has a `stubs` to track stubs that have been registered
- use just `install` and `uninstall` to be consistent with clock
2013-10-11 22:16:22 -07:00
JR Boyens
358efd59fd Support capturing HTTP Authentication - fixes #11 2013-01-09 00:03:52 -08:00
JR Boyens
ae89125d72 Clean JSHint errors 2012-12-19 23:02:23 -08:00
Elliot Foster & Yuri Green
089fea97c1 Decode '+' to spaces, not just '%20' 2012-05-16 12:09:37 -07:00
Elliot Foster & Yuri Green
fa9a44a659 return request body params in a consistent and usable way 2012-05-16 11:40:24 -07:00
Hunter Gillane
26e475dfb2 pull jquery and prototype mocks into named functions 2011-08-07 14:20:37 -06:00
Hunter Gillane
ba3b1c5b3a spec for extending FakeXMLHttpRequest 2011-06-07 21:43:20 -06:00
Austin Putman & Sarah Mei
a4d3881e7e Added readyState changes to FakeXmlHttpRequest.
Took out rogue console.error.
2010-09-28 11:41:50 -07:00