Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /IndexedDB/idbobjectstore_get4.any.html - WPT Dashboard Interop Dashboard
- /IndexedDB/idbobjectstore_get4.any.worker.html - WPT Dashboard Interop Dashboard
// META: title=IDBObjectStore.get() - attempt to retrieve a record that doesn't exist
// META: script=resources/support.js
"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();
});
};