75 Commits

Author SHA1 Message Date
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
Javier Abadia
46370e16e8 some tests pending 2014-01-31 01:27:29 +01:00
Javier Abadia
ca3a0fe806 good progress in unit testing 2014-01-31 01:00:01 +01:00
Javier Abadia
842f35a2b1 unit testing for offlineFeaturesManager 2014-01-30 18:26:46 +01:00
Javier Abadia
0bbf9ca83a take care of updates for features added offline (replace negative tmp id by final id)
still has the problem with the Editor that removes the graphic from the layer after the update
2014-01-28 23:20:39 +01:00
Javier Abadia
f06607467a better handling of long tests 2014-01-28 23:20:39 +01:00
Javier Abadia
0f35c55f7b getEditsStoreSizeBytes() works also when the localStorage is not initialized (our keys don't exist) 2014-01-28 23:20:39 +01:00
Javier Abadia
35ca131086 controlling QuotaError when localStorage is full 2014-01-28 23:20:38 +01:00
Javier Abadia
7e288a2d6a unit tests also AMD compliant 2014-01-22 00:19:45 +01:00
Javier Abadia
d29dfb8b85 added methods:
isSupported()
getEditsStoreSizeBytes()
getLocalStorageSizeBytes()
2014-01-21 23:25:49 +01:00
Javier Abadia
008edaf67b renamed graphicsStore -> editsStore 2014-01-21 10:24:58 +01:00
Javier Abadia
67fd4c0be9 reorganized tests and methods 2014-01-21 00:26:11 +01:00
Javier Abadia
5733080102 undo/redo management & tests 2014-01-21 00:15:27 +01:00
Javier Abadia
f7ff11f572 serialize/deserialize don't need to be public operations
serialize graphics only to JSON object... the 'edit' will be serialized to string
2014-01-20 23:07:48 +01:00
Javier Abadia
f3f1d9fc53 low level management of pending edits storage in localStorage, looking very good 2014-01-20 17:58:57 +01:00
Javier Abadia
88752ba1fb serialization/deserialization: simple and correct 2014-01-20 11:55:43 +01:00
Javier Abadia
bee248312b it's nearly working 2014-01-20 00:30:40 +01:00
Javier Abadia
9299d4cb70 simplified TOKEN separator logic, much easier when putting TOKENS between elements, and not AFTER elements 2014-01-18 22:34:22 +01:00
Javier Abadia
6e08c15e19 use strict 2014-01-18 20:15:36 +01:00
andygup
593eb57ec4 Initial restructing of _reestablishInternet() and it’s related functionality. 2014-01-17 09:12:34 -07:00
andygup
fa1a50eb71 Fixed another undo bug. 2014-01-14 17:15:58 -07:00
andygup
5699d417e0 More changes related to handling rollback of an edit. Plus fixes for applyEdit bugs. Some changes were lost related to a corruption in my local git. 2014-01-14 12:00:33 -07:00
andygup
2aba3c7e03 more infrastructure to support rollback of an offline edit 2014-01-12 22:31:00 -07:00
andygup
d9efc11592 Closes #40. Also added tests to support that issue. 2014-01-10 18:20:54 -07:00
andygup
0ae10f89b4 rewrote event bus in OfflineStore 2014-01-09 18:07:13 -07:00
andygup
f41f1b7ac0 fixed index getters and setters. Added addt’l tests to validate index data 2014-01-08 11:01:10 -07:00
andygup
4007637b31 restructured phonegap sample directory. Minor update to readme 2014-01-07 11:45:38 -07:00
Javier Abadia
5e8bc33dca moved 'edit' directory to 'lib/edit' 2014-01-03 00:44:54 +01:00
Javier Abadia
4554b3cada more paths fixed 2014-01-03 00:39:02 +01:00