Home | History | Annotate | Download | only in indexeddb
      1 // Copyright 2013 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 function test() {
      6   indexedDBTest(onUpgradeNeeded, onOpenSuccess);
      7 }
      8 
      9 function onUpgradeNeeded(e) {
     10 }
     11 
     12 function onOpenSuccess(e) {
     13   // Don't let GC claim the connection
     14   window.db = e.target.result;
     15   window.db.onclose = onDatabaseClose;
     16   document.title = 'connection ready';
     17 }
     18 
     19 function onDatabaseClose(e)
     20 {
     21   document.title = 'connection closed';
     22 }
     23