Add more tests for IndexedDB exception

 - rewrite the valid checkpoints from #292
Merge pull request #846 from yunxiaoxie/yunxiaoxie/IndexedDB-exception

Add more tests for IndexedDB exception