blob: 76c3969a9829489f090da0a74505b2ef78150f99 [file] [log] [blame]
<html>
<head>
<script>
function runTest() {
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.clearAllDatabases();
testRunner.databaseDefaultQuota = 5 * 1024 * 1024;
testRunner.databaseMaxQuota = 10 * 1024 * 1024;
}
try {
var db = openDatabase('ExpandedQuotaOpen', '', 'Test for bug 123131: increase database quota', 8000000);
document.getElementById('result').innerHTML = 'PASS'
} catch (err) {
document.getElementById('result').innerHTML = 'FAIL'
}
}
</script>
</head>
<body onload="runTest()">
<div>This tests that calling openDatabase with a size over 5MB doesn't assert on debug builds,
and will increase the quota to accommodate the requested size whennot exceeding a max limit of 10M.
<div id="result">
PASS: Successfully opened database greater than 5M.
</div>
</body>
</html>