From 71b2d2c6b7b08fef8e405fa133c6ca7cf66b8378 Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Wed, 30 Jan 2019 15:43:02 -0500 Subject: [PATCH] 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 --- API.md | 4 +- data/presets/README.md | 4 +- index.html | 2 +- test/spec/actions/add_entity.js | 2 +- test/spec/actions/add_midpoint.js | 42 +- test/spec/actions/change_member.js | 6 +- test/spec/actions/change_preset.js | 12 +- test/spec/actions/change_tags.js | 2 +- test/spec/actions/circularize.js | 180 +++--- test/spec/actions/copy_entities.js | 36 +- test/spec/actions/delete_member.js | 14 +- test/spec/actions/delete_multiple.js | 20 +- test/spec/actions/delete_node.js | 44 +- test/spec/actions/delete_relation.js | 70 +- test/spec/actions/delete_way.js | 76 +-- test/spec/actions/disconnect.js | 216 +++---- test/spec/actions/merge.js | 30 +- test/spec/actions/merge_polygon.js | 18 +- test/spec/actions/merge_remote_changes.js | 48 +- test/spec/actions/move.js | 44 +- test/spec/actions/noop.js | 2 +- test/spec/actions/orthogonalize.js | 138 ++-- test/spec/actions/reflect.js | 108 ++-- test/spec/actions/revert.js | 94 +-- test/spec/actions/straighten.js | 104 +-- test/spec/behavior/hash.js | 2 +- test/spec/behavior/lasso.js | 2 +- test/spec/behavior/select.js | 6 +- test/spec/core/context.js | 12 +- test/spec/core/difference.js | 154 ++--- test/spec/core/graph.js | 316 ++++----- test/spec/core/history.js | 64 +- test/spec/core/tree.js | 94 +-- test/spec/modes/add_point.js | 2 +- test/spec/osm/entity.js | 40 +- test/spec/osm/lanes.js | 224 +++---- test/spec/osm/way.js | 748 +++++++++++----------- test/spec/presets/index.js | 11 - test/spec/renderer/features.js | 194 +++--- test/spec/renderer/map.js | 2 +- test/spec/renderer/tile_layer.js | 2 +- test/spec/services/mapillary.js | 2 +- test/spec/services/openstreetcam.js | 2 +- test/spec/services/osm.js | 30 +- test/spec/services/streetside.js | 2 +- test/spec/svg/svg.js | 12 +- test/spec/ui/fields/access.js | 2 +- test/spec/ui/fields/localized.js | 2 +- test/spec/ui/fields/wikipedia.js | 4 +- test/spec/ui/raw_tag_editor.js | 4 +- test/spec/util/util.js | 46 +- 51 files changed, 1642 insertions(+), 1653 deletions(-) diff --git a/API.md b/API.md index 09c01a957..344410e39 100644 --- a/API.md +++ b/API.md @@ -110,7 +110,7 @@ A **line** is a way that is not an area. Elements representing lines have a `.li class. Since a line is also a way, they also have a `.way` class. An **area** is a way that is circular, has certain tags, or lacks certain other -tags (see `iD.Way#isArea` for the exact definition). Elements representing areas +tags (see `iD.osmWay#isArea` for the exact definition). Elements representing areas have `.area` and `.way` classes. @@ -302,7 +302,7 @@ The minimum zoom at which iD enters the edit mode is configured using the `conte ```js -var id = iD.Context() +var id = iD.coreContext() .minEditableZoom(zoom_level) ``` diff --git a/data/presets/README.md b/data/presets/README.md index 0a07f602f..e484a9478 100644 --- a/data/presets/README.md +++ b/data/presets/README.md @@ -89,7 +89,7 @@ preset are used. For example, `shop/convenience` automatically uses the same fields as `shop`. In both explicit and implicit inheritance, fields for keys that define the -preset are not inherited. E.g. the `shop` field is not inherited by `shop/…` presets. +preset are not inherited. E.g. the `shop` field is not inherited by `shop/…` presets. ##### `searchable` @@ -320,7 +320,7 @@ iD supports deployments which use a custom set of presets. You can supply preset the `presets` accessor: ```js -var id = iD.Context().presets({ +var id = iD.coreContext().presets({ presets: { ... }, fields: { ... }, defaults: { ... }, diff --git a/index.html b/index.html index 7d228f1db..20674de66 100644 --- a/index.html +++ b/index.html @@ -13,7 +13,7 @@