Have window.indexedDB.deleteDatabase return an IDBOpenDBRequest.
[WebKit-https.git] / LayoutTests / storage / indexeddb / modern / deletedatabase-request.html
1 This test calls deleteDatabase on window.indexedDB and verifies that an IDBOpenDBRequest object is returned.
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 var request = window.indexedDB.deleteDatabase("TestDatabase");
17 alert(request);
18
19 done();
20 </script>