253 Commits

Author SHA1 Message Date
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
Javier Abadia
08436411d0 fixed paths in tests 2014-01-02 17:08:29 +01:00
Javier Abadia
9f520a9e02 unused file 2014-01-02 17:04:30 +01:00
Javier Abadia
32f2e89024 reorganized test files 2014-01-02 17:03:31 +01:00
Javier Abadia
11cb078d09 moved 'tiles' directory to 'lib' dir 2014-01-02 17:02:13 +01:00
Javier Abadia
13991a0736 some tests take longer in one of my computers 2014-01-02 12:59:28 +01:00
Javier Abadia
4aa61688fc this made one of the tests fail 2013-12-21 10:58:21 +01:00
Javier Abadia
1ff8a9a3f2 it seems to take a bit to delete all objects from the store, we let it breath before requesting the tile count 2013-12-21 00:40:11 +01:00
Javier Abadia
c24636313c more tests 2013-12-21 00:10:09 +01:00
Javier Abadia
9bf4371915 async testing 2013-12-21 00:10:09 +01:00
Javier Abadia
e11bca136d more tests 2013-12-21 00:07:19 +01:00
Javier Abadia
31f6ef00bf more unit testing 2013-12-21 00:07:19 +01:00
Javier Abadia
d827470635 completed some specs 2013-12-21 00:07:19 +01:00
Javier Abadia
d2b4daa6c4 started writing some unit tests 2013-12-21 00:07:18 +01:00
Javier Abadia
5df313661e change module loading to allow unit testing 2013-12-21 00:07:18 +01:00
Javier Abadia
86cb30b308 moved jasmine lib to \vendor directory 2013-12-21 00:07:18 +01:00
andygup
0682a07c8f addt’l stabilization fixes to offlineStore. 2013-12-19 15:22:15 -07:00
andygup
42c5a9b777 refactoring related to adding phonegap functionality and tests 2013-12-16 17:54:54 -07:00
Javier Abadia
719ee2378f this is not needed as OfflineStore.js loads its own dependencies 2013-12-15 18:05:42 +01:00
Javier Abadia
b7abb3ce4e now script loading works from any subdir, regardles of the absolute url location 2013-12-15 18:00:02 +01:00
andygup
22e7852548 replaced old offline detection with offline.js functionality 2013-12-13 18:06:29 -07:00
andygup
1a12d8fc9d Breaking changes! Restructured main directory. Moved editing libraries, etc into a new /edit directory. 2013-12-13 12:32:01 -07:00
andygup
ab7c164c01 Many bug fixes. Jasmine now points to main /src dir. 2013-12-02 11:51:30 -07:00