Have window.indexedDB.deleteDatabase return an IDBOpenDBRequest.
[WebKit-https.git] / LayoutTests / storage / indexeddb / modern / deletedatabase-null-name-exception.html
1 This test calls deleteDatabase on window.indexedDB with a null database name, making sure there is an exception.
2 <script>
3
4 if (window.testRunner) {
5     testRunner.waitUntilDone();
6     testRunner.dumpAsText();
7 }
8
9 function done()
10 {
11     alert("Done");
12     if (window.testRunner)
13         testRunner.notifyDone();
14 }
15
16 try {
17         var request = window.indexedDB.deleteDatabase();
18 } catch (e) {
19         alert(e);
20 }
21
22 done();
23 </script>