summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/markup-parse.c2
-rw-r--r--tests/markups/valid-24.expected19
-rw-r--r--tests/markups/valid-24.markup1
-rw-r--r--tests/test-common.c1
-rw-r--r--tests/testattributes.c1
5 files changed, 23 insertions, 1 deletions
diff --git a/tests/markup-parse.c b/tests/markup-parse.c
index fbe14402..b3248671 100644
--- a/tests/markup-parse.c
+++ b/tests/markup-parse.c
@@ -261,7 +261,7 @@ main (int argc, char *argv[])
const gchar *name;
gchar *path;
- g_setenv ("LC_ALL", "C", TRUE);
+ g_setenv ("LC_ALL", "en_US.UTF8", TRUE);
setlocale (LC_ALL, "");
/* allow to easily generate expected output for new test cases */
diff --git a/tests/markups/valid-24.expected b/tests/markups/valid-24.expected
new file mode 100644
index 00000000..06eb6e0c
--- /dev/null
+++ b/tests/markups/valid-24.expected
@@ -0,0 +1,19 @@
+straße up, up and away
+
+
+---
+
+range 0 7
+[0,7]text-transform=2
+range 7 8
+range 8 23
+[8,23]text-transform=3
+range 23 2147483647
+
+
+---
+
+[0:7] (null) Normal
+[7:8] (null) Normal
+[8:23] (null) Normal
+[23:2147483647] (null) Normal
diff --git a/tests/markups/valid-24.markup b/tests/markups/valid-24.markup
new file mode 100644
index 00000000..d9a7edd5
--- /dev/null
+++ b/tests/markups/valid-24.markup
@@ -0,0 +1 @@
+<span text_transform='uppercase'>straße</span> <span text_transform='capitalize'>up, up and away</span>
diff --git a/tests/test-common.c b/tests/test-common.c
index 78ed722f..3df4015c 100644
--- a/tests/test-common.c
+++ b/tests/test-common.c
@@ -142,6 +142,7 @@ print_attribute (PangoAttribute *attr, GString *string)
case PANGO_ATTR_ALLOW_BREAKS:
case PANGO_ATTR_INSERT_HYPHENS:
case PANGO_ATTR_SHOW:
+ case PANGO_ATTR_TEXT_TRANSFORM:
g_string_append_printf (string, "%d", ((PangoAttrInt *)attr)->value);
break;
case PANGO_ATTR_FONT_DESC:
diff --git a/tests/testattributes.c b/tests/testattributes.c
index aaf270f5..79caf7b8 100644
--- a/tests/testattributes.c
+++ b/tests/testattributes.c
@@ -69,6 +69,7 @@ test_attributes_basic (void)
test_copy (pango_attr_allow_breaks_new (FALSE));
test_copy (pango_attr_show_new (PANGO_SHOW_SPACES));
test_copy (pango_attr_insert_hyphens_new (FALSE));
+ test_copy (pango_attr_text_transform_new (PANGO_TEXT_TRANSFORM_UPPERCASE));
}
static void