mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-25 11:42:10 +01: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:
commit
1a3a1865eb
@ -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
|
||||
|
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="	" />
|
Loading…
x
Reference in New Issue
Block a user