253 Commits

Author SHA1 Message Date
Javier Abadia
0f76800d34 allow time for changes to persist 2014-04-14 17:42:12 +02:00
Javier Abadia
25d427faaf added replaceFeatureId() method to low level attachmentsStore module 2014-04-14 17:34:41 +02:00
Javier Abadia
20578f3bf3 more unit testing 2014-04-14 13:38:58 +02:00
Javier Abadia
f57f22dd7a keep working in attachment unit tests 2014-04-14 12:11:36 +02:00
Javier Abadia
6638bd9a0f Merge branch 'jabadia-attachments' of github.com:jabadia/offline-editor-js into jabadia-attachments 2014-04-14 11:25:22 +02:00
Javier Abadia
701789f6ad moved attachments testing into separate test suite 2014-04-10 23:10:13 +02:00
Javier Abadia
9ca50f6f00 started writing unit tests for attachment management 2014-04-10 22:48:46 +02:00
Javier Abadia
d93ff253da new method to delete all attachments of a feature 2014-04-10 22:48:46 +02:00
Javier Abadia
74d6ec5563 store featurelayerurl along with attachment, so that we can keep attachments for different feature layers in the same indexeddb objectstore 2014-04-10 22:48:45 +02:00
Javier Abadia
a1225faaac noticed a potential problem if we have multiple input nodes or multiple files 2014-04-10 22:48:45 +02:00
Javier Abadia
e13b12904d store attachments in local storage
query them when showing the popup (can't display them though)
2014-04-10 22:48:45 +02:00
Javier Abadia
1de689bf3d delete all attachments after testing 2014-04-10 22:48:44 +02:00
Javier Abadia
7795fe0235 changed properties of stored attachments to mimic return values of queryAttachmentInfos REST API 2014-04-10 22:48:44 +02:00
Javier Abadia
6569b8353e unit testing fo attachmentsStore.js 2014-04-10 22:48:44 +02:00
Javier Abadia
a36aa531a3 started writing unit tests for attachment management 2014-04-10 00:20:52 +02:00
Javier Abadia
0d66b7e4c9 new method to delete all attachments of a feature 2014-04-09 23:19:23 +02:00
Javier Abadia
d6b6af7c0b store featurelayerurl along with attachment, so that we can keep attachments for different feature layers in the same indexeddb objectstore 2014-04-09 18:10:44 +02:00
Javier Abadia
3f8273be9e noticed a potential problem if we have multiple input nodes or multiple files 2014-04-09 18:10:43 +02:00
Javier Abadia
989de0688d store attachments in local storage
query them when showing the popup (can't display them though)
2014-04-09 18:10:42 +02:00
Javier Abadia
f0f50a354e delete all attachments after testing 2014-04-09 18:10:41 +02:00
Javier Abadia
c50559a575 changed properties of stored attachments to mimic return values of queryAttachmentInfos REST API 2014-04-09 18:10:40 +02:00
Javier Abadia
c650761c7f unit testing fo attachmentsStore.js 2014-04-09 18:10:38 +02:00
Javier Abadia
be8c36f827 add test for duplicate tile store 2014-04-04 00:34:54 +02:00
andygup
77aba43e5b validate if urls are actual urls 2014-03-31 17:33:59 -06:00
andygup
1ceb0dabac updated spec to include two new helper methods 2014-03-30 17:31:16 -06:00
Javier Abadia
2e766176b0 Convert offlineTileEnabler to a Class
closes #124
2014-03-02 17:50:53 +01:00
andygup
6eb12ebd12 fixes default proxy paths. 2014-02-26 13:41:45 -07:00
andygup
60c13f494e fixes some breaking changes from last nights PR 2014-02-25 09:46:35 -07:00
andygup
e030934ca8 updated tileEnabler spec to 3.8 2014-02-21 18:17:43 -07:00
andygup
7e5a2c477b fixed "gets level estimation" spec. Working again. 2014-02-20 16:40:02 -07:00
Javier Abadia
bf3e419b05 changed name of private methods 2014-02-18 10:30:05 +01:00
Javier Abadia
8d7ef26efc renamed offlineEnabler to offlineTilesEnabler 2014-02-18 09:21:11 +01:00
Javier Abadia
90afc39446 removed unused unit tests 2014-02-17 23:50:55 +01:00
Javier Abadia
c597111832 tool to test localStorage full condition 2014-02-14 14:11:23 +01:00
Javier Abadia
535e2c3d06 update unit test 2014-02-11 22:57:06 +01:00
Javier Abadia
08a97f2c7b trying to catch quota errors at application level... not that easy! 2014-02-11 22:40:17 +01:00
Javier Abadia
890f531cda additional test 2014-02-10 00:56:52 +01:00
Javier Abadia
484562b1c5 fixed unit test after changing feedback methods 2014-02-09 23:45:04 +01:00
Javier Abadia
236fec392c tests are not done until the callbacks return 2014-02-09 23:28:11 +01:00
Javier Abadia
d8c69da02a removed check for duplicate edits, they actually make sense in a repeated undo/redo scenario 2014-02-05 00:06:48 +01:00
Javier Abadia
cb6d15baf3 fixed problem when all edits cancel themselves 2014-02-04 23:09:27 +01:00
Javier Abadia
75596e1b39 unit test for problem fix 2014-02-04 23:09:27 +01:00
Javier Abadia
ea17b7af46 better handling of pushEdit() errors 2014-02-04 11:54:02 +01:00
Javier Abadia
8c05c4c966 method not needed (and unit test neither) 2014-02-04 11:52:24 +01:00
Javier Abadia
9036dbcbc1 removed undo/redo support at low level 2014-02-04 11:52:12 +01:00
Javier Abadia
050934642f safe use of for...in to iterate over object keys 2014-02-03 11:04:29 +01:00
Javier Abadia
d6ef178792 queue optimization and return server responses to upper level code 2014-02-02 19:42:10 +01:00
Javier Abadia
93dac25947 it works! 2014-02-02 11:08:05 +01:00
Javier Abadia
53bd67ad57 unit testing now includes edits for another layer 2014-02-01 19:04:17 +01:00
Javier Abadia
742f641ff8 test for graphic objectids in local layer 2014-02-01 16:28:01 +01:00