Commit Graph

1003 Commits

Author SHA1 Message Date
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
Tom MacWright
6bfe6a8640 Down to 7 test failures 2016-09-06 11:16:47 -04:00
Tom MacWright
20962074ba Fix vertices areas midlines 2016-09-06 10:58:07 -04:00
Tom MacWright
2b366b5f78 Fix access field 2016-09-06 10:06:28 -04:00
Tom MacWright
92f2908ffe Fix wikipedia 2016-09-05 21:48:22 -04:00
Tom MacWright
6189af9b47 fix localized 2016-09-05 21:40:41 -04:00
Tom MacWright
cb50b7b03a Fix raw tag editor tests 2016-09-05 21:30:21 -04:00
Tom MacWright
97ac0c06f1 Fix d3 reference 2016-09-05 11:07:33 -04:00
Tom MacWright
ed135ce9ef Enable lib tests 2016-09-05 10:22:45 -04:00
Tom MacWright
e659bd75e9 Fix assumption that [0] contains the nodes 2016-09-04 18:19:02 -04:00
Tom MacWright
a436bada3b Circularize expects rawmercator 2016-09-03 20:10:38 -04:00
Tom MacWright
0236389611 Fix Circularize logic 2016-09-03 19:33:19 -04:00
Bryan Housel
a86f34b4ef Pacify eslint, get build and tests running again 2016-08-26 01:15:07 -04:00
Bryan Housel
1021f6266f Merge branch 'master' into d3-v4 2016-08-25 16:22:50 -04:00
Bryan Housel
5a045933c6 Rename confirm -> uiconfirm and import to save.js
(closes #3373)
2016-08-24 16:03:23 -04:00
Kushan Joshi
cb670ccdc4 add test cases for bicycleway 2016-08-22 18:17:12 +05:30
Tom MacWright
cdb533fa84 Begin d3 v4 update 2016-08-21 15:19:27 -04:00
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