ubuntu-sdk-bugs team mailing list archive
-
ubuntu-sdk-bugs team
-
Mailing list archive
-
Message #03607
[Bug 1457421] [NEW] defaultGridUnit unit test fails on hidpi screen
Public bug reported:
There's a test failure in tests/unit/tst_units
tst_units: FAIL! : tst_UCUnits::defaultGridUnit() Compared floats are not the same (fuzzy compare)
tst_units: Actual (units.gridUnit()): 16
tst_units: Expected (8.0f) : 8
tst_units: Loc: [tst_units.cpp(36)]
My environment has the following setting
> echo $GRID_UNIT_PX
16
matching the 2x scale factor to accomodate my screen resolution.
I'm not sure why the default needs to be tested considering it's
different on every device... it should either be dropped or the "units"
test needs to clear the environment variable before testing it.
** Affects: ubuntu-ui-toolkit (Ubuntu)
Importance: High
Status: New
--
You received this bug notification because you are a member of Ubuntu
SDK bug tracking, which is subscribed to ubuntu-ui-toolkit in Ubuntu.
https://bugs.launchpad.net/bugs/1457421
Title:
defaultGridUnit unit test fails on hidpi screen
Status in ubuntu-ui-toolkit package in Ubuntu:
New
Bug description:
There's a test failure in tests/unit/tst_units
tst_units: FAIL! : tst_UCUnits::defaultGridUnit() Compared floats are not the same (fuzzy compare)
tst_units: Actual (units.gridUnit()): 16
tst_units: Expected (8.0f) : 8
tst_units: Loc: [tst_units.cpp(36)]
My environment has the following setting
> echo $GRID_UNIT_PX
16
matching the 2x scale factor to accomodate my screen resolution.
I'm not sure why the default needs to be tested considering it's
different on every device... it should either be dropped or the
"units" test needs to clear the environment variable before testing
it.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1457421/+subscriptions
Follow ups
References