Home | History | Annotate | Download | only in inspector
      1 <script>
      2     try {
      3         var db = openDatabase("InspectorTest", "0.1", "Database for Inspector tests", 200000);
      4         db.transaction(function(tx) {
      5             tx.executeSql("CREATE TABLE DisplaySQLTransactionError (test TEXT)", []);
      6         });
      7     } catch (e) {
      8     }
      9 </script>
     10 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=19438">Bug 19438: Transaction errors are never displayed in database query view</a>.</p>
     11 <p>To test:</p>
     12 <ol>
     13     <li>Open the Inspector</li>
     14     <li>Go to the Databases panel</li>
     15     <li>Click on the <code>InspectorTest</code> database</li>
     16     <li>Enter the following text on the query input line: <code>INSERT INTO DisplaySQLTransactionError (test) VALUES (NULL)</code></li>
     17 </ol>
     18 <p>If the line of text you entered remains and an error line is output below
     19 it, you have passed the test.</p>
     20 <p>If the line of text you entered disappears and no error line is output, you
     21 have failed the test.</p>
     22 <p>If the line of text you entered remains and no error line is output, then
     23 the test has become invalid and needs to be modified to cause the error
     24 callback passed by the Inspector to <code>db.transaction</code> to be called.</p>
     25