Home | History | Annotate | Download | only in indexeddb
      1 <html>
      2 <head>
      3 <link rel="stylesheet" href="../../fast/js/resources/js-test-style.css">
      4 <script src="../../fast/js/resources/js-test-pre.js"></script>
      5 <script src="../../fast/js/resources/js-test-post-function.js"></script>
      6 <script src="resources/shared.js"></script>
      7 </head>
      8 <body>
      9 <p id="description"></p>
     10 <div id="console"></div>
     11 <script>
     12 
     13 description("Test IndexedDB transaction does not crash on abort.");
     14 if (window.layoutTestController)
     15     layoutTestController.waitUntilDone();
     16 
     17 function test()
     18 {
     19     shouldBeTrue("'webkitIndexedDB' in window");
     20     shouldBeFalse("webkitIndexedDB == null");
     21 
     22     request = evalAndLog("webkitIndexedDB.open('transaction-crash-on-abort')");
     23     request.onsuccess = openSuccess;
     24     request.onerror = unexpectedErrorCallback;
     25 }
     26 
     27 function openSuccess()
     28 {
     29     debug("openSuccess():");
     30     db = evalAndLog("db = event.target.result");
     31     evalAndLog("db.transaction()");
     32     evalAndLog("window.gc()");
     33     done();
     34 }
     35 
     36 var successfullyParsed = true;
     37 
     38 test();
     39 
     40 </script>
     41 </body>
     42 </html>
     43