Rename source.getKeyParams() to source.getKey()
This commit is contained in:
@@ -27,7 +27,7 @@ describe('ol.source.TileImage', function() {
|
||||
|
||||
beforeEach(function() {
|
||||
source = createSource();
|
||||
expect(source.getKeyParams()).to.be('');
|
||||
expect(source.getKey()).to.be('');
|
||||
source.getTileInternal(0, 0, -1, 1, ol.proj.get('EPSG:3857'));
|
||||
expect(source.tileCache.getCount()).to.be(1);
|
||||
tile = source.tileCache.get(source.getKeyZXY(0, 0, -1));
|
||||
@@ -43,7 +43,7 @@ describe('ol.source.TileImage', function() {
|
||||
|
||||
describe('tile is not loaded', function() {
|
||||
it('returns a tile with no interim tile', function() {
|
||||
source.getKeyParams = function() {
|
||||
source.getKey = function() {
|
||||
return 'key0';
|
||||
};
|
||||
var returnedTile = source.getTileInternal(
|
||||
@@ -56,7 +56,7 @@ describe('ol.source.TileImage', function() {
|
||||
|
||||
describe('tile is loaded', function() {
|
||||
it('returns a tile with interim tile', function() {
|
||||
source.getKeyParams = function() {
|
||||
source.getKey = function() {
|
||||
return 'key0';
|
||||
};
|
||||
tile.state = ol.TileState.LOADED;
|
||||
@@ -71,7 +71,7 @@ describe('ol.source.TileImage', function() {
|
||||
describe('tile is not loaded but interim tile is', function() {
|
||||
it('returns a tile with interim tile', function() {
|
||||
var dynamicParamsKey, returnedTile;
|
||||
source.getKeyParams = function() {
|
||||
source.getKey = function() {
|
||||
return dynamicParamsKey;
|
||||
};
|
||||
dynamicParamsKey = 'key0';
|
||||
|
||||
Reference in New Issue
Block a user