Add a test for IDBFactory cmp
Use 'new TypeError()'
Updated
Merge pull request #905 from yunxiaoxie/yunxiaoxie/idbfactory-cmp

Add a test for IDBFactory cmp