mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-24 17:14:04 +02:00
Fix tests
This commit is contained in:
@@ -2,7 +2,7 @@ iD.Background = function() {
|
||||
var tile = d3.geo.tile(),
|
||||
scaleExtent = [0, 20],
|
||||
projection,
|
||||
source;
|
||||
source = d3.functor('');
|
||||
|
||||
// derive the tiles onscreen, remove those offscreen and position tiles
|
||||
// correctly for the currentstate of `projection`
|
||||
@@ -90,7 +90,7 @@ iD.BackgroundSource.template = function(template, subdomains) {
|
||||
|
||||
iD.BackgroundSource.Bing = iD.BackgroundSource.template(
|
||||
'http://ecn.t{t}.tiles.virtualearth.net/tiles/a{u}.jpeg?g=587&mkt=en-gb&n=z',
|
||||
[1, 2, 3, 4]);
|
||||
[0, 1, 2, 3]);
|
||||
|
||||
iD.BackgroundSource.Tiger2012 = iD.BackgroundSource.template(
|
||||
'http://{t}.tile.openstreetmap.us/tiger2012_roads_expanded/{z}/{x}/{y}.png',
|
||||
|
||||
@@ -3,7 +3,7 @@ describe('Background', function() {
|
||||
|
||||
beforeEach(function() {
|
||||
d = d3.select(document.createElement('div'));
|
||||
c = iD.Background().projection(d3.geo.mercator());
|
||||
c = iD.Background(d).projection(d3.geo.mercator());
|
||||
d.call(c);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user