TileUtfGrid#forDataAtCoordinateAndResolution

This commit is contained in:
simonseyock
2017-12-16 15:20:17 +01:00
parent d7c48314b8
commit 73deb49db1
3 changed files with 8 additions and 20 deletions

View File

@@ -253,18 +253,7 @@ describe('ol.source.TileUTFGrid', function() {
done();
};
source.forDataAtCoordinateAndResolution(
bonn3857, resolutionZoom1, callback, null, true
);
});
it('calls callback with correct `this` bound', function(done) {
var scope = {foo: 'bar'};
var callback = function(data) {
expect(this).to.be(scope);
done();
};
source.forDataAtCoordinateAndResolution(
bonn3857, resolutionZoom1, callback, scope, true
bonn3857, resolutionZoom1, callback, true
);
});
@@ -275,7 +264,7 @@ describe('ol.source.TileUTFGrid', function() {
done();
};
source.forDataAtCoordinateAndResolution(
noState3857, resolutionZoom1, callback, null, true
noState3857, resolutionZoom1, callback, true
);
});