tests: assertGrid: correct comment

This commit is contained in:
Peter Fajdiga
2024-10-04 10:45:38 +02:00
parent 6e53bbad2f
commit 0eb624d6ff

View File

@@ -47,7 +47,7 @@ function assertRect(actual: QmlRect, x: number, y: number, width: number, height
}
function assertGrid(config: Config, screen: QmlRect, grid: KwinClient[][], skip: number = 0) {
// assumes uniformly sized columns and windows within columns
// assumes uniformly sized windows within columns of width 100
function getRectInGrid(column: number, window: number, nColumns: number, nWindows: number) {
const columnHeight = screen.height - config.gapsOuterTop - config.gapsOuterBottom;
const columnsWidth = nColumns * 100 + (nColumns-1) * config.gapsInnerHorizontal;