OLD | NEW |
(Empty) | |
| 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 window.IDBTransaction = window.IDBTransaction || window.webkitIDBTransaction; |
| 7 |
| 8 function result(message) { |
| 9 var div = document.createElement('div'); |
| 10 div.id = "result"; |
| 11 div.innerText = message; |
| 12 document.body.appendChild(div); |
| 13 } |
| 14 |
| 15 function unexpectedErrorCallback() |
| 16 { |
| 17 result('fail - unexpected error callback'); |
| 18 } |
| 19 |
| 20 function unexpectedAbortCallback() |
| 21 { |
| 22 result('fail - unexpected abort callback'); |
| 23 } |
| 24 |
| 25 function unexpectedCompleteCallback() |
| 26 { |
| 27 result('fail - unexpected complete callback'); |
| 28 } |
OLD | NEW |