Revision 6a8a912f1cd285b1a130fbb406dc5e76be08e625 authored by jgraham on 08 March 2018, 15:25:02 UTC, committed by GitHub on 08 March 2018, 15:25:02 UTC
mozdownload and mozinstall are now used to install Firefox. Therefore
they are required to run the |wpt install| command.
1 parent 7949111
Raw File
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>
back to top