From 929064d9e4a4895b466de715cce23b04c45402b5 Mon Sep 17 00:00:00 2001 From: Caitlin Potter Date: Wed, 16 Jul 2014 12:06:48 -0400 Subject: [PATCH] test($http): ignore date-toJSON test if running in IE8 IE8 does not implement Date.prototype.toISOString(), which is necessary for this feature. The feature still works if this method is polyfilled, but these tests are not run with polyfills. --- test/ng/httpSpec.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/ng/httpSpec.js b/test/ng/httpSpec.js index fdea7f30b..b367fd3c5 100644 --- a/test/ng/httpSpec.js +++ b/test/ng/httpSpec.js @@ -463,6 +463,7 @@ describe('$http', function() { }); it('should not double quote dates', function() { + if (msie < 9) return; $httpBackend.expect('GET', '/url?date=2014-07-15T17:30:00.000Z').respond(''); $http({url: '/url', params: {date:new Date('2014-07-15T17:30:00.000Z')}, method: 'GET'}); });