OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <meta charset=utf-8> | 2 <meta charset=utf-8> |
3 <title>IDBDatabase.deleteObjectStore() - the object store is not reused</title> | 3 <title>IDBDatabase.deleteObjectStore() - the object store is not reused</title> |
4 <link rel="author" href="mailto:odinho@opera.com" title="Odin Hørthe Omdal"> | 4 <link rel="author" href="mailto:odinho@opera.com" title="Odin Hørthe Omdal"> |
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 | 10 |
(...skipping 15 matching lines...) Expand all Loading... |
26 | 26 |
27 var objStore2 = db.createObjectStore("resurrected", { autoIncrement: true })
; | 27 var objStore2 = db.createObjectStore("resurrected", { autoIncrement: true })
; |
28 objStore2.add("Unicorns'R'us").onsuccess = function(e) { keys.push(e.target.
result); }; | 28 objStore2.add("Unicorns'R'us").onsuccess = function(e) { keys.push(e.target.
result); }; |
29 assert_false(objStore2.indexNames.contains("idx"), "index exist on new objst
ore"); | 29 assert_false(objStore2.indexNames.contains("idx"), "index exist on new objst
ore"); |
30 assert_equals(objStore2.keyPath, null, "keyPath"); | 30 assert_equals(objStore2.keyPath, null, "keyPath"); |
31 | 31 |
32 assert_throws("NotFoundError", function() { objStore2.index("idx"); }); | 32 assert_throws("NotFoundError", function() { objStore2.index("idx"); }); |
33 } | 33 } |
34 | 34 |
35 open_rq.onsuccess = function(e) { | 35 open_rq.onsuccess = function(e) { |
36 assert_object_equals(keys, [5, 6, 1], "keys"); | 36 assert_array_equals(keys, [5, 6, 1], "keys"); |
37 t.done(); | 37 t.done(); |
38 } | 38 } |
39 | 39 |
40 </script> | 40 </script> |
41 | 41 |
42 <div id="log"></div> | 42 <div id="log"></div> |
OLD | NEW |