blob: d8c633733be26a3617f997443f644e5bf4d9448e [file] [log] [blame]
<!DOCTYPE html>
<script>
var allPassed = false;
if (!window.openDatabase) {
if (window.openDatabase(null, null, null, null)) {
var hasError = false;
try {
openDatabase('WebSQLDatabase', '1.0', 'Test DB', 524288);
} catch(e) {
hasError = true;
} finally {
if (!hasError) {
window.webkit.messageHandlers.testHandler.postMessage("openDatabase can be called with non-null parameters");
} else {
var func = function() { }
window.openDatabase = func;
if (window.openDatabase == func) {
window.webkit.messageHandlers.testHandler.postMessage("openDatabase tests passed");
} else {
window.webkit.messageHandlers.testHandler.postMessage("openDatabase is not writable");
}
}
}
} else {
window.webkit.messageHandlers.testHandler.postMessage("openDatabase cannot be called");
}
} else {
window.webkit.messageHandlers.testHandler.postMessage("window has openDatabase");
}
</script>