1 <html> 2 <head> 3 <script> 4 function runTest() { 5 if (window.layoutTestController) { 6 layoutTestController.dumpAsText(); 7 layoutTestController.clearAllDatabases(); 8 } 9 10 try { 11 var db = openDatabase('OverQuotaOpen', '', 'Test for bug 36473: missing lock in call to doneCreatingDatabase', 10000000); 12 } catch (err) { 13 document.getElementById('result').innerHTML = 'PASS' 14 } 15 } 16 </script> 17 </head> 18 <body onload="runTest()"> 19 <div>This tests that calling openDatabase with a size over 5MB doesn't assert on debug builds. 20 <div id="result"> 21 FAIL: We shouldn't have been able to open the database. 22 </div> 23 </body> 24 </html> 25