38 Commits

Author SHA1 Message Date
Kyle Hensel
7afecd39ec minor tweaks to make some tests pass 2024-09-03 19:23:21 +10:00
Milos Brzakovic (E-Search)
b577d9dcde disabled addNote test 2021-10-21 15:00:18 +02:00
Milos Brzakovic (E-Search)
b78a8d5d2a fix addNote test 2021-10-21 14:43:05 +02:00
Bryan Housel
003628d6b0 Try not to load imagery when running tests
By default, the `rendererBackground` code will choose an initial imagery based on what
sources are available at the given map location. It looks like this code will fallback
to "custom" _before_ "none", and I noticed that in some cases it was trying to fetch
whatever source happened to be stored in the "custom" template in localStorage.

This commit adds an explicit window.location.hash in a few places to encourage the
background layer to be "none". Some tests do change the hash, so this isn't perfect.
2021-08-16 22:51:39 -04:00
Bryan Housel
33fab5580b Before calling init() make sure the assetPath is set
init kicks off building the ui, which can fetch spritesheets for the <defs>
The assetPath needs to be set otherwise these files will not be found
2021-08-16 22:06:42 -04:00
Milos Brzakovic
21b0fc4f36 semi 2021-08-11 19:57:40 +02:00
Milos Brzakovic
ee072772c2 addNote test fix 2021-08-11 19:27:37 +02:00
Quincy Morgan
ebc3a2c322 Remove coreContext.changes passthrough function 2020-03-22 11:06:58 -07:00
Bryan Housel
e19bcb77d5 Require init() call before coreContext starts doing things
(closes #7304)
2020-01-29 19:27:12 -05: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
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