Less context
This change removes all changes that were anticipated here for WMS GetFeatureInfo handling, including the IWMS interface and the goog.provide for 'ol.tilegrid'. I'll create a separate pull request for WMS GetFeatureInfo eventually, taking into account the suggestions from the discussion in #402.
This commit is contained in:
@@ -81,14 +81,14 @@ describe('ol.TileUrlFunction', function() {
|
||||
describe('createFromParamsFunction', function() {
|
||||
var paramsFunction = function(url, params) { return arguments; };
|
||||
var projection = ol.projection.get('EPSG:3857');
|
||||
var params = {foo: 'bar'};
|
||||
var tileUrlFunction = ol.TileUrlFunction.createFromParamsFunction(
|
||||
'url', paramsFunction);
|
||||
'url', params, paramsFunction);
|
||||
it('calls the passed function with the correct arguments', function() {
|
||||
var that = {params: {foo: 'bar'}};
|
||||
var args = tileUrlFunction.call(that, new ol.TileCoord(0, 0, 0),
|
||||
var args = tileUrlFunction(new ol.TileCoord(0, 0, 0),
|
||||
ol.tilegrid.getForProjection(projection), projection);
|
||||
expect(args[0]).to.eql('url');
|
||||
expect(args[1]).to.be(that.params);
|
||||
expect(args[1]).to.be(params);
|
||||
expect(args[2]).to.eql(projection.getExtent());
|
||||
expect(args[3]).to.eql(new ol.Size(256, 256));
|
||||
expect(args[4]).to.eql(projection);
|
||||
@@ -101,4 +101,3 @@ goog.require('ol.Size');
|
||||
goog.require('ol.TileCoord');
|
||||
goog.require('ol.TileUrlFunction');
|
||||
goog.require('ol.projection');
|
||||
goog.require('ol.tilegrid');
|
||||
|
||||
Reference in New Issue
Block a user