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:
Bryan Housel
2019-01-30 15:43:02 -05:00
parent 7138acc652
commit 71b2d2c6b7
51 changed files with 1642 additions and 1653 deletions
+1 -1
View File
@@ -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');
});
+1 -1
View File
@@ -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'});
});
+2 -2
View File
@@ -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');