diff options
Diffstat (limited to 'LayoutTests/storage/multiple-transactions.html')
-rw-r--r-- | LayoutTests/storage/multiple-transactions.html | 53 |
1 files changed, 6 insertions, 47 deletions
diff --git a/LayoutTests/storage/multiple-transactions.html b/LayoutTests/storage/multiple-transactions.html index 56656ca..3597440 100644 --- a/LayoutTests/storage/multiple-transactions.html +++ b/LayoutTests/storage/multiple-transactions.html @@ -1,53 +1,12 @@ <html> <head> -<script> - -function log(message) -{ - document.body.innerHTML += message + "<br>"; -} - -var complete = 0; - -function checkCompletion() -{ - if (++complete == 2 && window.layoutTestController) - layoutTestController.notifyDone(); -} - -function runTest() -{ - if (window.layoutTestController) { - layoutTestController.dumpAsText(); - layoutTestController.waitUntilDone(); - } - - var db = openDatabase("MultipleTransactionsTest", "1.0", "Test to make sure multiple transactions can be queued at once for an HTML5 database", 32768); - - db.transaction(function(tx) { - log("Transaction 1 Started"); - }, function(err) { - log("Transaction 1 Errored - " + err); - checkCompletion(); - }, function() { - log("Transaction 1 Succeeded"); - checkCompletion(); - }); - - db.transaction(function(tx) { - log("Transaction 2 Started"); - }, function(err) { - log("Transaction 2 Errored - " + err); - checkCompletion(); - }, function() { - log("Transaction 2 Succeeded"); - checkCompletion(); - }); -} - -</script> +<script src="resources/database-common.js"></script> +<script src="multiple-transactions.js"></script> <head> -<body onload="runTest();"> +<body onload="setupAndRunTest();"> This is a test to see if the database API allows multiple transactions to be queued on the same database at once:<br> +<pre id="console"> +FAILURE: test didn't run. +</pre> </body> </html> |