Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(376)

Side by Side Diff: LayoutTests/imported/web-platform-tests/IndexedDB/idbdatabase_deleteObjectStore4-not_reused.htm

Issue 1295773004: update-w3c-deps import using blink c936ac9d274f959a4b5908db6835bcd612fb1a9e: (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698