1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-26 03:55:04 +03:00

Add test for ICU flush and pivot buffer

This commit is contained in:
Nick Wellnhofer 2017-11-04 15:38:58 +01:00
parent 0b19f236a2
commit 7218255092
8 changed files with 94 additions and 0 deletions

13
result/icu_parse_test.xml Normal file
View File

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="EUC-JP"?>
<foo>
Text with EUC-JP chars at position 214 (0xd6)
___
_______________
_______________
_______________
_______________
_______________
_______________
_______________
_______<EFBFBD>é®<EFBFBD>Äé___
_</foo>

View File

@ -0,0 +1,14 @@
0 1 foo 0 0
1 3 #text 0 1
Text with EUC-JP chars at position 214 (0xd6)
___
_______________
_______________
_______________
_______________
_______________
_______________
_______________
_______駪槗___
_
0 15 foo 0 0

View File

@ -0,0 +1,14 @@
0 1 foo 0 0
1 3 #text 0 1
Text with EUC-JP chars at position 214 (0xd6)
___
_______________
_______________
_______________
_______________
_______________
_______________
_______________
_______駪槗___
_
0 15 foo 0 0

View File

@ -0,0 +1,9 @@
SAX.setDocumentLocator()
SAX.startDocument()
SAX.startElement(foo)
SAX.characters(
Text with EUC-JP chars at pos, 170)
SAX.characters(駪槗___
_, 11)
SAX.endElement(foo)
SAX.endDocument()

View File

@ -0,0 +1,9 @@
SAX.setDocumentLocator()
SAX.startDocument()
SAX.startElementNs(foo, NULL, NULL, 0, 0, 0)
SAX.characters(
Text with EUC-JP chars at pos, 170)
SAX.characters(駪槗___
_, 11)
SAX.endElementNs(foo, NULL, NULL)
SAX.endDocument()

View File

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="EUC-JP"?>
<foo>
Text with EUC-JP chars at position 214 (0xd6)
___
_______________
_______________
_______________
_______________
_______________
_______________
_______________
_______<EFBFBD>é®<EFBFBD>Äé___
_</foo>

View File

@ -0,0 +1,9 @@
SAX.setDocumentLocator()
SAX.startDocument()
SAX.startElementNs(foo, NULL, NULL, 0, 0, 0)
SAX.characters(
Text with EUC-JP chars at pos, 170)
SAX.characters(駪槗___
_, 11)
SAX.endElementNs(foo, NULL, NULL)
SAX.endDocument()

13
test/icu_parse_test.xml Normal file
View File

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="EUC-JP"?>
<foo>
Text with EUC-JP chars at position 214 (0xd6)
___
_______________
_______________
_______________
_______________
_______________
_______________
_______________
_______<EFBFBD>é®<EFBFBD>Äé___
_</foo>