summaryrefslogtreecommitdiffstats
path: root/WebCore/manual-tests/inspector/display-sql-transaction-error.html
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/manual-tests/inspector/display-sql-transaction-error.html')
-rw-r--r--WebCore/manual-tests/inspector/display-sql-transaction-error.html24
1 files changed, 24 insertions, 0 deletions
diff --git a/WebCore/manual-tests/inspector/display-sql-transaction-error.html b/WebCore/manual-tests/inspector/display-sql-transaction-error.html
new file mode 100644
index 0000000..da2d310
--- /dev/null
+++ b/WebCore/manual-tests/inspector/display-sql-transaction-error.html
@@ -0,0 +1,24 @@
+<script>
+ try {
+ var db = openDatabase("InspectorTest", "0.1", "Database for Inspector tests", 200000);
+ db.transaction(function(tx) {
+ tx.executeSql("CREATE TABLE DisplaySQLTransactionError (test TEXT)", []);
+ });
+ } catch (e) {
+ }
+</script>
+<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>
+<p>To test:</p>
+<ol>
+ <li>Open the Inspector</li>
+ <li>Go to the Databases panel</li>
+ <li>Click on the <code>InspectorTest</code> database</li>
+ <li>Enter the following text on the query input line: <code>INSERT INTO DisplaySQLTransactionError (test) VALUES (NULL)</code></li>
+</ol>
+<p>If the line of text you entered remains and an error line is output below
+it, you have passed the test.</p>
+<p>If the line of text you entered disappears and no error line is output, you
+have failed the test.</p>
+<p>If the line of text you entered remains and no error line is output, then
+the test has become invalid and needs to be modified to cause the error
+callback passed by the Inspector to <code>db.transaction</code> to be called.</p>