nobuti
7b1047a4b6
Fix headers in modern browsers.
8 years ago
Gregg Van Hove
d9b9b325c4
Merge pull request #158 from gweax/static-state-constants
...
Add static state types
8 years ago
Matthias Reuter
95b36b27ed
Add static state types
8 years ago
Kevin Ring
6a9e86822e
Add built library.
9 years ago
Gregg Van Hove
1a28c57444
Merge branch 'master' of https://github.com/just-boris/jasmine-ajax into just-boris-master
...
- Merges #140
- Closes #137
- Fixes #95
9 years ago
Gregg Van Hove
cef5bbcc6c
Merge branch 'master' of https://github.com/mooglemoogle/jasmine-ajax into mooglemoogle-master
...
- Merges #147
- Fixes #142
9 years ago
Christopher Rock
0ad4e838a6
Reversing combined file change
9 years ago
Christopher Rock
ca2ee0202a
Clearing request headers on fakeRequest.open()
...
https://github.com/jasmine/jasmine-ajax/issues/142
9 years ago
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
9 years ago
Gregg Van Hove
27fbe694e5
Merge branch 'master' of https://github.com/salticus/jasmine-ajax into salticus-master
9 years ago
Gregg Van Hove
4fbd1c9e3d
Update version number in concatenated file
9 years ago
Mickael Jeanroy
d3c52e8e29
Set the `this` context for event handler to the current XHR and pass proper ProgressEvent arguments
...
Fixes #108
9 years ago
unknown
6e77139011
added feature to match data/query against RegExp
...
Fixes #115
9 years ago
Martin Jantosovic
732f91f5f1
Allow error and timeout using RequestStub
...
Closes #111
9 years ago
Jen Hamon
fb5a98e63e
Throw error on duplicate calls to MockAjax#install.
...
Fixes #96
10 years ago
Jen Hamon
ea68594915
Update links
10 years ago
Jen Hamon
5b0bd44aa7
Update copyright year
10 years ago
Gregg Van Hove
de8f5bc773
Bump version to 3.1.0
10 years ago
Gregg Van Hove
3a80483f30
Add version number to combined file
...
Fixes #93
10 years ago
Gregg Van Hove and Molly Trombley-McCann
09861cacba
Cleanup removeEventListener
...
- Add tests
- Extract an EventBus
10 years ago
Gregg Van Hove and Molly Trombley-McCann
ef26ab41af
Merge branch 'master' of https://github.com/illiptic/jasmine-ajax into illiptic-master
10 years ago
Tomek Wytrebowicz
ccb0ae7853
Add `responseHeaders` to `andReturn` s options
10 years ago
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
10 years ago
illiptic
f7bb70c0d5
concat with changes
10 years ago
slackersoft
05822db1c5
Concatenate the files
10 years ago
slackersoft
0d14f5729d
Deprecate the `response` function on fake request.
...
Starting on #49 #60 #89
10 years ago
slackersoft
e540fcfaef
Remember to run jshint before you push...
10 years ago
slackersoft
a1c2859baf
Start progress event callbacks off as null instead of empty functions.
...
- Apparently some libraries will null them out in certain circumstances,
so make sure we handle it by default.
Fix #85
10 years ago
slackersoft
711764e290
Support listening to XHR progress events via `addEventListener`
...
Fixes #79
10 years ago
slackersoft
80297da4c1
Support the remainder of XHR events
...
- onloadstart
- onprogress
- onabort
- onerror
- onload
- ontimeout
- onloadend
Fixes #81 Fixes #82
10 years ago
slackersoft
9681f79ece
Fix cross browser issues for responseXML
...
- IE8 doesn't support indexOf, use our own arrayContains
- Most browsers don't allow 'text/html' when using a DOMParser, so we
won't support it for now.
- Firefox doesn't want to serialize Documents over selenium, so don't
have them in as our expected, just use instanceof ourselves
10 years ago
slackersoft
4751eaafbb
Parse `responseText` into a `responseXML` if the contentType is xml-ish
...
closes #55
10 years ago
slackersoft
85059718ad
Move specs for the fake XHR to be more unity and less integrationy
10 years ago
slackersoft
c9ec591514
Give each class it's own file for better separation
...
- Specs still run against the concatenated file
- Use the jasmine require obj `getJasmineRequireObj()` for dependencies
10 years ago
slackersoft
1ec196e525
refactor response headers normalization into it's own method
10 years ago
slackersoft
f38d9ad97c
Merge branch 'master' of https://github.com/resident-uhlig/jasmine-ajax into resident-uhlig-master
...
Closes #72
10 years ago
slackersoft
8e1b1fc422
Record overridden mime types
...
Fix #74
10 years ago
slackersoft
864c8df82b
Find response case-insensitively
10 years ago
slackersoft
0b2b4a4a2e
Combine request headers with the same name
10 years ago
slackersoft
a9f3164578
turn on jshint in the build
10 years ago
Sven Uhlig
1e84763bd5
added support for multiple headers with same name
10 years ago
Sven Uhlig
ce30728c98
changes in order to satisfy jshint
...
[L120:C18] Wrap the /regexp/ literal in parens to disambiguate the slash operator.
return /^application\/json/.test(xhr.contentType());
[L307:C27] Expected '===' and instead saw '=='.
if (requests.length == 0) return [];
[L307:C33] Expected '{' and instead saw 'return'.
if (requests.length == 0) return [];
[L318:C31] Expected '===' and instead saw '=='.
if (requests[i].url == url_to_match) {
10 years ago
Kevin Montag
9908439d81
Throw an error if response() is called more than once on requests
...
Closes #71 Fixes #70
10 years ago
slackersoft
199324e720
Allow stubs to match only a particular http method (GET, POST, PUT, etc.)
...
Fixes #36
10 years ago
slackersoft
54864a45d3
Allow extra qualifications when matching json content-type
10 years ago
slackersoft
d893394765
Add the ability to add custom parameter parsers at runtime
10 years ago
slackersoft
080bbde2b1
Allow to parse request params as JSON
...
fixes #51
10 years ago
slackersoft
477f044b4a
The HTTP spec says it's 'Content-Type'
...
Fixes #67
10 years ago
Wil Linssen
49d953c954
Allow stubs to use Regex
10 years ago
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
10 years ago