Require init() call before coreContext starts doing things

(closes #7304)
This commit is contained in:
Bryan Housel
2020-01-29 19:27:12 -05:00
parent fb4d658860
commit e19bcb77d5
45 changed files with 182 additions and 178 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ describe('iD.validations.almost_junction', function () {
var context;
beforeEach(function() {
context = iD.coreContext();
context = iD.coreContext().init();
});
function horizontalVertialCloserThanThd() {
+1 -1
View File
@@ -2,7 +2,7 @@ describe('iD.validations.crossing_ways', function () {
var context;
beforeEach(function() {
context = iD.coreContext();
context = iD.coreContext().init();
});
function createWaysWithOneCrossingPoint(tags1, tags2) {
+1 -1
View File
@@ -2,7 +2,7 @@ describe('iD.validations.disconnected_way', function () {
var context;
beforeEach(function() {
context = iD.coreContext();
context = iD.coreContext().init();
});
function createWay(tags) {
+1 -1
View File
@@ -2,7 +2,7 @@ describe('iD.validations.incompatible_source', function () {
var context;
beforeEach(function() {
context = iD.coreContext();
context = iD.coreContext().init();
});
function createWay(tags) {
+1 -1
View File
@@ -2,7 +2,7 @@ describe('iD.validations.mismatched_geometry', function () {
var context;
beforeEach(function() {
context = iD.Context();
context = iD.coreContext().init();
});
function createPoint(tags) {
+1 -1
View File
@@ -2,7 +2,7 @@ describe('iD.validations.missing_role', function () {
var context;
beforeEach(function() {
context = iD.coreContext();
context = iD.coreContext().init();
});
function createWay(tags) {
+1 -1
View File
@@ -2,7 +2,7 @@ describe('iD.validations.missing_tag', function () {
var context;
beforeEach(function() {
context = iD.coreContext();
context = iD.coreContext().init();
});
function createWay(tags) {
+1 -1
View File
@@ -13,7 +13,7 @@ describe('iD.validations.outdated_tags', function () {
});
beforeEach(function() {
context = iD.coreContext();
context = iD.coreContext().init();
});
+1 -1
View File
@@ -2,7 +2,7 @@ describe('iD.validations.private_data', function () {
var context;
beforeEach(function() {
context = iD.coreContext();
context = iD.coreContext().init();
});
function createWay(tags) {
+1 -1
View File
@@ -2,7 +2,7 @@ describe('iD.validations.suspicious_name', function () {
var context;
beforeEach(function() {
context = iD.coreContext();
context = iD.coreContext().init();
});
function createWay(tags) {