Commit Graph

197 Commits

Author SHA1 Message Date
slackersoft
c3639ab040 Version bump for 3.0 2015-01-26 10:19:24 -08:00
slackersoft
821c8e8edf Fix jshint issues in Gruntfile 2015-01-26 10:15:37 -08:00
slackersoft
30ce8dcc68 Add grunt tasks for releasing packages 2015-01-26 10:02:32 -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
e7ae7e02de Bring npm and bower configurations in line with each other 2014-12-16 18:03:48 -08:00
slackersoft
e80677490a Also test in IE 11 on travis 2014-12-16 12:02:46 -08:00
Gregg Van Hove
7b4c731fc9 Merge pull request #87 from Mstudio-Ishikawa/document
modify example code
2014-12-01 13:15:57 -08:00
slackersoft
b6c4a09943 Bump version for bower and update urls for new jasmine org 2014-12-01 13:10:17 -08:00
Mstudio-Ishikawa
d3d64a87b8 modify example code
'response' method is deprecated. use 'respondWith' instead of
2014-11-29 14:19:44 +09:00
Gregg Van Hove
d9da8636f9 Update travis badge 2014-11-26 22:17:15 -08:00
slackersoft
05822db1c5 Concatenate the files 2014-11-26 21:38:45 -08:00
slackersoft
b4803da4c4 Merge branch 'albertyw-master' 2014-11-26 21:26:43 -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
b66d80aee8 Add release notes 2014-11-19 12:55:23 -08:00
slackersoft
7fbcb04a26 bump version to 2.99 2014-11-18 13:28:18 -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
e540fcfaef Remember to run jshint before you push... 2014-11-07 08:07:40 -08:00
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
2014-11-07 07:50:33 -08:00
slackersoft
711764e290 Support listening to XHR progress events via addEventListener
Fixes #79
2014-11-04 07:39:23 -08:00
slackersoft
80297da4c1 Support the remainder of XHR events
- onloadstart
- onprogress
- onabort
- onerror
- onload
- ontimeout
- onloadend

Fixes #81 Fixes #82
2014-11-01 20:43:21 -07:00
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
2014-11-01 16:26:12 -07:00
slackersoft
4751eaafbb Parse responseText into a responseXML if the contentType is xml-ish
closes #55
2014-11-01 15:13:55 -07:00
Gregg Van Hove
5665351ab2 Merge pull request #76 from macroeyes/master
Un-pin jasmine dependency from version 2.0.0
2014-08-22 12:57:28 -07:00
Alex Kestner
4a5cd72d7a Un-pin jasmine dependency from version 2.0.0
Updated to: "jasmine" : "~2.0"
2014-08-22 12:37:10 -04:00
slackersoft
20f194d25c move integrationy specs into integration folder 2014-08-08 12:50:45 -07:00
slackersoft
85059718ad Move specs for the fake XHR to be more unity and less integrationy 2014-08-08 12:50:30 -07:00
slackersoft
06af24b239 force build failure if anything goes wrong 2014-08-08 12:50:17 -07:00
slackersoft
35ffa0d72c Move some specs into unit tests for request tracker 2014-08-06 18:30:35 -07:00
slackersoft
d5e04f35af Add some unit tests for stubTracker 2014-08-06 08:02:55 -07:00
slackersoft
3a0fb720d2 Move some specs over to unit tests for requestStub 2014-08-06 07:45:03 -07:00
slackersoft
c825452b60 Move some specs over to unit tests for param parser 2014-08-05 08:08:54 -07:00
slackersoft
efbc3dbc01 Configure selenium path extra early, since it loads its config file when required 2014-08-04 18:30:49 -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
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
2014-08-04 07:46:32 -07:00
slackersoft
1ec196e525 refactor response headers normalization into it's own method 2014-07-30 18:46:02 -07:00
slackersoft
2790018e76 Merge branch 'resident-uhlig-master' 2014-07-30 13:38:21 -07:00
slackersoft
f38d9ad97c Merge branch 'master' of https://github.com/resident-uhlig/jasmine-ajax into resident-uhlig-master
Closes #72
2014-07-30 13:37:44 -07:00
slackersoft
8e1b1fc422 Record overridden mime types
Fix #74
2014-07-29 18:28:13 -07:00
slackersoft
7f07e7b90e Install all npm deps when building 2014-07-29 13:24:30 -07:00
slackersoft
898b9ce227 Install grunt so jshint can run 2014-07-29 13:18:19 -07:00
slackersoft
864c8df82b Find response case-insensitively 2014-07-29 08:08:03 -07:00
slackersoft
0b2b4a4a2e Combine request headers with the same name 2014-07-29 07:45:12 -07:00
slackersoft
80af85b4cf Run jshint against spec files too. 2014-07-28 18:38:06 -07:00
slackersoft
a9f3164578 turn on jshint in the build 2014-07-25 13:31:44 -07:00
Sven Uhlig
1e84763bd5 added support for multiple headers with same name 2014-07-13 03:14:02 +02:00
Sven Uhlig
603c089423 added platform x64-mingw32 2014-07-13 03:05:49 +02:00
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) {
2014-07-13 00:53:18 +02:00
slackersoft
f95a009ffe Merge branch 'kmontag-prevent-multiple-responses' 2014-07-11 12:59:49 -07:00
Kevin Montag
9908439d81 Throw an error if response() is called more than once on requests
Closes #71 Fixes #70
2014-07-11 12:58:34 -07:00