mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-09-21 20:06:40 +00:00
Test XML attribute value encoding
This was SVN commit r6820.
This commit is contained in:
@@ -113,9 +113,9 @@ public:
|
||||
void test_parse_unicode()
|
||||
{
|
||||
try_parse_save(
|
||||
"<?xml version=\"1.0\" encoding=\"utf-8\"?><foo>ሴ\xE1\x88\xB4</foo>",
|
||||
"<?xml version=\"1.0\" encoding=\"utf-8\"?><foo x='ሴ\xE1\x88\xB4'>ሴ\xE1\x88\xB4</foo>",
|
||||
"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n"
|
||||
"<foo>\xE1\x88\xB4\xE1\x88\xB4</foo>\n"
|
||||
"<foo x=\"\xE1\x88\xB4\xE1\x88\xB4\">\xE1\x88\xB4\xE1\x88\xB4</foo>\n"
|
||||
);
|
||||
}
|
||||
|
||||
@@ -131,9 +131,9 @@ public:
|
||||
void test_parse_iso88591()
|
||||
{
|
||||
try_parse_save(
|
||||
"<?xml version=\"1.0\" encoding=\"iso-8859-1\"?><foo>ሴ\xE1\x88\xB4</foo>",
|
||||
"<?xml version=\"1.0\" encoding=\"iso-8859-1\"?><foo x='ሴ\xE1\x88\xB4'>ሴ\xE1\x88\xB4</foo>",
|
||||
"<?xml version=\"1.0\" encoding=\"utf-8\"?>\n"
|
||||
"<foo>\xE1\x88\xB4\xC3\xA1\xC2\x88\xC2\xB4</foo>\n"
|
||||
"<foo x=\"\xE1\x88\xB4\xC3\xA1\xC2\x88\xC2\xB4\">\xE1\x88\xB4\xC3\xA1\xC2\x88\xC2\xB4</foo>\n"
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user