| 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 function test() | 5 function test() |
| 6 { | 6 { |
| 7 if (document.location.hash === '#tab1') { | 7 if (document.location.hash === '#tab1') { |
| 8 prepareDatabase(0, function () { doSetVersion(1); }); | 8 prepareDatabase(0, function () { doSetVersion(1); }); |
| 9 } else if (document.location.hash === '#tab2') { | 9 } else if (document.location.hash === '#tab2') { |
| 10 doSetVersion(2); | 10 doSetVersion(2); |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 var setverreq = window.db.setVersion(String(version)); | 47 var setverreq = window.db.setVersion(String(version)); |
| 48 setverreq.onerror = unexpectedErrorCallback; | 48 setverreq.onerror = unexpectedErrorCallback; |
| 49 setverreq.onblocked = function(e) { | 49 setverreq.onblocked = function(e) { |
| 50 result('setVersion(' + version + ') blocked'); | 50 result('setVersion(' + version + ') blocked'); |
| 51 }; | 51 }; |
| 52 setverreq.onsuccess = function(e) { | 52 setverreq.onsuccess = function(e) { |
| 53 result('setVersion(' + version + ') complete'); | 53 result('setVersion(' + version + ') complete'); |
| 54 }; | 54 }; |
| 55 }; | 55 }; |
| 56 } | 56 } |
| OLD | NEW |