Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit d6876f2

Browse files
committed
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. (Added to master branch to keep tree in sync)
1 parent 1f23980 commit d6876f2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/ng/httpSpec.js

+1
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,7 @@ describe('$http', function() {
343343
});
344344

345345
it('should not double quote dates', function() {
346+
if (msie < 9) return;
346347
$httpBackend.expect('GET', '/url?date=2014-07-15T17:30:00.000Z').respond('');
347348
$http({url: '/url', params: {date:new Date('2014-07-15T17:30:00.000Z')}, method: 'GET'});
348349
});

0 commit comments

Comments
 (0)