blob: f1f995000c5c3d40b1076d6e8aa3d9204df09e07 [file] [log] [blame]
<!-- webkit-test-runner [ useEphemeralSession=true ] -->
<body>
<div id="logger"></div>
<script>
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
var logger = document.getElementById("logger");
try {
openDatabase("PrivateBrowsingOpenDisabled", "1.0", "Test that you can't open databases in private browsing mode", 1);
logger.innerHTML = "Successfully opened a WebSQL database in private browsing"
} catch(e) {
logger.innerHTML = "Caught exception opening a WebSQL database in private browsing: " + e;
}
if (window.testRunner)
testRunner.notifyDone();
</script>
</body>