Fix tests

This commit is contained in:
Tom MacWright
2012-12-06 10:46:21 -05:00
parent 877ae4c32e
commit 3b79854399
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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',
+1 -1
View File
@@ -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);
});