Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix IndexedDB 2.0 unit tests #581

Merged
merged 5 commits into from Aug 30, 2017
Merged

Fix IndexedDB 2.0 unit tests #581

merged 5 commits into from Aug 30, 2017

Conversation

dfahlander
Copy link
Collaborator

No description provided.

Some backround:
The Dexie unit tests for binary key support (IndexedDB 2) was written by spec before they were released on browsers. The tests had bugs so that when browsers came out with binary key support the unit tests started failing.

This commit fixes the broken unit tests and also fixes an issue with Dexie to fully support binary primary keys in or-queries.
I've found a bug in FF55 where it wont allow calling IDBObjectStore.get() or IDBObjectStore.delete() passing a binary key as argument. This has been reported as issue https://bugzilla.mozilla.org/show_bug.cgi?id=1395071

The binary keys tests now avoids calling these methods. They must also cleanup the added items in the tables as the test runner would otherwise stumble on FF bugs when resetting the database between tests.
@dfahlander dfahlander merged commit 8d41fa9 into master Aug 30, 2017
@dfahlander dfahlander deleted the fix_broken_binarykeys branch August 30, 2017 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant