3 <title>IDBObjectStore.add() - Attempt to add a record where the record's in-line key is not defined </title>
4 <link rel="author" title="Microsoft" href="http://www.microsoft.com">
5 <script src="../../../resources/testharness.js"></script>
6 <script src="../../../resources/testharnessreport.js"></script>
7 <script src="support.js"></script>
12 record = { property: "data" };
14 var open_rq = createdb(t);
15 open_rq.onupgradeneeded = function(e) {
19 objStore = db.createObjectStore("store", { keyPath: "key" });
21 assert_throws("DataError",
22 function() { rq = objStore.add(record); });
24 assert_equals(rq, undefined);