2010-05-28 Eric Uhrhane <ericu@chromium.org>
[WebKit-https.git] / LayoutTests / fast / workers / storage / resources / database-worker.js
index 32d6c13..7014d30 100644 (file)
@@ -27,3 +27,13 @@ onmessage = function(event) {
 };
 
 var DB_TEST_SUFFIX = "_worker";
+
+function openDatabaseWithSuffix(name, version, description, size, callback)
+{
+    if (arguments.length > 4) {
+        return openDatabase(name + DB_TEST_SUFFIX, version, description, size, callback);
+    } else {
+        return openDatabase(name + DB_TEST_SUFFIX, version, description, size);
+    }
+}
+