Quincy Morgan
cbc6b72a68
Update code test
2020-06-09 17:47:34 -04:00
Quincy Morgan
039168ad0c
Update code test
2020-06-09 17:43:55 -04:00
Quincy Morgan
40fd7d3964
Be lenient with utilUnicodeCharsTruncated tests for emojis
2020-06-09 17:38:55 -04:00
Quincy Morgan
2de870ff58
Be lenient with utilUnicodeCharsCount tests for emojis
2020-06-09 17:23:22 -04:00
Quincy Morgan
762307bd7d
Restrict key, value, and role character limits based on unicode characters, not UTF-16 code units (re: #6817 )
2020-06-09 15:41:15 -04:00
Bryan Housel
dc7fba4bf8
Have utilStringQs advance past any leading '?' or '#' characters
...
This lets us remove a bunch of substring(1) and +1 from the code.
2020-02-20 17:09:54 -05:00
Bryan Housel
030a85199f
Add support for AES encrypt/decrypting sensitive values
...
(closes #7355 )
2020-02-13 13:12:24 -05:00
Bryan Housel
7b4a9a43b0
Change utilTagDiff to return an object with details
2019-05-02 22:59:41 -04:00
Bryan Housel
ed9a436318
Move common tag diffing code from validators into utilTagDiff
2019-05-02 11:16:15 -04:00
Bryan Housel
d18b951c67
Remove lodash flatten and flattenDeep
...
(re: #6087 )
2019-03-28 10:04:46 -04:00
Bryan Housel
3896b2282f
Remove lodash isNaN, isNumber, isString, bind, uniqBy
...
(re: 6087)
2019-03-27 23:11:45 -04:00
Bryan Housel
3d80e6505f
Remove lodash chunk, groupBy
...
(re: #6087 )
2019-03-27 16:18:41 -04:00
Bryan Housel
c5c0d27c85
Add util functions for set operations
2019-03-26 17:50:00 -04:00
Bryan Housel
4821bf0a68
Remove lodash omit
...
(re: #6087 )
2019-03-26 14:12:45 -04:00
Bryan Housel
9e4cf126c3
Remove unneeded utilGetPrototypeOf and just use Object.getPrototypeOf
2019-03-25 22:16:58 -04:00
Bryan Housel
71b2d2c6b7
Upgrade legacy symbols in tests
...
- iD.Context -> iD.coreContext
- iD.Graph -> iD.coreGraph
- iD.Node -> iD.osmNode
- iD.Way -> iD.osmWay
- iD.Relation -> iD.osmRelation
2019-01-30 15:43:02 -05:00
Bryan Housel
e3f5aecda9
Remove dataSuggestions and utilSuggestNames
...
- dataSuggestions was just a reexport of the name-suggestion-index
- utilSuggestNames was a combobox fetcher function used only once by uiFieldLocalized
Doesn't need to be a util if it's only used once in the code
and the tests for it were not really that interesting
2018-11-20 21:27:32 -05:00
Bryan Housel
152022aec4
Use context.keybinding for keybindings that don't change
...
(closes #5487 )
2018-11-13 20:57:21 -05:00
Bryan Housel
bb30cbf555
Move lib/d3.keybinding.js -> util/keybinding.js
...
almost none of the original d3 "plugin" code remains
2018-11-13 13:42:09 -05:00
Bryan Housel
c08d79e488
Extract tag cleaning code to utilCleanTags, add tests
...
(closes #4925 )
2018-03-22 14:46:36 -04:00
Bryan Housel
c18cc7577d
Add flash test, avoid using sinon.useFakeTimers in tests.
...
sinon.useFakeTimers mocks setInterval, setTimeout, etc,
but not requestAnimationFrame, which d3 transitions rely on.
2017-02-11 00:19:49 -05:00
Bryan Housel
6ab9489fe7
Add utilGetAllNodes to get all nodes and descendants
2016-12-20 22:37:53 -05:00
Bryan Housel
87950fd472
Fix lib export, flatten names in tests and docs
2016-10-04 21:56:09 -04:00
Bryan Housel
5f496f2020
Cleanup test html, alphabetize, make sure all tests run
2016-07-14 12:59:47 -04:00
Kushan Joshi
5a87558f97
Remove linting errors from spec/util
2016-06-15 18:26:11 +05:30
Aaron Lidman
ff97d44395
Add tests for suggestNames
2013-11-01 16:57:33 -07:00
John Firebaugh
81bc280aba
More reliable method for mutexed localStorage saves
...
Fixes #1883
2013-10-10 14:59:48 -07:00