blob: 00ebbd3d0f0d2614a1281d3de03586a122ef327d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<!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=resources/support.js></script>
<script>
var database_name = document.location + '-database_name';
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>
|