1 // Copyright (c) 2012 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 window.indexedDB = window.indexedDB || window.webkitIndexedDB; 6 7 function result(message) { 8 document.title = message; 9 } 10 11 function unexpectedErrorCallback() 12 { 13 result('fail - unexpected error callback'); 14 } 15 16 function unexpectedAbortCallback() 17 { 18 result('fail - unexpected abort callback'); 19 } 20 21 function unexpectedCompleteCallback() 22 { 23 result('fail - unexpected complete callback'); 24 } 25 26 function unexpectedSuccessCallback() 27 { 28 result('fail - unexpected success callback'); 29 } 30 31 function unexpectedUpgradeNeededCallback() 32 { 33 result('fail - unexpected upgradeneeded callback'); 34 } 35 36 function unexpectedBlockedCallback() 37 { 38 result('fail - unexpected blocked callback'); 39 } 40