lp:~raof/unity/test-tooltip-rendering

Created by Chris Halse Rogers and last modified
Get this branch:
bzr branch lp:~raof/unity/test-tooltip-rendering
Only Chris Halse Rogers can upload to this branch. If you are Chris Halse Rogers please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Chris Halse Rogers
Project:
Unity
Status:
Development

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.

1747. By Chris Halse Rogers

TestTooltip: Clean up perceptualdiff's spew to stdout.

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.

1744. By Chris Halse Rogers

Reset window to background colour after test completion

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.

1741. By Chris Halse Rogers

TestStaticCairoText: Clean up properly after test

1740. By Chris Halse Rogers

TestStaticCairoText: factor out common test code

1739. By Chris Halse Rogers

tests: Add a simple StaticCairoText extent test

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
lp:unity
This branch contains Public information 
Everyone can see this information.