Retain column sizing in the query tool results grid when the same query is re-run multiple times in a row. Fixes #1971

This commit is contained in:
Surinder Kumar
2017-06-08 12:41:56 +01:00
committed by Dave Page
parent 678b891ff7
commit 2fddf750e6
3 changed files with 129 additions and 76 deletions

View File

@@ -0,0 +1,27 @@
//////////////////////////////////////////////////////////////////////////
//
// pgAdmin 4 - PostgreSQL Tools
//
// Copyright (C) 2013 - 2017, The pgAdmin Development Team
// This software is released under the PostgreSQL Licence
//
//////////////////////////////////////////////////////////////////////////
define(["sources/sqleditor_utils"],
function (SqlEditorUtils) {
describe("SqlEditorUtils", function () {
describe("Generate a random string of size 10", function () {
it("returns string of length 10", function () {
expect(SqlEditorUtils.epicRandomString(10).length).toEqual(10);
});
});
describe("Generate a unique hash for given string", function () {
it("returns unique hash", function () {
expect(SqlEditorUtils.getHash('select * from test')).toEqual(403379630);
});
});
});
});