Thodoris Greasidis
4ceeb22304
test(api): refactor & add extra dropInstance tests
2018-01-28 19:47:00 +02:00
Thodoris Greasidis
2f917c00a5
test(api): add extra dropInstance tests
2018-01-21 22:01:42 +02:00
Thodoris Greasidis
6042210395
refactor: format sources with prettier
2017-12-18 08:42:12 +02:00
Tran Tu
e53173b2e2
fix(indexeddb): cast null to undefined before storing value
...
to support Microsoft Edge
fixes #760
2017-11-28 10:21:25 -08:00
Thodoris Greasidis
226d4338bb
Merge branch 'thgreasi-drop-instance-v2' into drop-instance-v2-rebase
2017-11-05 13:59:31 +02:00
Thodoris Greasidis
8792f57a46
test(api): check unnecessary logs from createInstance()
2017-10-10 20:38:23 +03:00
Matthew Riley MacPherson
64237340fc
fix: Typos and package issues
2017-09-23 23:20:41 +01:00
Matthew Riley MacPherson
5ef1585f20
Merge branch 'drop-instance-v2' of https://github.com/thgreasi/localForage into thgreasi-drop-instance-v2
2017-09-23 23:02:24 +01:00
tofumatt ☕️
21e146c473
Merge pull request #726 from thgreasi/eslint
...
chore: migrate to eslint
2017-09-23 21:43:53 +01:00
Thodoris Greasidis
56a6eb1872
test(api): test creating multiple instances on the same store
...
Resolves #734
2017-09-17 21:12:20 +03:00
Thodoris Greasidis
5cded532fb
refactor: fix eslint errors
2017-08-16 16:12:35 +03:00
Thodoris Greasidis
8f2da9f9a5
test(api): add dropInstance Tests
2017-07-23 17:15:25 +03:00
Thodoris Greasidis
60201b286e
test(api): test IDBD concurrent requests after InvalidStateError
2017-05-14 15:25:25 +03:00
Thodoris Greasidis
bcf62c531a
test(api): test IDBD reconnect after InvalidStateError
2017-05-07 10:43:27 +03:00
Thodoris Greasidis
d6614752c7
test(WebSql): retry operation after Quota Error
2017-01-31 20:00:15 +02:00
Nolan Lawson
44194a81b9
chore(localforage): promise -> lie, use ES6 modules
2016-04-24 21:44:24 -04:00
Sébastien Tisserant
6cb07ed0f0
Actual fix for issue #492 (instance concurrency on same database)
2016-01-21 02:48:15 +01:00
Sébastien Tisserant
d294c4c566
Fix issue #492 (instance concurrency on same database)
...
Specialize the default `ready()` function by making it dependant
on the current database operations. Thus, the driver will be actually
ready when it's been initialized (default) *and* there are no pending
operations on the database (initiated by some other instances).
2016-01-12 14:32:53 +01:00
vspirin
92313a35dc
use expect for compare tested values for Blob support tests
2015-11-25 10:15:24 +02:00
vspirin
bea565aeaf
fix and add Blob support tests
2015-11-24 12:39:23 +02:00
Matthew Riley MacPherson
69764b538c
Allow longer for tests to run in browser
2015-10-09 13:49:36 +01:00
Matthew Riley MacPherson
11666c29f5
Merge branch 'fix/same-name-but-different-store-name-causes-exceptions' of https://github.com/ecraft/localForage into ecraft-fix/same-name-but-different-store-name-causes-exceptions
2015-10-09 13:46:04 +01:00
Matthew Riley MacPherson
1d4f974603
Merge pull request #452 from sebweaver/issue-342-multiple-stores-on-same-db
...
Fix #342 : multiple stores on the same database
2015-10-07 12:36:40 +01:00
Thodoris Greasidis
a04f672e45
test(localforage): add test cases for getSerializer method
2015-10-02 08:42:19 +03:00
Thodoris Greasidis
4bd1f44df4
test(websql,localstorage): test that the serializer is exposed on dbInfo
2015-10-02 08:42:19 +03:00
Sebastien Tisserant
7c409750ac
Enrich test cases
2015-09-26 02:42:26 +02:00
Sebastien Tisserant
bad9d5209e
Fix #342 : multiple stores on the same database
...
Implementation summary for IndexedDB:
- Keep track on all running forages per database.
- Wait for them to be ready before processing any new connection to the same
database.
- Probe the current database to check if an upgrade is required (greater version
or new store).
- If so, upgrade the database by reopening it.
- Share the final connection (original or upgraded) amongts all running forages.
Implementation summary for localStorage:
- Prefix the key with the store name (after database), unless it's the default
name.
2015-09-25 19:43:59 +02:00
Thodoris Greasidis
4cdfec4edb
test(api): wait for .ready() before testing the for the driver()
2015-09-12 11:50:07 +03:00
Thodoris Greasidis
b14f95a32a
test(localforage.setDriver): add failing-driver-init skip test
2015-09-12 11:39:26 +03:00
Matthew Riley MacPherson
cff58d66cf
Tweak iteration code for master
2015-09-12 00:15:50 +01:00
Matthew Riley MacPherson
0b072de061
Merge branch 'af7-patch-fix-IterationNumber-on-localStorage-master' of https://github.com/af7/localForage into af7-af7-patch-fix-IterationNumber-on-localStorage-master
2015-09-11 23:38:07 +01:00
Thodoris Greasidis
2038ff0171
test(localforage): add test cases for getDriver method
2015-09-08 09:07:25 +03:00
Thodoris Greasidis
7a284a5f14
test(api): initialize appropriateDriver before any it runs
2015-09-08 09:07:25 +03:00
afil
28139d63d3
Fix the iterationNumber logic on localStorage
2015-08-26 20:01:42 +03:00
Matthew Riley MacPherson
b13fb84f7c
Clean up test code on iterate
...
Some of the comments here were misleading.
Close #428
2015-08-24 23:53:29 +01:00
afil
bf387fc70f
Add missing done()
2015-08-19 12:10:39 +03:00
Matthew Riley MacPherson
2c78f3be85
Add tests for #418
...
Fixes #407 .
2015-08-13 18:49:28 +01:00
Matthew Riley MacPherson
3257d192e4
Use supports() for all tests ( close #403 )
2015-07-27 17:24:29 +00:00
Matthew Riley MacPherson
bc77388daa
Prevent Safari and iOS from running IndexedDB tests
2015-07-27 17:24:29 +00:00
Nolan Lawson
080f665038
( #241 ) - fix blob support in old Chrome IDB
2015-06-01 17:36:18 +01:00
Per Lundberg
858b3aeec9
Added failing test for #342 .
2015-04-28 08:34:47 +03:00
Matthew Riley MacPherson
5341832ea2
Improve fix for #175 and add tests for it
2015-03-11 16:00:57 +00:00
Stéphane Bachelier
9799674435
chore(jscs): force 4 space indent and fix linting issue
2015-02-26 01:17:52 +01:00
Paul Salaets
ec25fa023f
testing that localStorage driver ignores keys it didn't add, fixes #277
2015-02-18 20:47:48 -05:00
Matthew Riley MacPherson
209263ffaa
Make test longer to prevent Travis timeouts
...
Should REALLY fix #287 and fix #321
2015-01-05 19:37:34 -05:00
Paul Salaets
6015998612
3rd param to iterator is 1-based iteration number
2014-12-20 12:18:48 -05:00
Matthew Riley MacPherson
80236e699d
Actually fix #287 ?
2014-12-19 14:33:25 -05:00
Dave Gramlich
b21c643c0e
Simplified Promise logic for localStorage driver - closes #307
2014-11-20 18:14:08 -05:00
Matthew Riley MacPherson
2bcdc51360
Tidy up code nits
2014-10-28 17:05:56 -04:00
Denis Yaremov
b0c8a5b96d
Iterate functionality fixes related to callback misuse
2014-10-23 00:09:20 +03:00