The tests produce various database files. To print out detailed debug messages, add this line to your script: Is the documentation helpful? Stack Overflow for Teams is a private, secure spot for you and your coworkers to find and share information. If you find a bug, please let us know about it. Looks like you've encountered this issue:
Uploader: | Douzuru |
Date Added: | 7 August 2010 |
File Size: | 53.77 Mb |
Operating Systems: | Windows NT/2000/XP/2003/2003/7/8/10 MacOS 10/X |
Downloads: | 78261 |
Price: | Free* [*Free Regsitration Required] |
IndexedDB Polyfill
You can use this configuration to change the default to match the spec or as you see fit. Star Fork Watch Issue Download. Rather than using globals, a method has been provided to share state across IndexedDBShim modules. We are working on fixing this.
If you find a bug, please let us know about it. There are two possible workarounds for this:. By using our site, you acknowledge that you have read and understand our Cookie PolicyPrivacy Policyand our Terms of Service. RoryKoehein oh right, so assuming i want to change my globalVars.
Post as a guest Name. Either way, you can use IndexedDB just like normal. Ive just started using it and got this error when only running HTML and im not able to use anything in the files. How do we handle problem users? All QUnit-based browser tests should pass except one index. For example, on Internet Explorer, this will add support for compound keys.
There are two plugins available: Is the documentation helpful?
There are currently three folders for tests, tests-qunittests-mocha and tests-polyfill the latter are also Mocha-based tests, but at present only work in Node. Would you recommend this project? All Mocha-based browser tests should pass except for one test having a problem in Indexeddbahim.js.
IndexedDBShim
In the future we may allow the spec behavior via optional dynamic loading of an internal module. Clone this repo git clone https: Deni Spasovski Deni Spasovski indexeddbshi.mjs, 2 2 gold badges 25 25 silver badges 46 46 bronze badges.
Note that, for the Mocha tests, you probably wish to "Switch to IndexedDBShim" when doing the testing since otherwise, it will only test the native implementation. Contributing Pull requests or Bug reports welcome!! All code has bugs, and this project is no exception.
Now im convinced im doing something wrong. Please make sure someone else hasn't already reported the same bug though.
You wouldn't have that file, it's a source file which is built to IndexedDBShim. The easiest solution is to comment out 'use strict' in IndexedDBShim. Follow all of the steps above to build the project, then run npm test or npm run phantom-qunit or inndexeddbshim.js phantom-qunit to run the unit tests.
Subscribe to RSS
In all browsers the keyword indexedDB is now a standard http: You can download the development or production minified script, or install it using NPM or Indexeddbzhim.js. Debugging The IndexedDB polyfill has sourcemaps enabled, so the polyfill can be debugged even if the minified file is included. Indexeddbshmi.js the project reliable?
If the browser already natively supports IndexedDB, then the script won't do anything. Due to a bug in WebKitthe window. The error im getting is:
Comments
Post a Comment