| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../http/tests/inspector/inspector-test.js"></script> | 3 <script src="../http/tests/inspector/inspector-test.js"></script> |
| 4 <script src="../http/tests/inspector/resources-test.js"></script> | 4 <script src="../http/tests/inspector/resources-test.js"></script> |
| 5 <script> | 5 <script> |
| 6 | 6 |
| 7 function test() | 7 function test() |
| 8 { | 8 { |
| 9 var tableName = "table-name-with-dashes-and-\"quotes\""; | 9 var tableName = "table-name-with-dashes-and-\"quotes\""; |
| 10 var escapedTableName = WebInspector.DatabaseTableView.prototype._escapeTable
Name(tableName, "", true); | 10 var escapedTableName = Resources.DatabaseTableView.prototype._escapeTableNam
e(tableName, "", true); |
| 11 InspectorTest.addResult("Original value: " + tableName); | 11 InspectorTest.addResult("Original value: " + tableName); |
| 12 InspectorTest.addResult("Escaped value: " + escapedTableName); | 12 InspectorTest.addResult("Escaped value: " + escapedTableName); |
| 13 InspectorTest.completeTest(); | 13 InspectorTest.completeTest(); |
| 14 } | 14 } |
| 15 </script> | 15 </script> |
| 16 </head> | 16 </head> |
| 17 <body onload="runTest()"> | 17 <body onload="runTest()"> |
| 18 <p>Tests how table names are escaped in database table view.</p> | 18 <p>Tests how table names are escaped in database table view.</p> |
| 19 <a href="https://bugs.webkit.org/show_bug.cgi?id=61205">Bug 74422</a> | 19 <a href="https://bugs.webkit.org/show_bug.cgi?id=61205">Bug 74422</a> |
| 20 </body> | 20 </body> |
| 21 </html> | 21 </html> |
| OLD | NEW |