mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-14 21:28:11 +02:00
Upgrade legacy symbols in tests
- iD.Context -> iD.coreContext - iD.Graph -> iD.coreGraph - iD.Node -> iD.osmNode - iD.Way -> iD.osmWay - iD.Relation -> iD.osmRelation
This commit is contained in:
@@ -2,7 +2,7 @@ describe('iD.uiFieldAccess', function() {
|
||||
var context, selection, field;
|
||||
|
||||
beforeEach(function() {
|
||||
context = iD.Context();
|
||||
context = iD.coreContext();
|
||||
selection = d3.select(document.createElement('div'));
|
||||
field = context.presets().field('access');
|
||||
});
|
||||
|
||||
@@ -2,7 +2,7 @@ describe('iD.uiFieldLocalized', function() {
|
||||
var context, selection, field;
|
||||
|
||||
beforeEach(function() {
|
||||
context = iD.Context();
|
||||
context = iD.coreContext();
|
||||
selection = d3.select(document.createElement('div'));
|
||||
field = iD.presetField('test', {key: 'name'});
|
||||
});
|
||||
|
||||
@@ -43,8 +43,8 @@ describe('iD.uiFieldWikipedia', function() {
|
||||
});
|
||||
|
||||
beforeEach(function() {
|
||||
entity = iD.Node({id: 'n12345'});
|
||||
context = iD.Context();
|
||||
entity = iD.osmNode({id: 'n12345'});
|
||||
context = iD.coreContext();
|
||||
context.history().merge([entity]);
|
||||
selection = d3.select(document.createElement('div'));
|
||||
field = context.presets().field('wikipedia');
|
||||
|
||||
Reference in New Issue
Block a user