~ubuntu-branches/ubuntu/raring/qtwebkit-source/raring-proposed

« back to all changes in this revision

Viewing changes to ManualTests/inspector/display-sql-null.html

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2013-02-18 14:24:18 UTC
  • Revision ID: package-import@ubuntu.com-20130218142418-eon0jmjg3nj438uy
Tags: upstream-2.3
ImportĀ upstreamĀ versionĀ 2.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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 DisplaySQLNull (test TEXT)", [], function(tx) {
 
6
                tx.executeSql("INSERT INTO DisplaySQLNull (test) VALUES (NULL)");
 
7
            })
 
8
        });
 
9
    } catch (e) {
 
10
    }
 
11
</script>
 
12
<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>
 
13
<p>To test:</p>
 
14
<ol>
 
15
    <li>Open the Inspector</li>
 
16
    <li>Go to the Databases panel</li>
 
17
    <li>Click on the <code>DisplaySQLNull</code> table inside the <code>InspectorTest</code> database</li>
 
18
</ol>
 
19
<p>If the contents of the table appear (a single row with the value
 
20
"<code>null</code>" in the <code>test</code> column), you have passed the
 
21
test.</p>