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 if (window.testRunner) | 7 if (window.testRunner) |
8 testRunner.setDumpConsoleMessages(false); | 8 testRunner.setDumpConsoleMessages(false); |
9 function test(method, args) { | 9 function test(method, args) { |
10 try { | 10 try { |
11 var request = window.indexedDB[method].call(window.indexedDB, ar
gs); | 11 var request = window.indexedDB[method].call(window.indexedDB, ar
gs); |
12 document.write('Successfully called window.indexedDB.' + method
+ '().<br>'); | 12 document.write('Successfully called window.indexedDB.' + method
+ '().<br>'); |
13 } catch (exception) { | 13 } catch (exception) { |
14 document.write('window.indexedDB.' + method + '() threw an excep
tion: ' + exception.name + '<br>'); | 14 document.write('window.indexedDB.' + method + '() threw an excep
tion: ' + exception.name + '<br>'); |
15 } | 15 } |
16 } | 16 } |
17 test('deleteDatabase', 'testDBName'); | 17 test('deleteDatabase', 'testDBName'); |
18 test('open', 'testDBName'); | 18 test('open', 'testDBName'); |
| 19 test('webkitGetDatabaseNames'); |
19 </script> | 20 </script> |
20 </body> | 21 </body> |
21 </head> | 22 </head> |
OLD | NEW |