Bryan Housel
2453c5c8b7
Eliminate symlinks in repository - shelljs/shx can make them
...
(closes #3545 )
2016-11-30 17:06:33 -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
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
af3db7ea36
Swap url hash map order to zoom/latitude/longitude
...
(closes #3554 )
2016-11-10 09:56:20 -05:00
Bryan Housel
b8be480267
Tests for loadFromAPI, esp to cover retry and dispatch behaviors
2016-11-09 17:59:07 -05:00
Bryan Housel
9845f0594e
Don't rely on test side effects to init() osm service
2016-11-09 11:41:19 -05:00
Bryan Housel
16ada1f29a
Better error handling for common osm api error conditions
...
* if 509 Bandwidth Exceeded / 429 Too Many Requests, prompt for login
(closes #2262 )
* if 400 Bad Request / 401 Unauthorized / 403 Forbidden - logout and retry
(closes #3546 )
2016-11-08 21:43:27 -05:00
Jon D
fb72725b4d
Update test index after rename
2016-11-06 11:40:15 +00:00
Jon D
73f3069c59
Rename for consistency, add logic to prevent flip if all of object not visible and if linked to hidden. Label does not render for message when not enabled
2016-11-06 11:15:15 +00:00
Jon D
23990214be
Update to only flip around the vertical axis. Start renaming to 'reflect'
2016-11-06 10:48:48 +00:00
Jon D
58e05402f0
Update test index
2016-11-05 20:56:51 +00:00
Jon D
d8f2ce3ed2
More tests
2016-11-05 20:54:43 +00:00
Jon D
c1edd0f3f9
Remove unused projection parameter
2016-11-05 20:39:43 +00:00
Jon D
1eaa284afe
More tests, add uniq operator
2016-11-05 20:36:34 +00:00
Jon D
05421e1c25
Start adding tests
2016-11-05 20:20:27 +00:00
Bryan Housel
2273a6ed43
Allow multiple key bindings to be specified in an array
2016-11-04 09:41:44 -04:00
Bryan Housel
b3a86329de
Use new name iD.actionReverse
2016-10-31 16:17:33 -04:00
Bryan Housel
b054eb31e9
Merge branch '3076' of https://github.com/Psigio/iD into Psigio-3076
2016-10-31 16:06:32 -04:00
Bryan Housel
a8f12173ac
Multikeys filter should allow nested names, ignore alt prefixes
2016-10-31 15:06:17 -04:00
Bryan Housel
73d7fca095
Test should logout after authenticating with test credentials
2016-10-31 15:04:46 -04:00
Bryan Housel
9ee790c1cc
Don't need to pass dimensions to sublayers.. use projection.clipExtent
...
(the dimensions call to layers is to set width/height on svg surface element)
2016-10-30 22:40:11 -04:00
Bryan Housel
b2c8f72c95
no-native-reassign -> no-global-assign
2016-10-29 14:42:04 -04:00
Bryan Housel
cf11c95354
Fix Mapillary sign placement on Chrome, Safari 10
2016-10-29 00:59:51 -04:00
Bryan Housel
0066204cfa
Fix tests for iD.Connection -> iD.services.osm
2016-10-25 21:33:13 -04:00
Bryan Housel
e83b2ea2be
Allow delete key without modifier as shortcut for deleting
...
(closes #3455 )
Also fixed a minor bug in `iD.uiCmd` that was causing keyboard shortcuts
like '⌘⌫' to convert to 'Ctrl+Backspace+' (note extra trailing '+')
It affected only the tooltip display, not the key event binding.
2016-10-24 23:57:44 -04:00
Bryan Housel
b5c95af3b7
Refactor from coreConnection to serviceOsm
...
(closes #3497 )
2016-10-19 09:25:34 -04:00
Bryan Housel
1d03414b80
Allow forced utilDetect(), useful for testing
2016-10-18 21:56:24 -04:00
Bryan Housel
ad17220577
Pacify eslint
2016-10-18 00:44:31 -04: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
053074d076
Export live binding for services in iD.services, fix init/reset
...
(closes #3324 )
Previously we allowed devs to swap out services that they didn't need.
This became difficult now that ES6 exports are immutable bindings.
But we can wrap the immutable bindings themselves in a live object,
to get back the flexibility that we used to have.
This change also drops the `taginfo` accessor on Context, since devs who want
to swap out taginfo service with something else can now do so through the live
binding. `iD.services.taginfo = myTaginfo()`
2016-10-14 10:38:09 -04:00
Bryan Housel
b07bf8eaa2
Extract lane parsing code from way.js into lanes.js
2016-10-12 00:10:46 -04:00
Bryan Housel
f50e80d0b5
Refactor Intersection, Multipolygon from geo to osm
2016-10-11 23:09:27 -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
c4724d7ae7
Allow network, genus, taxon, species lookups to expect uppercase values
...
(closes #3377 )
In most cases we prefer taginfo value results with lowercase letters.
A few OSM keys expect values to contain uppercase values
This is not an exhaustive list (e.g. `name` also has uppercase values)
but these are the fields where taginfo value lookup is most useful.
2016-10-09 15:48:23 -04:00
Bryan Housel
bf67bb9534
iD.presets.presets (!) is now iD.presetsInit
2016-10-04 22:09:36 -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
Bryan Housel
4522d8f89a
Add some namespaces to test labels
2016-09-12 21:40:00 -04:00
Bryan Housel
bb942aa9b6
Add only a single defs element to surface
2016-09-09 23:20:48 -04:00
Bryan Housel
482b4d7cbe
mock userAgents in a way that works in both Phantom and real browsers
2016-09-09 14:59:55 -04:00
Bryan Housel
273407da3d
Fix svg layer selections, fix and add tests..
2016-09-09 14:19:13 -04:00
Tom MacWright
9c902dbf71
geoCentroid -> polygonCentroid
2016-09-06 18:13:50 -04:00
Tom MacWright
81c9c4bd95
Remove event-sim test
2016-09-06 17:37:26 -04:00
Tom MacWright
b7fffbd281
phantomjs doesn't support FocusEvent, moving back to makeEvent
2016-09-06 17:33:47 -04:00
Tom MacWright
a28e24bb4c
Fix lints
2016-09-06 17:29:03 -04:00
Tom MacWright
30f24062e2
Fix hover events
2016-09-06 11:49:24 -04:00