Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<meta charset="utf-8">
<title>IDBIndex.getKey() - attempt to retrieve the primary key of a record that doesn't exist</title>
<link rel="author" title="Microsoft" href="">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="resources/support.js"></script>
var db,
t = async_test();
var open_rq = createdb(t);
open_rq.onupgradeneeded = function(e) {
db =;
var rq = db.createObjectStore("test", { keyPath: "key" })
.createIndex("index", "indexedProperty")
rq.onsuccess = t.step_func(function(e) {
assert_equals(, undefined);
<div id="log"></div>