mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-14 21:28:11 +02:00
Use live bound object for imagery array, remove context.imagery() accessor
Also update documentation, closes #3359
This commit is contained in:
@@ -2,7 +2,7 @@ describe('iD.behaviorLasso', function () {
|
||||
var lasso, context;
|
||||
|
||||
beforeEach(function () {
|
||||
context = iD.Context().imagery(iD.dataImagery);
|
||||
context = iD.Context();
|
||||
context.container(d3.select(document.createElement('div')));
|
||||
|
||||
// Neuter connection
|
||||
|
||||
@@ -3,7 +3,7 @@ describe('iD.behaviorSelect', function() {
|
||||
|
||||
beforeEach(function() {
|
||||
container = d3.select('body').append('div');
|
||||
context = iD.Context().imagery(iD.dataImagery).container(container);
|
||||
context = iD.Context().container(container);
|
||||
|
||||
a = iD.Node({loc: [0, 0]});
|
||||
b = iD.Node({loc: [0, 0]});
|
||||
|
||||
@@ -6,7 +6,6 @@ describe.skip('iD.modeAddPoint', function() {
|
||||
|
||||
context = iD.Context()
|
||||
.presets(iD.dataPresets)
|
||||
.imagery([])
|
||||
.container(container);
|
||||
|
||||
context.loadTiles = function () {};
|
||||
|
||||
@@ -2,7 +2,7 @@ describe('iD.Map', function() {
|
||||
var context, map;
|
||||
|
||||
beforeEach(function() {
|
||||
context = iD.Context().imagery(iD.dataImagery);
|
||||
context = iD.Context();
|
||||
context.container(d3.select(document.createElement('div')));
|
||||
map = context.map();
|
||||
d3.select(document.createElement('div'))
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
/* globals chai:false */
|
||||
|
||||
iD.debug = true;
|
||||
iD.data.imagery = [];
|
||||
|
||||
mocha.setup({
|
||||
ui: 'bdd',
|
||||
|
||||
Reference in New Issue
Block a user