mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-24 09:58:54 +02:00
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:
@@ -37,6 +37,9 @@ static EscapeTest escape_tests[] =
|
|||||||
{ "N\xc2\x80N", "N€N" },
|
{ "N\xc2\x80N", "N€N" },
|
||||||
{ "N\xc2\x79N", "N\xc2\x79N" },
|
{ "N\xc2\x79N", "N\xc2\x79N" },
|
||||||
{ "N\xc2\x9fN", "NŸN" },
|
{ "N\xc2\x9fN", "NŸN" },
|
||||||
|
|
||||||
|
/* As per g_markup_escape_text()'s documentation, whitespace is not escaped: */
|
||||||
|
{ "\t", "\t" },
|
||||||
};
|
};
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
6
glib/tests/markups/valid-17.expected
Normal file
6
glib/tests/markups/valid-17.expected
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
ELEMENT 'foo'
|
||||||
|
tab=" "
|
||||||
|
END 'foo'
|
||||||
|
ELEMENT 'bar'
|
||||||
|
tab_character_reference=" "
|
||||||
|
END 'bar'
|
2
glib/tests/markups/valid-17.gmarkup
Normal file
2
glib/tests/markups/valid-17.gmarkup
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
<foo tab=" " />
|
||||||
|
<bar tab_character_reference="	" />
|
Reference in New Issue
Block a user