WebCore/manual-tests/inspector/display-sql-null.html
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 04 Oct 2010 01:32:07 +0300
changeset 2 303757a437d3
parent 0 4f2f89ce4247
permissions -rw-r--r--
Revision: 201037 Kit: 201039

<script>
    try {
        var db = openDatabase("InspectorTest", "0.1", "Database for Inspector tests", 200000);
        db.transaction(function(tx) {
            tx.executeSql("CREATE TABLE DisplaySQLNull (test TEXT)", [], function(tx) {
                tx.executeSql("INSERT INTO DisplaySQLNull (test) VALUES (NULL)");
            })
        });
    } catch (e) {
    }
</script>
<p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=18837">Bug 18837: Database panel fails to display tables if any value is NULL</a>.</p>
<p>To test:</p>
<ol>
    <li>Open the Inspector</li>
    <li>Go to the Databases panel</li>
    <li>Click on the <code>DisplaySQLNull</code> table inside the <code>InspectorTest</code> database</li>
</ol>
<p>If the contents of the table appear (a single row with the value
"<code>null</code>" in the <code>test</code> column), you have passed the
test.</p>