Commit Graph

65 Commits

Author SHA1 Message Date
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
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
John Firebaugh
41548c25bf Restore map update event (fixes #167) 2012-12-03 15:59:05 -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
Tom MacWright
24422c61e6 Test background and style 2012-12-03 12:21:37 -05:00
Tom MacWright
1b0c0aeaa3 More specs, more tests 2012-12-03 12:11:00 -05:00
John Firebaugh
26ef972199 Restore map.surface
Fixes #166
2012-12-03 10:49:54 -05:00
John Firebaugh
fbf03afb43 Fix XML specs 2012-12-03 09:15:10 -05:00
John Firebaugh
2b1559bb96 d3 style map 2012-12-02 20:36:14 -05:00
John Firebaugh
aeb288fe4e Test/fix hash 2012-12-02 20:33:42 -05:00
John Firebaugh
28f8275526 Eliminate failing tile requests in specs 2012-12-01 14:56:16 -08:00
John Firebaugh
bbdd4a7bcb d3 style map.extent() 2012-12-01 14:37:04 -08:00
John Firebaugh
8cfd0be2f8 d3 style map.zoom() 2012-12-01 14:30:24 -08:00
John Firebaugh
45270b55d2 d3 naming convention 2012-12-01 08:21:02 -08:00
John Firebaugh
852720bc85 Fix spec 2012-11-30 07:21:29 -08:00
John Firebaugh
23f435759e Fix specs 2012-11-30 07:14:15 -08:00
Tom MacWright
81a9349e82 Patch up tests, go to simpler map api 2012-11-29 15:36:33 -05:00
John Firebaugh
75f8711e64 Add iD.{Node,Way,Relation} constructors
Even if we don't want subclasses, they are handy for
assigning the right type and an appropriate ID.
2012-11-26 22:00:39 -04:00
John Firebaugh
cc7328d1c9 Extract Entity#created and Entity#modified 2012-11-26 21:48:40 -04:00
John Firebaugh
447b89fa01 Entity specs 2012-11-26 21:24:26 -04:00
Tom MacWright
1bb6915bad Expand map tests 2012-11-26 18:40:17 -05:00
Tom MacWright
2ec9f4c02f Test graph 2012-11-26 17:56:06 -05:00
Tom MacWright
704bd1af2e Test XML formatter as well 2012-11-26 17:46:04 -05:00
John Firebaugh
f73f1a5429 Add Inspector specs 2012-11-25 16:21:52 -04:00
Tom MacWright
4bc8313157 Fix tests 2012-11-13 21:23:23 -05:00
Tom MacWright
2b38b38313 Fixup tests 2012-11-06 16:23:50 -05:00
Tom MacWright
75d9331233 Start traversing the graph, other changes
Adds GeoJSON viewing to features, unifies the way that features refer
to their children.
2012-11-01 10:55:33 -04:00
Tom MacWright
8bca85d3b2 Entity as a mixin rather than a sub-object. 2012-10-31 21:07:29 -04:00
Tom MacWright
7154b68b71 Move graph out of connection, move more logic to Util, update tests. 2012-10-31 18:17:54 -04:00