lp:~raof/unity/test-tooltip-rendering
- Get this branch:
- bzr branch lp:~raof/unity/test-tooltip-rendering
Branch merges
- Gord Allott (community): Disapprove
- Alex Launi (community): Needs Fixing
-
Diff: 492 lines (+430/-2)5 files modifiedplugins/unityshell/src/StaticCairoText.cpp (+2/-2)
tests/CMakeLists.txt (+14/-0)
tests/unit/TestMain.cpp (+2/-0)
tests/unit/TestStaticCairoText.cpp (+80/-0)
tests/unit/TestTooltip.cpp (+332/-0)
Branch information
Recent revisions
- 1748. By Chris Halse Rogers
-
Fix copyright date.
In the Year of Our Lord Two Thousand and Eleven, I wrote this code. Evidence
to the contrary should be disregarded, not taken as suggesting that my
time machine now works. - 1746. By Chris Halse Rogers
-
TestTooltip: UnReference() rather than destroy the Tooltips.
Otherwise, nux gets narky and segfaults after the tests.
- 1745. By Chris Halse Rogers
-
TestTooltip: Add a test asserting that different text produces different rendering.
Uses perceptualdiff to determine whether the two renderings are equivalent.
- 1743. By Chris Halse Rogers
-
tests: Add a test checking that rendered width of a Tooltip increases with longer strings
- 1742. By Chris Halse Rogers
-
StaticCairoText: fix RTL width calculation.
Pango will calculate logRect.x as the left-most point of the string, and
start rendering the string at (0,0). For right-to-left languages
that means that logRect.x will always be <= -logRect.width.StaticCairoText does not use logRect.x to offset the text rendering,
so just ignore it in the extent calculation.
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:unity