BangleApps/tests/Layout/tests
Ben Whittaker 3622895f09 Layout: avoid floating point numbers
The previous approach involved calculating the width of each element
independently, and deriving the `x` coordinate of each element by
summing the previous widths. However, if the widths are rounded, summing
them leads to accumulated rounding errors.

This change effectively takes the alternate approach of calculating the
`x` coordinate of each element independently, and then deriving the
widths from the differences between adjacent values of `x`.

As a bonus, this change corrects a couple issues in the
`padding_with_fill` test.
2021-09-28 23:07:00 -04:00
..
accellog.bmp Layout: make `pad` behave more consistently 2021-09-24 17:43:56 -04:00
accellog.js add test for accellog 2021-09-23 13:02:24 +01:00
filly_issue820.bmp Layout: avoid floating point numbers 2021-09-28 23:07:00 -04:00
filly_issue820.js Layout: only set fillxy/y if null 2021-09-23 22:32:06 -04:00
padding.bmp Layout: make `pad` behave more consistently 2021-09-24 17:43:56 -04:00
padding.js Layout: make `pad` behave more consistently 2021-09-24 17:43:56 -04:00
padding_issue819.bmp add test for accellog 2021-09-23 13:02:24 +01:00
padding_issue819.js Ensure padding works correctly (fix #819), also add Layout test harness basics 2021-09-23 12:47:12 +01:00
padding_issue819_2.bmp Layout: make `pad` behave more consistently 2021-09-24 17:43:56 -04:00
padding_issue819_2.js Layout: make `pad` behave more consistently 2021-09-24 17:43:56 -04:00
padding_with_fill.bmp Layout: avoid floating point numbers 2021-09-28 23:07:00 -04:00
padding_with_fill.js Layout: make `pad` behave more consistently 2021-09-24 17:43:56 -04:00