Commit Graph

102 Commits

Author SHA1 Message Date
John Firebaugh
67ffd2e71b Revert "Copy entity in Graph#fetch"
This reverts commit 12d02e0a6b.
2012-12-06 19:16:54 -05:00
John Firebaugh
9743ee282b More mode and action overhaul
Pass entities to actions via id; this allows safe composition
of actions that modify the same entity.

Fix remaining ghost node cases (#213).

Create more logical undo states when drawing.
2012-12-06 18:39:51 -05:00
John Firebaugh
79e2d08c0d StartWay -> AddWay (for parallelism with AddNode) 2012-12-06 18:36:03 -05:00
John Firebaugh
27af384a3f Allow History#{perform,replace} to run multiple actions 2012-12-06 18:36:03 -05:00
John Firebaugh
4ee6e3ac1a Remove duplicate intersection function 2012-12-06 14:22:33 -05:00
John Firebaugh
0e2889d5d6 Add freezing specs 2012-12-06 14:20:02 -05:00
John Firebaugh
6b08193125 Introduce Entity transients; fix #187 2012-12-06 14:11:45 -05:00
Tom MacWright
5c6c271394 Split background sources into background_source 2012-12-06 11:12:06 -05:00
Tom MacWright
b79c2f7ac2 Test background subdomains 2012-12-06 11:08:35 -05:00
Tom MacWright
3b79854399 Fix tests 2012-12-06 10:46:21 -05:00
Tom MacWright
731df3ce41 Test backgroundsource, favor not making object-functions. 2012-12-05 17:34:47 -05:00
John Firebaugh
077e5cc9ce Rename various actions 2012-12-05 16:42:48 -05:00
John Firebaugh
5666cb774e Finish iD.actions.DeleteWay (fixes #72) 2012-12-05 16:35:13 -05:00
John Firebaugh
812b427ac4 Split remove action into DeleteWay and DeleteNode 2012-12-05 16:14:39 -05:00
John Firebaugh
d26c8638b3 Allow Graph to be constructed with an array of entities
Useful for tests.
2012-12-05 16:14:39 -05:00
John Firebaugh
fa1b536ce7 Default relation members to empty array 2012-12-05 16:14:39 -05:00
John Firebaugh
33beb3d2f0 Split actions into separate files 2012-12-05 16:14:39 -05:00
John Firebaugh
4a3169bb1d Test/refine iD.actions.remove 2012-12-05 16:14:39 -05:00
John Firebaugh
435be12529 Split modes into separate files 2012-12-05 12:52:26 -05:00
John Firebaugh
551a2df24e Replace Entity.{lat,lon} with Entity.loc
Fixes #189
2012-12-05 09:48:00 -05:00
Tom MacWright
22fe35723f Clean up, move stringQs to util 2012-12-04 18:28:22 -05:00
Tom MacWright
7828fa34c1 Test nodeIntersect 2012-12-04 18:24:55 -05:00
John Firebaugh
76849596f8 Move node removal into removeNodeWay action 2012-12-04 18:07:26 -05:00
John Firebaugh
f8fde1f10d Move node update into addWayNode action 2012-12-04 17:54:08 -05:00
John Firebaugh
12d02e0a6b Copy entity in Graph#fetch
This shouldn't be necessary, but someone is modifying them
in place and it's causing problems elsewhere.
2012-12-04 17:27:02 -05:00
Tom MacWright
340b97c0e9 Split more functionality into util.geo and test it. 2012-12-04 16:52:59 -05:00
John Firebaugh
44933c471f Test against packaged result 2012-12-04 14:00:29 -05:00
John Firebaugh
60e7698f1a Don't mutate entity in place 2012-12-04 14:00:29 -05:00
John Firebaugh
103678b36d Refine Entity and specs 2012-12-04 14:00:29 -05:00
Tom MacWright
a0d28c1e2d Expand tests, move way logic into entity.js and test it. 2012-12-04 13:06:21 -05:00
Tom MacWright
8c3aa832f0 Rename Util to util, expand tests, move more out of map.js 2012-12-04 12:53:16 -05:00
Tom MacWright
1bfce3aa50 Use a real connection for tests 2012-12-04 12:39:40 -05:00
Tom MacWright
60ba29518a Test XML decode 2012-12-04 11:57:21 -05:00
John Firebaugh
ddd40e190e Fix spec file case 2012-12-04 11:51:03 -05:00
John Firebaugh
b4707c3a1f Mirror main directory structure in specs 2012-12-04 09:50:07 -05:00
John Firebaugh
9bf208abae Clean up specs 2012-12-03 18:46:02 -05:00
John Firebaugh
0a1e0bdfe4 History#reset 2012-12-03 18:37:41 -05:00
John Firebaugh
8a8d6fae32 Move responsibility for dispatching change event to history 2012-12-03 18:37:41 -05:00
John Firebaugh
e93c9624d8 Convert History to module pattern
There is only ever one History, so memory use is not a
concern.
2012-12-03 18:37:41 -05:00
John Firebaugh
0370b487e3 Inject history dependency in map 2012-12-03 18:37:41 -05:00
Tom MacWright
7d1a94ae5c Include typeahead in tests 2012-12-03 17:09:42 -05:00
John Firebaugh
c1be31912f Fix specs 2012-12-03 17:00:06 -05:00
John Firebaugh
41548c25bf Restore map update event (fixes #167) 2012-12-03 15:59:05 -05:00
John Firebaugh
f130c325ae Updated .travis.yml for mocha 2012-12-03 15:36:43 -05:00
John Firebaugh
78c9b645cd Fix indent 2012-12-03 15:18:41 -05:00
John Firebaugh
c7fa59661a Convert tests to mocha+chai+sinon 2012-12-03 15:11:49 -05:00
Tom MacWright
f822830b79 Test styleclasses 2012-12-03 13:01:36 -05:00
Tom MacWright
71e0e9d96a Test friendlyName 2012-12-03 12:35:59 -05:00
Tom MacWright
2d2778aea0 Test out way rep as well 2012-12-03 12:31:02 -05:00
Tom MacWright
a4e480a3ab Test oauth 2012-12-03 12:28:11 -05:00