| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 window.indexedDB = window.indexedDB || window.webkitIndexedDB; | 5 window.indexedDB = window.indexedDB || window.webkitIndexedDB; |
| 6 | 6 |
| 7 function result(message) { | 7 function result(message) { |
| 8 var div = document.createElement('div'); | 8 document.title = message; |
| 9 div.id = "result"; | |
| 10 div.innerText = message; | |
| 11 document.body.appendChild(div); | |
| 12 } | 9 } |
| 13 | 10 |
| 14 function unexpectedErrorCallback() | 11 function unexpectedErrorCallback() |
| 15 { | 12 { |
| 16 result('fail - unexpected error callback'); | 13 result('fail - unexpected error callback'); |
| 17 } | 14 } |
| 18 | 15 |
| 19 function unexpectedAbortCallback() | 16 function unexpectedAbortCallback() |
| 20 { | 17 { |
| 21 result('fail - unexpected abort callback'); | 18 result('fail - unexpected abort callback'); |
| 22 } | 19 } |
| 23 | 20 |
| 24 function unexpectedCompleteCallback() | 21 function unexpectedCompleteCallback() |
| 25 { | 22 { |
| 26 result('fail - unexpected complete callback'); | 23 result('fail - unexpected complete callback'); |
| 27 } | 24 } |
| OLD | NEW |