[iOS] WebSQL operations are not performed after device is locked
[WebKit-https.git] / ManualTests / ios / execute-sql-transaction-callback-after-locking-unlocking-device-in-earlier-transaction.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta name="apple-mobile-web-app-capable" content="yes">
5 <script>
6 function openDatabaseAndPerformTransaction(callback)
7 {
8     var database = openDatabase("alert-inside-sql-transaction-database", "1.0", "alert-inside-sql-transaction-database", 1 * 1024 * 1024 /* bytes */);
9     database.transaction(callback);
10 }
11
12 function runTest()
13 {
14     openDatabaseAndPerformTransaction(function (sqlTransaction) { alert("Lock the device. Unlock the device and press OK."); });
15     openDatabaseAndPerformTransaction(function (sqlTransaction) { document.getElementById("result").textContent = "PASS did execute SQLTransactionCallback callback"; });
16 }
17
18 window.onload = runTest;
19 </script>
20 </head>
21 <body>
22 <p>This test can be used to verify that we execute a SQLTransactionCallback callback after locking an unlocking the device during an earlier
23 SQLTransactionCallback callback that showed a modal dialog. You should run this test both in Safari on iOS and from a home screen web app.</p>
24 <div id="result">FAIL did not execute SQLTransactionCallback callback</div>
25 </body>
26 </html>