4 if (window
.GCController
)
5 GCController
.collectAll();
7 for (var i
= 0; i
< 10000; ++i
) {
13 // Variable for the database that will never be forgotten
15 // Variable for the forgotten database
19 function checkCompletion()
21 if (++completed
== 2 && window
.testRunner
)
22 testRunner
.notifyDone();
27 persistentDB
= openDatabaseWithSuffix("MultipleDatabasesTest1", "1.0", "Test one out of a set of databases being destroyed (1)", 32768);
28 forgottenDB
= openDatabaseWithSuffix("MultipleDatabasesTest2", "1.0", "Test one out of a set of databases being destroyed (2)", 32768);
30 forgottenDB
.transaction(function(tx
) {
31 tx
.executeSql("CREATE TABLE IF NOT EXISTS EmptyTable (unimportantData)", []);
33 log("Forgotten Database Transaction Errored - " + err
);
38 log("Forgotten Database Transaction Complete");
44 persistentDB
.transaction(function(tx
) {
45 tx
.executeSql("CREATE TABLE IF NOT EXISTS DataTest (randomData)", [], function(tx
, result
) {
46 for (var i
= 0; i
< 25; ++i
)
47 tx
.executeSql("INSERT INTO DataTest (randomData) VALUES (1)", []);
50 log("Persistent Database Transaction Errored - " + err
);
53 log("Persistent Database Transaction Complete");