Commit 557d4895 authored by beidson@apple.com's avatar beidson@apple.com

Reviewed by T3h Mitz Pettel (Dan Bernstein)

        Layout test for already fixed bug <rdar://problem/5729445>

        * storage/multiple-transactions-expected.txt: Added.
        * storage/multiple-transactions.html: Added.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30578 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 6ac9e50e
2008-02-25 Brady Eidson <beidson@apple.com>
Reviewed by T3h Mitz Pettel (Dan Bernstein)
Layout test for already fixed bug <rdar://problem/5729445>
* storage/multiple-transactions-expected.txt: Added.
* storage/multiple-transactions.html: Added.
2008-02-25 Darin Adler <darin@apple.com>
Reviewed by Anders.
This is a test to see if the database API allows multiple transactions to be queued on the same database at once:
Transaction 1 Started
Transaction 1 Succeeded
Transaction 2 Started
Transaction 2 Succeeded
<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>
<head>
<body onload="runTest();">
This is a test to see if the database API allows multiple transactions to be queued on the same database at once:<br>
</body>
</html>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment