mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-24 00:54:03 +02:00
Require init() call before coreContext starts doing things
(closes #7304)
This commit is contained in:
@@ -2,7 +2,7 @@ describe('iD.validations.almost_junction', function () {
|
||||
var context;
|
||||
|
||||
beforeEach(function() {
|
||||
context = iD.coreContext();
|
||||
context = iD.coreContext().init();
|
||||
});
|
||||
|
||||
function horizontalVertialCloserThanThd() {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -2,7 +2,7 @@ describe('iD.validations.disconnected_way', function () {
|
||||
var context;
|
||||
|
||||
beforeEach(function() {
|
||||
context = iD.coreContext();
|
||||
context = iD.coreContext().init();
|
||||
});
|
||||
|
||||
function createWay(tags) {
|
||||
|
||||
@@ -2,7 +2,7 @@ describe('iD.validations.incompatible_source', function () {
|
||||
var context;
|
||||
|
||||
beforeEach(function() {
|
||||
context = iD.coreContext();
|
||||
context = iD.coreContext().init();
|
||||
});
|
||||
|
||||
function createWay(tags) {
|
||||
|
||||
@@ -2,7 +2,7 @@ describe('iD.validations.mismatched_geometry', function () {
|
||||
var context;
|
||||
|
||||
beforeEach(function() {
|
||||
context = iD.Context();
|
||||
context = iD.coreContext().init();
|
||||
});
|
||||
|
||||
function createPoint(tags) {
|
||||
|
||||
@@ -2,7 +2,7 @@ describe('iD.validations.missing_role', function () {
|
||||
var context;
|
||||
|
||||
beforeEach(function() {
|
||||
context = iD.coreContext();
|
||||
context = iD.coreContext().init();
|
||||
});
|
||||
|
||||
function createWay(tags) {
|
||||
|
||||
@@ -2,7 +2,7 @@ describe('iD.validations.missing_tag', function () {
|
||||
var context;
|
||||
|
||||
beforeEach(function() {
|
||||
context = iD.coreContext();
|
||||
context = iD.coreContext().init();
|
||||
});
|
||||
|
||||
function createWay(tags) {
|
||||
|
||||
@@ -13,7 +13,7 @@ describe('iD.validations.outdated_tags', function () {
|
||||
});
|
||||
|
||||
beforeEach(function() {
|
||||
context = iD.coreContext();
|
||||
context = iD.coreContext().init();
|
||||
});
|
||||
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ describe('iD.validations.private_data', function () {
|
||||
var context;
|
||||
|
||||
beforeEach(function() {
|
||||
context = iD.coreContext();
|
||||
context = iD.coreContext().init();
|
||||
});
|
||||
|
||||
function createWay(tags) {
|
||||
|
||||
@@ -2,7 +2,7 @@ describe('iD.validations.suspicious_name', function () {
|
||||
var context;
|
||||
|
||||
beforeEach(function() {
|
||||
context = iD.coreContext();
|
||||
context = iD.coreContext().init();
|
||||
});
|
||||
|
||||
function createWay(tags) {
|
||||
|
||||
Reference in New Issue
Block a user