Not reviewed.
[WebKit-https.git] / LayoutTests / storage / transaction_callback_exception_crash.html
1 <html>
2 <head>
3 <script>
4
5 if (window.layoutTestController) {
6     layoutTestController.dumpAsText();
7     layoutTestController.waitUntilDone();
8 }
9
10 var db = openDatabase("15976Test", "1.0", "Test for http://bugs.webkit.org/show_bug.cgi?id=15976", 1);
11 db.transaction(function(tx) { 
12     if (window.layoutTestController)
13         setTimeout("layoutTestController.notifyDone()", 0);
14     throw "TransactionCallbackError";
15 }, function(err) {
16     if (window.layoutTestController)
17         setTimout("layoutTestController.notifyDone()", 0);
18     document.body.innerText = "Transaction error occured";
19 });
20
21 </script>
22 </head>
23 <body>
24 If WebKit doesn't crash, this test has passed
25 </body>
26 </html>