summaryrefslogtreecommitdiffstats
path: root/LayoutTests/storage/open-database-creation-callback.html
diff options
context:
space:
mode:
Diffstat (limited to 'LayoutTests/storage/open-database-creation-callback.html')
-rw-r--r--LayoutTests/storage/open-database-creation-callback.html5
1 files changed, 3 insertions, 2 deletions
diff --git a/LayoutTests/storage/open-database-creation-callback.html b/LayoutTests/storage/open-database-creation-callback.html
index ac24942..081645c 100644
--- a/LayoutTests/storage/open-database-creation-callback.html
+++ b/LayoutTests/storage/open-database-creation-callback.html
@@ -26,7 +26,8 @@ function runTest()
// Open a new database with a creation callback, and make sure the creation callback is queued
var creationCallbackCalled1 = false;
- var db1 = openDatabase("OpenDatabaseCreationCallback1", "1.0", "", 1,
+ var db1Name = "OpenDatabaseCreationCallback1" + (new Date()).getTime();
+ var db1 = openDatabase(db1Name, "1.0", "", 1,
function(db) {
creationCallbackCalled1 = true;
if (db.version != "") {
@@ -52,7 +53,7 @@ function runTest()
// a null handle and throw a INVALID_STATE_ERR exception.
var db1Fail = null;
try {
- db1Fail = openDatabase("OpenDatabaseCreationCallback1", "1.0", "", 1);
+ db1Fail = openDatabase(db1Name, "1.0", "", 1);
log("This statement should not have been executed; an INVALID_STATE_ERR exception should've been thrown.");
finishTest();
} catch(err) {