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

Side by Side Diff: content/test/data/indexeddb/database_callbacks_first.html

Issue 401893002: IndexedDB: Stop using webkit-prefixed versions of APIs in tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More webkitIndexedDB foo and update webkitErrorMessage use too Created 6 years, 5 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 | Annotate | Revision Log
OLDNEW
1 <script> 1 <script>
2 2
3 function gcAndDetach() { 3 function gcAndDetach() {
4 // Collect the IDBRequest so that only the indexeddb message dispatcher 4 // Collect the IDBRequest so that only the indexeddb message dispatcher
5 // has a reference to IDBDatabase. 5 // has a reference to IDBDatabase.
6 gc(); 6 gc();
7 // Make Document::detach run stopActiveDOMObjects. 7 // Make Document::detach run stopActiveDOMObjects.
8 location.href = 'database_callbacks_second.html'; 8 location.href = 'database_callbacks_second.html';
9 } 9 }
10 function openConnection() { 10 function openConnection() {
11 var idbRequest = webkitIndexedDB.open("database_callbacks_first"); 11 var idbRequest = indexedDB.open("database_callbacks_first");
12 // setTimeout is needed so that the IDBRequest returned by 12 // setTimeout is needed so that the IDBRequest returned by
13 // webkitIndexedDB.open() can be garbage collected. 13 // indexedDB.open() can be garbage collected.
14 idbRequest.onsuccess = function() { setTimeout(gcAndDetach, 0) }; 14 idbRequest.onsuccess = function() { setTimeout(gcAndDetach, 0) };
15 } 15 }
16 openConnection(); 16 openConnection();
17 </script> 17 </script>
OLDNEW
« no previous file with comments | « content/test/data/indexeddb/cursor_test.js ('k') | content/test/data/indexeddb/key_path_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698