189 Commits

Author SHA1 Message Date
Bryan Housel
ef95db8524 Add ability to history.pop n times
This is a little better than just calling pop a bunch of times because
it avoids dispatching extra history change events
2017-05-03 16:03:56 -04:00
Bryan Housel
2ebfcd174e Don't redo into un-annotated edit states
(closes #4006)
2017-05-03 00:21:37 -04:00
Bryan Housel
833a67f399 Allow history to set checkpoints and reset to them 2017-03-22 22:05:27 -04:00
Bryan Housel
9ba610a977 Add test for transitioned history.perform 2017-01-04 16:06:09 -05:00
Bryan Housel
9b7d79a3fe Use live bound object for presets object, change context.presets() getter 2016-11-14 15:44:02 -05:00
Bryan Housel
f800e5afbc Remove unnecessary window parameter to Context 2016-11-10 15:19:03 -05:00
Bryan Housel
b5c95af3b7 Refactor from coreConnection to serviceOsm
(closes #3497)
2016-10-19 09:25:34 -04:00
Bryan Housel
07fa5fcc34 Refactor Entity, Node, Relation, Tags, Way from core to osm 2016-10-11 22:41:24 -04:00
Bryan Housel
fd742518c6 Run all the tests 2016-10-11 15:31:11 -04:00
Bryan Housel
acd851b75a Merge branch 'lane' of https://github.com/kepta/iD into kepta-lane 2016-10-11 10:51:03 -04:00
Bryan Housel
87950fd472 Fix lib export, flatten names in tests and docs 2016-10-04 21:56:09 -04:00
Bryan Housel
a74157cb71 Add test for nonnumeric layer tag (see #3405) 2016-10-01 10:33:13 -04:00
Kushan Joshi
4c996b9b42 refactor none to null 2016-09-13 19:53:02 +05:30
Kushan Joshi
cb670ccdc4 add test cases for bicycleway 2016-08-22 18:17:12 +05:30
Kushan Joshi
c95df1c830 restructure lanesArray 2016-08-21 04:04:42 +05:30
Kushan Joshi
ce948f7563 modify test cases to adjust lanes != total lane count 2016-08-21 03:35:52 +05:30
Kushan Joshi
9f76267152 add psv, hov, hgv , bicycle lanes 2016-08-21 02:34:47 +05:30
Kushan Joshi
856f6618d9 format test cases 2016-08-20 18:34:50 +05:30
Kushan Joshi
80d2000291 add test cases for maxspeed & maxpseed:lanes 2016-08-20 18:32:35 +05:30
Kushan Joshi
51c0670a57 add maxspeed 2016-08-19 03:22:34 +05:30
Kushan Joshi
9a1c68f2b5 interim 2016-08-16 19:01:54 +05:30
Kushan Joshi
94b40cdfd0 add turn lanes 2016-08-16 16:04:33 +05:30
Kushan Joshi
24592f8b0a add test cases for lanes array 2016-08-06 16:21:14 +05:30
Bryan Housel
a85bad8c8c Restructure lane data (cherry pick) 2016-07-31 23:53:07 -04:00
Bryan Housel
7ca6d06254 Replace iD global with iD.Context() module (#3254) 2016-07-19 10:15:32 -04:00
Kushan Joshi
d130456393 make lane test lint free 2016-06-22 16:11:47 -04:00
Kushan Joshi
aa829ddf4d Lanes forward backward tests 2016-06-22 16:11:47 -04:00
Kushan Joshi
07827e5a2d Adding test case for lanes().default 2016-06-22 16:11:47 -04:00
Bryan Housel
9f1fff0828 Eliminate unused var lint warnings from tests 2016-06-15 10:30:06 -04:00
Kushan Joshi
6c542505a4 Add linting to spec/core 2016-06-15 18:26:11 +05:30
Bryan Housel
9c1e9c9b11 Explicitly test all the highway types for onewayness 2016-06-13 10:56:52 -04:00
Kushan Joshi
6ef52256f3 Migrating to lodash v4 2016-05-17 12:37:25 +05:30
Bryan Housel
c79c65fb39 Reinsert parentRelations of modified parentWays
(closes #3008)
2016-02-29 23:09:24 -05:00
John Firebaugh
a85361545d Preserve connectivity when pasting
Fixes #2584
2016-02-29 12:09:14 -05:00
John Firebaugh
0d2a742e18 Autocomplete changeset comments from previous changeset comments
Fixes #2002
2016-01-24 12:46:26 -08:00
Gregor MacLennan
facffcfc39 Correct iD.Way test to use Way() not Entity() 2015-10-27 12:18:05 -06:00
Martin Raifer
d7d3bb4cf8 update tests to reflect changes in dd32ec39
(The version attribute of the osmChange XML should read `0.6`)
2015-09-05 16:50:13 +02:00
Corey Farwell
56708858fb Use HTTPS if location protocol is HTTPS in iD.Connection
Relevant to https://github.com/strava/iD/issues/5#issuecomment-109800372
2015-06-27 14:06:58 -07:00
Bryan Housel
728036be51 Don't write unsavable changes to localStorage (closes #2705) 2015-06-20 12:21:29 -04:00
Bryan Housel
f4d93c442e Add connection#loadEntityVersion to fetch specific version 2015-06-18 11:46:43 -04:00
John Firebaugh
f8a68c879f Adjust tree for force-rebased entities
Previously, entities that already existed in the rtree prior to the rebase
option would end up duplicated in the tree afterward.

Fixes #2637
2015-05-09 14:38:41 -07:00
Bryan Housel
7adb0ddbfb Smarter revert of new entities, more tests
re: #2611, #537
2015-04-29 22:47:07 -04:00
Bryan Housel
ca02cf4b96 Graph#revert accept id instead of entity ref
trivial test cases (revert across create/update/delete) all pass
2015-04-28 11:22:46 -04:00
Bryan Housel
587d1451be More tests for Graph#revert (reverting new things should remove them) 2015-04-27 12:02:59 -04:00
Bryan Housel
6b18066dd6 Graph#revert (see #537) 2015-04-26 01:07:48 -04:00
Bryan Housel
55c4fce55f Merge pull request #2516 from bhousel/zorrofix
Avoid zorroing connected ways when moving a way
2015-03-20 22:30:34 -04:00
Bryan Housel
56449bc589 Pend some failing tests
They should work but they don't.  No idea why.  PhantomJS issue?
2015-03-03 21:06:28 -05:00
Bryan Housel
cb0e8ab66c Initial support for Multi Fetch GET
It will also be much faster to fetch the remote entities in batches
rather than one at a time through LoadEntity.

One bonus/hazard with Multi Fetch GET is that it will get deleted entities
with `visible=false`, rather than returning a HTTP Status Code 410 (Gone).

This will be the only way that we can really do proper undeletion
(Incrementing the current version by 1 is not guaranteed to work.  And
if a way is moved, fetching way/full will tell us whether the childnodes
are part of the way, but not necessarily whether they exist or not.)

We must be careful never to merge deleted entities into the real graph.
e.g, a deleted node will not have a 'loc' attribute, so code that assumes
every node must have a `loc` will be broken.

So because deleted entities are very special, the output from `loadMultiple`
should only be used for conflict resolution for now.
2015-03-03 20:54:09 -05:00
samanpwbb
d141827c3e Merge branch 'master' into conflict-resolution-ui 2015-02-06 19:08:50 -05:00
Bryan Housel
147e369c3b Add graph#overwrite (same as pop followed by perform)
to remove some of the overhead in creating difference and dispatching
change event multiple times..
2015-02-02 22:01:49 -05:00