Use XHR by default

This commit is contained in:
Attila Berényi
2016-05-09 08:56:31 -06:00
committed by Tim Schaub
parent 4626554a18
commit 4c82b3403c
3 changed files with 116 additions and 18 deletions

View File

@@ -63,19 +63,6 @@ describe('ol.source.TileUTFGrid', function() {
expect(source).to.be.an(ol.source.TileUTFGrid);
});
it('immediately fetches the passed URL', function() {
// spy on the jsonp method
var jsonpSpy = sinon.spy(ol.net, 'jsonp');
getTileUTFGrid();
expect(jsonpSpy.calledOnce).to.be(true);
expect(jsonpSpy.lastCall.calledWith(url)).to.be(true);
// cleanup
ol.net.jsonp.restore();
jsonpSpy = null;
});
});
describe('#handleTileJSONResponse', function() {