Bryan Housel
89ad643977
Let new note generate its own id, instead of using -1
...
Also stringify the note id (because existing notes from OSM are this way)
Also make sure comments is initialized as an Array not an Object
Also clarify some of the tests
2018-07-24 14:11:08 -04:00
Thomas Hervey
26f045b16c
added/updated service/osm, osm/note, mode/add_note tests
2018-07-23 16:17:48 -04: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
93d50b4e87
Use live bound object for imagery array, remove context.imagery() accessor
...
Also update documentation, closes #3359
2016-11-14 11:16:45 -05:00
Bryan Housel
f800e5afbc
Remove unnecessary window parameter to Context
2016-11-10 15:19:03 -05:00
Bryan Housel
2023f28fee
iD.Way tests need context for proper setup of areaKeys
...
I'm not sure why this is failing all of a sudden
I think iD.modeAddPoint was setting it up for other tests to use
iD.modeAddPoint needs to be commented out because of happen mouse handlers.
Not happy about all the side effects in our test suite :-(
2016-10-17 19:09:12 -04:00
Bryan Housel
87950fd472
Fix lib export, flatten names in tests and docs
2016-10-04 21:56:09 -04:00
Bryan Housel
a86f34b4ef
Pacify eslint, get build and tests running again
2016-08-26 01:15:07 -04:00
Bryan Housel
7ca6d06254
Replace iD global with iD.Context() module ( #3254 )
2016-07-19 10:15:32 -04:00
Kushan Joshi
295b8544eb
Remove linting errors from spec/modes & spec/presets
2016-06-15 18:26:11 +05:30
John Firebaugh
ac3dfb95a3
Prevent AddPoint tests from making network requests
2016-02-08 19:02:37 -08:00
John Firebaugh
dd0e08b244
Write presets and imagery to standalone files
2014-10-23 15:52:29 -07:00
Bryan Housel
a9d58fdf74
reenter browse mode in editOff when zoom < 16 ( #2263 )
2014-06-27 17:55:13 -04:00
John Firebaugh
a84a3364cc
selection -> selectedIDs
...
Overloading "selection" is a bad idea.
2013-06-03 15:48:03 -07:00
Ansis Brammanis
cf5eb8a1c9
fix tests
2013-04-02 13:31:08 -04:00
Ansis Brammanis
a804e633f4
Fix tests, silence travis
2013-02-08 11:29:40 -05:00
Ansis Brammanis
4f6637d58b
Fix add_point tests (switch back to mouseup)
2013-02-06 19:11:28 -05:00
Tom MacWright
fbe3a41d57
Update tests for faux click events in more places.
2013-02-06 15:47:16 -05:00
Tom MacWright
4b76b136fa
Fix tests for faux click
2013-02-05 15:58:54 -05:00
John Firebaugh
000ceb6467
iD.Context -> iD
...
All the UI setup code moved to iD.ui.
2013-02-01 12:40:15 -05:00
John Firebaugh
7e68e8e114
Add iD.Context
...
This is a facade interface that ties together a bunch of
different internal objects and will make it easier to write
tests for behaviors, modes, and operations.
2013-02-01 12:40:15 -05:00
John Firebaugh
402a9424c0
Make selection an array of entity IDs
...
Should have no visible effect yet.
2013-01-31 13:51:12 -05:00
John Firebaugh
1be596c21b
Fix tests
2013-01-24 11:26:57 -05:00
John Firebaugh
7b18674e91
This is maybe working on PhantomJS now
2013-01-22 18:15:04 -05:00
John Firebaugh
ec6c74ebcd
Simplify inspector function nesting; cleanup
2013-01-02 21:35:09 -08:00
John Firebaugh
b134e95dbc
Disable spec failing on Travis until I can debug it
2012-12-18 12:39:45 -08:00
John Firebaugh
ad0efa4931
Place -> Point
...
We decided to use geometric terms for the modes.
2012-12-14 14:39:38 -08:00
John Firebaugh
c37aa11408
Start testing modes
2012-12-13 17:39:06 -08:00