a30b73c594669956967a8e371ab5667023bf82b1
[gecko.git] / idbdatabase_createObjectStore5.htm
bloba30b73c594669956967a8e371ab5667023bf82b1
1 <!DOCTYPE html>
2 <title>IDBDatabase.createObjectStore() - object store's name appears in database's list </title>
3 <link rel="author" title="Microsoft" href="http://www.microsoft.com">
4 <script src="/resources/testharness.js"></script>
5 <script src="/resources/testharnessreport.js"></script>
6 <script src="resources/support.js"></script>
8 <script>
10 var t = async_test(),
11 open_rq = createdb(t)
13 open_rq.onupgradeneeded = function(e) {
14 var db = e.target.result
16 db.createObjectStore("My cool object store name")
17 assert_true(
18 db.objectStoreNames.contains("My cool object store name"),
19 'objectStoreNames.contains')
22 open_rq.onsuccess = function(e) {
23 var db = e.target.result
25 assert_true(
26 db.objectStoreNames.contains("My cool object store name"),
27 'objectStoreNames.contains (in success)')
28 t.done()
31 </script>
33 <div id="log"></div>