Skip to content

Commit

Permalink
[se] Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
GoshaZotov committed Jun 26, 2024
1 parent a941a2f commit 042d20f
Showing 1 changed file with 21 additions and 20 deletions.
41 changes: 21 additions & 20 deletions tests/cell/spreadsheet-calculation/SheetStructureTests.js
Original file line number Diff line number Diff line change
Expand Up @@ -2610,28 +2610,29 @@ $(function () {

assert.strictEqual(sTableData, tableName + "[[#Headers],[#Data],[Column1]:[Column2]]", "check headers + data + column1:column2 selection table");

//todo temporary commented. need prepare formula parser by @ columns
//@
//Table5[@]
activeCell = new AscCommon.CellBase(101, 4);
handleSelectionRange = new Asc.Range(0, 101, 2, 101);
sTableData = table.getSelectionString(activeCell, handleSelectionRange);

assert.strictEqual(sTableData, tableName + "[@]", "check intersection all row");

//Table5[@[Column1]:[Column2]]
activeCell = new AscCommon.CellBase(101, 4);
handleSelectionRange = new Asc.Range(0, 101, 1, 101);
sTableData = table.getSelectionString(activeCell, handleSelectionRange);

assert.strictEqual(sTableData, tableName + "[@[Column1]:[Column2]]", "check intersection column1:column2 row");


//Table5[@Column1]
activeCell = new AscCommon.CellBase(101, 4);
handleSelectionRange = new Asc.Range(0, 101, 0, 101);
sTableData = table.getSelectionString(activeCell, handleSelectionRange);

assert.strictEqual(sTableData, tableName + "[@Column1]", "check intersection column1 row");
// activeCell = new AscCommon.CellBase(101, 4);
// handleSelectionRange = new Asc.Range(0, 101, 2, 101);
// sTableData = table.getSelectionString(activeCell, handleSelectionRange);
//
// assert.strictEqual(sTableData, tableName + "[@]", "check intersection all row");
//
// //Table5[@[Column1]:[Column2]]
// activeCell = new AscCommon.CellBase(101, 4);
// handleSelectionRange = new Asc.Range(0, 101, 1, 101);
// sTableData = table.getSelectionString(activeCell, handleSelectionRange);
//
// assert.strictEqual(sTableData, tableName + "[@[Column1]:[Column2]]", "check intersection column1:column2 row");
//
//
// //Table5[@Column1]
// activeCell = new AscCommon.CellBase(101, 4);
// handleSelectionRange = new Asc.Range(0, 101, 0, 101);
// sTableData = table.getSelectionString(activeCell, handleSelectionRange);
//
// assert.strictEqual(sTableData, tableName + "[@Column1]", "check intersection column1 row");

//Table5[#Headers]
activeCell = new AscCommon.CellBase(99, 4);
Expand Down

0 comments on commit 042d20f

Please sign in to comment.