Revision e4248bd6a97720b5a9e35e3d0ebb92a42c8c4af3 authored by Geoffrey Sneddon on 11 April 2018, 07:26:51 UTC, committed by Geoffrey Sneddon on 11 April 2018, 07:26:51 UTC
1 parent d44cd21
idbdatabase_createObjectStore5.htm
<!DOCTYPE html>
<title>IDBDatabase.createObjectStore() - object store's name appears in database's list </title>
<link rel="author" title="Microsoft" href="http://www.microsoft.com">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="support.js"></script>
<script>
var t = async_test(),
open_rq = createdb(t)
open_rq.onupgradeneeded = function(e) {
var db = e.target.result
db.createObjectStore("My cool object store name")
assert_true(
db.objectStoreNames.contains("My cool object store name"),
'objectStoreNames.contains')
}
open_rq.onsuccess = function(e) {
var db = e.target.result
assert_true(
db.objectStoreNames.contains("My cool object store name"),
'objectStoreNames.contains (in success)')
t.done()
}
</script>
<div id="log"></div>
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...