Commit graph

2 commits

Author SHA1 Message Date
Dennis Francis
8ddfc39f41 sheetgeometry: do not ignore fields with empty strings
For instance groups field can be "" to indicate there are no groups and
ignoring this is a bug if there were some grouping in the previous
uno:sheetGeometry message. This also adds a Mocha test for this.

The issue was originally caught by the cypress group/ungroup tests.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Ib64009e62d510772d5f523378b713a71cf9cccc6
2021-10-06 14:00:22 +05:30
Dennis Francis
ecd2292c99 add Mocha tests for SheetGeometry data-structure
All public methods of SheetGeometry class now have tests.

TODO: Add tests for component classes of SheetGeometry. For instance
SheetDimension's interface are directly used in drawing headers, so we
need tests for them.

Signed-off-by: Dennis Francis <dennis.francis@collabora.com>
Change-Id: Ifab2acea51cf30e6cf1437d9983e6678b4074c38
2021-10-06 14:00:22 +05:30