diff options
| author | Christopher James Halse Rogers <raof@ubuntu.com> | 2011-11-30 09:57:40 +1100 |
|---|---|---|
| committer | Christopher James Halse Rogers <raof@ubuntu.com> | 2011-11-30 09:57:40 +1100 |
| commit | c8d6e8255738659d52e956e577fed404489094d3 (patch) | |
| tree | 529eb45bf1008458ec3ffb3b309c4225bf4293c9 /tests/unit | |
| parent | 4755ab9d0283862f35b1449c1564367c42fbfdcb (diff) | |
Assert that the left-to-right and right-to-left test strings really have that orientation
(bzr r1738.10.5)
Diffstat (limited to 'tests/unit')
| -rw-r--r-- | tests/unit/TestStaticCairoText.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/unit/TestStaticCairoText.cpp b/tests/unit/TestStaticCairoText.cpp index c4a91a9db..ac6303904 100644 --- a/tests/unit/TestStaticCairoText.cpp +++ b/tests/unit/TestStaticCairoText.cpp @@ -21,6 +21,7 @@ #include "config.h" #include <glib.h> +#include <pango/pango.h> #include "Nux/Nux.h" #include "StaticCairoText.h" @@ -55,6 +56,7 @@ TestLeftToRightExtentIncreasesWithLength () const gchar *test_string = "Just a string of text"; g_assert(g_utf8_validate(test_string, -1, NULL)); + g_assert(pango_find_base_dir(test_string, -1) == PANGO_DIRECTION_LTR); assert_width_increases_with_substring_length (test_string); } @@ -65,6 +67,7 @@ TestRightToLeftExtentIncreasesWithLength () const gchar *test_string = "מחרוזת אקראית עברית"; g_assert(g_utf8_validate(test_string, -1, NULL)); + g_assert(pango_find_base_dir(test_string, -1) == PANGO_DIRECTION_RTL); assert_width_increases_with_substring_length (test_string); } |
