1var DB_TEST_SUFFIX = "_dom"; 2 3function openDatabaseWithSuffix(name, version, description, size, callback) 4{ 5 if (arguments.length > 4) { 6 return openDatabase(name + DB_TEST_SUFFIX, version, description, size, callback); 7 } else { 8 return openDatabase(name + DB_TEST_SUFFIX, version, description, size); 9 } 10} 11 12function log(message) 13{ 14 document.getElementById("console").innerText += message + "\n"; 15} 16 17function setLocationHash(hash) { 18 location.hash = hash; 19} 20 21function setupAndRunTest() 22{ 23 if (window.layoutTestController) { 24 layoutTestController.dumpAsText(); 25 layoutTestController.waitUntilDone(); 26 } 27 document.getElementById("console").innerText = ""; 28 runTest(); 29} 30