WebCore:
[WebKit-https.git] / LayoutTests / storage / transaction_callback_exception_crash.html
index 65b2efdd50313d5a9c6f47f952be38b2a514707c..ae66bec1b29c9407597a766f29cf514210985112 100644 (file)
@@ -1,7 +1,6 @@
 <html>
 <head>
 <script>
-
 if (window.layoutTestController) {
     layoutTestController.dumpAsText();
     layoutTestController.waitUntilDone();
@@ -9,11 +8,10 @@ if (window.layoutTestController) {
 
 var db = openDatabase("15976Test", "1.0", "Test for http://bugs.webkit.org/show_bug.cgi?id=15976", 1);
 db.transaction(function(tx) { 
-    if (window.layoutTestController)
-        setTimeout("layoutTestController.notifyDone()", 0);
-    throw "TransactionCallbackError";
+   if (window.layoutTestController)
+       window.setTimeout(function() { layoutTestController.notifyDone() }, 0);
+   throw "TransactionCallbackError";
 });
-
 </script>
 </head>
 <body>