OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 </head> | 4 </head> |
5 <body> | 5 <body> |
6 <script> | 6 <script> |
7 function test(method, args) { | 7 function test(method, args) { |
8 try { | 8 try { |
9 var request = window.webkitIndexedDB[method].call(window.webkitI
ndexedDB, args); | 9 var request = window.indexedDB[method].call(window.indexedDB, ar
gs); |
10 document.write('Successfully called window.webkitIndexedDB.' + m
ethod + '().<br>'); | 10 document.write('Successfully called window.indexedDB.' + method
+ '().<br>'); |
11 } catch (exception) { | 11 } catch (exception) { |
12 document.write('window.webkitIndexedDB.' + method + '() threw an
exception: ' + exception.name + '<br>'); | 12 document.write('window.indexedDB.' + method + '() threw an excep
tion: ' + exception.name + '<br>'); |
13 } | 13 } |
14 } | 14 } |
15 test('deleteDatabase', 'testDBName'); | 15 test('deleteDatabase', 'testDBName'); |
16 test('open', 'testDBName'); | 16 test('open', 'testDBName'); |
17 test('webkitGetDatabaseNames'); | 17 test('webkitGetDatabaseNames'); |
18 </script> | 18 </script> |
19 </body> | 19 </body> |
20 </head> | 20 </head> |
OLD | NEW |