summaryrefslogtreecommitdiffstats
path: root/LayoutTests/storage/open-database-over-quota.html
blob: 2a9264de33df117449b4c3e53a67cfef96441bfe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<html>
<head>
<script>
function runTest() {
    if (window.layoutTestController) {
        layoutTestController.dumpAsText();
        layoutTestController.clearAllDatabases();
    }

    try {
        var db = openDatabase('OverQuotaOpen', '', 'Test for bug 36473: missing lock in call to doneCreatingDatabase', 10000000);
    } catch (err) {
        document.getElementById('result').innerHTML = 'PASS'
    }
}
</script>
</head>
<body onload="runTest()">
<div>This tests that calling openDatabase with a size over 5MB doesn't assert on debug builds.
<div id="result">
FAIL: We shouldn't have been able to open the database.
</div>
</body>
</html>