summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/IndexedDB/idbfactory_open2.htm
blob: e4d54ee0a1318211a84a51dfb742230bcbc83c14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!DOCTYPE html>
<title>IDBFactory.open() - database 'name' and 'version' are correctly set</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 open_rq = createdb(async_test(), 'database_name', 13);

    open_rq.onupgradeneeded = function(e) {};
    open_rq.onsuccess = function(e) {
        var db = e.target.result;
        assert_equals(db.name, 'database_name', 'db.name');
        assert_equals(db.version, 13, 'db.version');
        this.done();
    }
</script>

<div id=log></div>