Merge branch 'gmarkup-more-unit-tests' into 'master'

gmarkup tests: tab character escape/unescape

See merge request GNOME/glib!1437
This commit is contained in:
Philip Withnall 2020-04-03 19:16:42 +00:00
commit 1a3a1865eb
3 changed files with 11 additions and 0 deletions

View File

@ -37,6 +37,9 @@ static EscapeTest escape_tests[] =
{ "N\xc2\x80N", "N€N" },
{ "N\xc2\x79N", "N\xc2\x79N" },
{ "N\xc2\x9fN", "NŸN" },
/* As per g_markup_escape_text()'s documentation, whitespace is not escaped: */
{ "\t", "\t" },
};
static void

View File

@ -0,0 +1,6 @@
ELEMENT 'foo'
tab=" "
END 'foo'
ELEMENT 'bar'
tab_character_reference=" "
END 'bar'

View File

@ -0,0 +1,2 @@
<foo tab=" " />
<bar tab_character_reference="&#9;" />