| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <meta charset="utf-8"> | 2 <meta charset="utf-8"> |
| 3 <title>IDBObjectStore.put() - record with same key already exists </title> | 3 <title>IDBObjectStore.put() - record with same key already exists </title> |
| 4 <link rel="author" title="Microsoft" href="http://www.microsoft.com"> | 4 <link rel="author" title="Microsoft" href="http://www.microsoft.com"> |
| 5 <script src="../../../resources/testharness.js"></script> | 5 <script src="/resources/testharness.js"></script> |
| 6 <script src="../../../resources/testharnessreport.js"></script> | 6 <script src="/resources/testharnessreport.js"></script> |
| 7 <script src="support.js"></script> | 7 <script src="support.js"></script> |
| 8 | 8 |
| 9 <script> | 9 <script> |
| 10 var db, success_event, | 10 var db, success_event, |
| 11 t = async_test(), | 11 t = async_test(), |
| 12 record = { key: 1, property: "data" }, | 12 record = { key: 1, property: "data" }, |
| 13 record_put = { key: 1, property: "changed", more: ["stuff", 2] }; | 13 record_put = { key: 1, property: "changed", more: ["stuff", 2] }; |
| 14 | 14 |
| 15 var open_rq = createdb(t); | 15 var open_rq = createdb(t); |
| 16 open_rq.onupgradeneeded = function(e) { | 16 open_rq.onupgradeneeded = function(e) { |
| (...skipping 22 matching lines...) Expand all Loading... |
| 39 assert_equals(rec.key, record_put.key); | 39 assert_equals(rec.key, record_put.key); |
| 40 assert_equals(rec.property, record_put.property); | 40 assert_equals(rec.property, record_put.property); |
| 41 assert_array_equals(rec.more, record_put.more); | 41 assert_array_equals(rec.more, record_put.more); |
| 42 | 42 |
| 43 t.done(); | 43 t.done(); |
| 44 }); | 44 }); |
| 45 }; | 45 }; |
| 46 </script> | 46 </script> |
| 47 | 47 |
| 48 <div id="log"></div> | 48 <div id="log"></div> |
| OLD | NEW |