aboutsummaryrefslogtreecommitdiffstats
path: root/test/ng/httpBackendSpec.js
diff options
context:
space:
mode:
authorVojta Jina2012-04-03 11:00:52 -0700
committerVojta Jina2012-04-04 16:13:02 -0700
commit86182a9415b9209662b16c25c180b958ba7e6cf9 (patch)
tree18661207396b5da54658676233ff0e15c6d975fc /test/ng/httpBackendSpec.js
parent15ecc6f3668885ebc5c7130dd34e00059ddf79ae (diff)
downloadangular.js-86182a9415b9209662b16c25c180b958ba7e6cf9.tar.bz2
feat($http): add withCredentials config option
Diffstat (limited to 'test/ng/httpBackendSpec.js')
-rw-r--r--test/ng/httpBackendSpec.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/ng/httpBackendSpec.js b/test/ng/httpBackendSpec.js
index 820099e8..91c0574d 100644
--- a/test/ng/httpBackendSpec.js
+++ b/test/ng/httpBackendSpec.js
@@ -113,6 +113,12 @@ describe('$httpBackend', function() {
});
+ it('should set withCredentials', function() {
+ $backend('GET', '/some.url', null, callback, {}, null, true);
+ expect(MockXhr.$$lastInstance.withCredentials).toBe(true);
+ });
+
+
describe('JSONP', function() {
var SCRIPT_URL = /([^\?]*)\?cb=angular\.callbacks\.(.*)/;