blob: b8b87f2d79945931c7c64d4b1c0b26ef4dd0f4b7 [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
(async function() {
TestRunner.addResult(`Tests how table names are escaped in database table view.\n`);
await TestRunner.loadModule('console'); await TestRunner.loadTestModule('application_test_runner');
var tableName = 'table-name-with-dashes-and-"quotes"';
var escapedTableName = Resources.DatabaseTableView.prototype._escapeTableName(tableName, '', true);
TestRunner.addResult('Original value: ' + tableName);
TestRunner.addResult('Escaped value: ' + escapedTableName);
TestRunner.completeTest();
})();