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 21test.</p> 22