mirror of
https://gitlab.gnome.org/GNOME/libxml2
synced 2025-03-28 21:33:13 +00:00
Adding example from bugs 738805 to regression tests
For https://bugzilla.gnome.org/show_bug.cgi?id=738805 Tortuous test case provided by pierre.labastie@neuf.fr
This commit is contained in:
parent
72a46a519c
commit
df23f584fd
15
result/ent_738805.xml
Normal file
15
result/ent_738805.xml
Normal file
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!DOCTYPE somedoc [
|
||||
<!ENTITY a "something">
|
||||
<!ENTITY b "&a;">
|
||||
]>
|
||||
<somedoc>
|
||||
|
||||
<somebeacon someattribute="&b;"/>
|
||||
|
||||
&a; should appear after colon: &a;
|
||||
&b; should appear after colon: &a;
|
||||
&a; should appear after colon: &b;
|
||||
&b; should appear after colon: &b;
|
||||
|
||||
</somedoc>
|
15
result/ent_738805.xml.rde
Normal file
15
result/ent_738805.xml.rde
Normal file
@ -0,0 +1,15 @@
|
||||
0 10 somedoc 0 0
|
||||
0 1 somedoc 0 0
|
||||
1 14 #text 0 1
|
||||
|
||||
|
||||
1 1 somebeacon 1 0
|
||||
1 3 #text 0 1
|
||||
|
||||
something should appear after colon: something
|
||||
something should appear after colon: something
|
||||
something should appear after colon: something
|
||||
something should appear after colon: something
|
||||
|
||||
|
||||
0 15 somedoc 0 0
|
31
result/ent_738805.xml.rdr
Normal file
31
result/ent_738805.xml.rdr
Normal file
@ -0,0 +1,31 @@
|
||||
0 10 somedoc 0 0
|
||||
0 1 somedoc 0 0
|
||||
1 14 #text 0 1
|
||||
|
||||
|
||||
1 1 somebeacon 1 0
|
||||
1 14 #text 0 1
|
||||
|
||||
|
||||
1 5 a 0 0
|
||||
1 3 #text 0 1 should appear after colon:
|
||||
1 5 a 0 0
|
||||
1 14 #text 0 1
|
||||
|
||||
1 5 b 0 0
|
||||
1 3 #text 0 1 should appear after colon:
|
||||
1 5 a 0 0
|
||||
1 14 #text 0 1
|
||||
|
||||
1 5 a 0 0
|
||||
1 3 #text 0 1 should appear after colon:
|
||||
1 5 b 0 0
|
||||
1 14 #text 0 1
|
||||
|
||||
1 5 b 0 0
|
||||
1 3 #text 0 1 should appear after colon:
|
||||
1 5 b 0 0
|
||||
1 14 #text 0 1
|
||||
|
||||
|
||||
0 15 somedoc 0 0
|
66
result/ent_738805.xml.sax
Normal file
66
result/ent_738805.xml.sax
Normal file
@ -0,0 +1,66 @@
|
||||
SAX.setDocumentLocator()
|
||||
SAX.startDocument()
|
||||
SAX.internalSubset(somedoc, , )
|
||||
SAX.entityDecl(a, 1, (null), (null), something)
|
||||
SAX.getEntity(a)
|
||||
SAX.entityDecl(b, 1, (null), (null), &a;)
|
||||
SAX.getEntity(b)
|
||||
SAX.externalSubset(somedoc, , )
|
||||
SAX.startElement(somedoc)
|
||||
SAX.characters(
|
||||
|
||||
, 2)
|
||||
SAX.getEntity(b)
|
||||
SAX.getEntity(a)
|
||||
SAX.startElement(somebeacon, someattribute='&b;')
|
||||
SAX.endElement(somebeacon)
|
||||
SAX.characters(
|
||||
|
||||
, 2)
|
||||
SAX.getEntity(a)
|
||||
SAX.characters(something, 9)
|
||||
SAX.reference(a)
|
||||
SAX.characters( should appear after colon: , 28)
|
||||
SAX.getEntity(a)
|
||||
SAX.characters(something, 9)
|
||||
SAX.reference(a)
|
||||
SAX.characters(
|
||||
, 1)
|
||||
SAX.getEntity(b)
|
||||
SAX.getEntity(a)
|
||||
SAX.characters(something, 9)
|
||||
SAX.reference(a)
|
||||
SAX.reference(b)
|
||||
SAX.characters( should appear after colon: , 28)
|
||||
SAX.getEntity(a)
|
||||
SAX.characters(something, 9)
|
||||
SAX.reference(a)
|
||||
SAX.characters(
|
||||
, 1)
|
||||
SAX.getEntity(a)
|
||||
SAX.characters(something, 9)
|
||||
SAX.reference(a)
|
||||
SAX.characters( should appear after colon: , 28)
|
||||
SAX.getEntity(b)
|
||||
SAX.getEntity(a)
|
||||
SAX.characters(something, 9)
|
||||
SAX.reference(a)
|
||||
SAX.reference(b)
|
||||
SAX.characters(
|
||||
, 1)
|
||||
SAX.getEntity(b)
|
||||
SAX.getEntity(a)
|
||||
SAX.characters(something, 9)
|
||||
SAX.reference(a)
|
||||
SAX.reference(b)
|
||||
SAX.characters( should appear after colon: , 28)
|
||||
SAX.getEntity(b)
|
||||
SAX.getEntity(a)
|
||||
SAX.characters(something, 9)
|
||||
SAX.reference(a)
|
||||
SAX.reference(b)
|
||||
SAX.characters(
|
||||
|
||||
, 2)
|
||||
SAX.endElement(somedoc)
|
||||
SAX.endDocument()
|
66
result/ent_738805.xml.sax2
Normal file
66
result/ent_738805.xml.sax2
Normal file
@ -0,0 +1,66 @@
|
||||
SAX.setDocumentLocator()
|
||||
SAX.startDocument()
|
||||
SAX.internalSubset(somedoc, , )
|
||||
SAX.entityDecl(a, 1, (null), (null), something)
|
||||
SAX.getEntity(a)
|
||||
SAX.entityDecl(b, 1, (null), (null), &a;)
|
||||
SAX.getEntity(b)
|
||||
SAX.externalSubset(somedoc, , )
|
||||
SAX.startElementNs(somedoc, NULL, NULL, 0, 0, 0)
|
||||
SAX.characters(
|
||||
|
||||
, 2)
|
||||
SAX.getEntity(b)
|
||||
SAX.getEntity(a)
|
||||
SAX.startElementNs(somebeacon, NULL, NULL, 0, 1, 0, someattribute='&b;...', 3)
|
||||
SAX.endElementNs(somebeacon, NULL, NULL)
|
||||
SAX.characters(
|
||||
|
||||
, 2)
|
||||
SAX.getEntity(a)
|
||||
SAX.characters(something, 9)
|
||||
SAX.reference(a)
|
||||
SAX.characters( should appear after colon: , 28)
|
||||
SAX.getEntity(a)
|
||||
SAX.characters(something, 9)
|
||||
SAX.reference(a)
|
||||
SAX.characters(
|
||||
, 1)
|
||||
SAX.getEntity(b)
|
||||
SAX.getEntity(a)
|
||||
SAX.characters(something, 9)
|
||||
SAX.reference(a)
|
||||
SAX.reference(b)
|
||||
SAX.characters( should appear after colon: , 28)
|
||||
SAX.getEntity(a)
|
||||
SAX.characters(something, 9)
|
||||
SAX.reference(a)
|
||||
SAX.characters(
|
||||
, 1)
|
||||
SAX.getEntity(a)
|
||||
SAX.characters(something, 9)
|
||||
SAX.reference(a)
|
||||
SAX.characters( should appear after colon: , 28)
|
||||
SAX.getEntity(b)
|
||||
SAX.getEntity(a)
|
||||
SAX.characters(something, 9)
|
||||
SAX.reference(a)
|
||||
SAX.reference(b)
|
||||
SAX.characters(
|
||||
, 1)
|
||||
SAX.getEntity(b)
|
||||
SAX.getEntity(a)
|
||||
SAX.characters(something, 9)
|
||||
SAX.reference(a)
|
||||
SAX.reference(b)
|
||||
SAX.characters( should appear after colon: , 28)
|
||||
SAX.getEntity(b)
|
||||
SAX.getEntity(a)
|
||||
SAX.characters(something, 9)
|
||||
SAX.reference(a)
|
||||
SAX.reference(b)
|
||||
SAX.characters(
|
||||
|
||||
, 2)
|
||||
SAX.endElementNs(somedoc, NULL, NULL)
|
||||
SAX.endDocument()
|
15
result/noent/ent_738805.xml
Normal file
15
result/noent/ent_738805.xml
Normal file
@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!DOCTYPE somedoc [
|
||||
<!ENTITY a "something">
|
||||
<!ENTITY b "&a;">
|
||||
]>
|
||||
<somedoc>
|
||||
|
||||
<somebeacon someattribute="something"/>
|
||||
|
||||
something should appear after colon: something
|
||||
something should appear after colon: something
|
||||
something should appear after colon: something
|
||||
something should appear after colon: something
|
||||
|
||||
</somedoc>
|
16
test/ent_738805.xml
Normal file
16
test/ent_738805.xml
Normal file
@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<!DOCTYPE somedoc [
|
||||
<!ENTITY a "something">
|
||||
<!ENTITY b "&a;">
|
||||
]>
|
||||
|
||||
<somedoc>
|
||||
|
||||
<somebeacon someattribute="&b;"/>
|
||||
|
||||
&a; should appear after colon: &a;
|
||||
&b; should appear after colon: &a;
|
||||
&a; should appear after colon: &b;
|
||||
&b; should appear after colon: &b;
|
||||
|
||||
</somedoc>
|
Loading…
x
Reference in New Issue
Block a user