mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-21 15:56:56 +02:00
Prevent AddPoint tests from making network requests
This commit is contained in:
@@ -257,7 +257,7 @@ iD.Background = function(context) {
|
||||
if (chosen && chosen.indexOf('custom:') === 0) {
|
||||
background.baseLayerSource(iD.BackgroundSource.Custom(chosen.replace(/^custom:/, '')));
|
||||
} else {
|
||||
background.baseLayerSource(findSource(chosen) || best || findSource('Bing') || backgroundSources[1]);
|
||||
background.baseLayerSource(findSource(chosen) || best || findSource('Bing') || backgroundSources[1] || backgroundSources[0]);
|
||||
}
|
||||
|
||||
var locator = _.find(backgroundSources, function(d) {
|
||||
|
||||
@@ -6,9 +6,11 @@ describe("iD.modes.AddPoint", function() {
|
||||
|
||||
context = iD()
|
||||
.presets(iD.data.presets)
|
||||
.imagery(iD.data.imagery)
|
||||
.imagery([])
|
||||
.container(container);
|
||||
|
||||
context.loadTiles = function () {};
|
||||
|
||||
container.call(context.map())
|
||||
.append('div')
|
||||
.attr('class', 'inspector-wrap');
|
||||
|
||||
Reference in New Issue
Block a user