Revision 9d2308aa42c2c544d47cc1f70cb3d5dc8020b63a authored by Josh Matthews on 26 April 2016, 12:58:32 UTC, committed by Ms2ger on 26 April 2016, 12:58:35 UTC
1 parent dac45e9
idbobjectstore_count4.htm
<!DOCTYPE html>
<meta charset="utf-8">
<title>IDBObjectStore.count() - If the object store has been deleted, the implementation must throw a DOMException of type InvalidStateError </title>
<link rel="author" title="Intel" href="http://www.intel.com">
<link rel="help" href="https://dvcs.w3.org/hg/IndexedDB/raw-file/tip/Overview.html#widl-IDBObjectStore-count-IDBRequest-any-key">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="support.js"></script>
<div id="log"></div>
<script>
var db,
ostore,
t = async_test();
var open_rq = createdb(t);
open_rq.onupgradeneeded = function (event) {
db = event.target.result;
ostore = db.createObjectStore("store", {keyPath:"pKey"});
db.deleteObjectStore("store");
assert_throws("InvalidStateError", function(){
ostore.count();
});
t.done();
}
</script>
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...