Prevent AddPoint tests from making network requests

This commit is contained in:
John Firebaugh
2016-02-08 18:46:19 -08:00
parent 79df184052
commit ac3dfb95a3
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -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) {
+3 -1
View File
@@ -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');