blob: a69717ce4ef08386c561437c8e544dabd767aed5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
// META: title=IDBObjectStore.get() - attempt to retrieve a record that doesn't exist
// META: script=resources/support.js
// @author Microsoft <https://www.microsoft.com>
"use strict";
let db;
const t = async_test();
const open_rq = createdb(t);
open_rq.onupgradeneeded = event => {
db = event.target.result;
const rq = db.createObjectStore("store", { keyPath: "key" })
.get(1);
rq.onsuccess = t.step_func(event => {
assert_equals(event.target.results, undefined);
t.done();
});
};
|