Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / security / resources / cross-origin-iframe-for-indexeddb.html
blob6ce2c8c4f6a251d6a57b7feb13e6870e695d2bcd
1 <!DOCTYPE html>
2 <html>
3 <head>
4 </head>
5 <body>
6 <script>
7 function test(method, args) {
8 try {
9 var request = window.indexedDB[method].call(window.indexedDB, args);
10 document.write('Successfully called window.indexedDB.' + method + '().<br>');
11 } catch (exception) {
12 document.write('window.indexedDB.' + method + '() threw an exception: ' + exception.name + '<br>');
15 test('deleteDatabase', 'testDBName');
16 test('open', 'testDBName');
17 test('webkitGetDatabaseNames');
18 </script>
19 </body>
20 </head>