28c18cccbb0793386210aea0843e429ef77ca7da
[gecko.git] / idbfactory_deleteDatabase.htm
blob28c18cccbb0793386210aea0843e429ef77ca7da
1 <!DOCTYPE html>
2 <title>IDBFactory.deleteDatabase() - request has no source </title>
3 <link rel="author" title="Microsoft" href="http://www.microsoft.com">
4 <script src=/resources/testharness.js></script>
5 <script src=/resources/testharnessreport.js></script>
6 <script src=resources/support.js></script>
8 <script>
9 var open_rq = createdb(async_test(), undefined, 9);
11 open_rq.onupgradeneeded = function(e) {};
12 open_rq.onsuccess = function(e) {
13 var db = e.target.result;
14 db.close();
16 var delete_rq = window.indexedDB.deleteDatabase(db.name);
17 delete_rq.onerror = fail(this, "Unexpected delete_rq.error event");
18 delete_rq.onsuccess = this.step_func( function (e) {
19 assert_equals(e.target.source, null, "event.target.source")
20 this.done();
21 });
23 </script>
25 <div id=log></div>