mirror of
https://github.com/crystalidea/qt6windows7.git
synced 2025-07-07 17:50:59 +08:00
qt 6.5.1 original
This commit is contained in:
12
tests/auto/corelib/serialization/qxmlstream/data/001.ref
Normal file
12
tests/auto/corelib/serialization/qxmlstream/data/001.ref
Normal file
@ -0,0 +1,12 @@
|
||||
StartDocument( documentVersion="1.0" )
|
||||
Comment( text=" Namespace name test: a perfectly good http URI " )
|
||||
DTD( text="
|
||||
<!DOCTYPE foo [
|
||||
<!ELEMENT foo ANY>
|
||||
<!ATTLIST foo xmlns CDATA #IMPLIED>
|
||||
]>" dtdName="foo" )
|
||||
StartElement( name="foo" namespaceUri="http://example.org/namespace" qualifiedName="foo"
|
||||
NamespaceDeclaration( namespaceUri="http://example.org/namespace" )
|
||||
)
|
||||
EndElement( name="foo" namespaceUri="http://example.org/namespace" qualifiedName="foo" )
|
||||
EndDocument( )
|
7
tests/auto/corelib/serialization/qxmlstream/data/001.xml
Normal file
7
tests/auto/corelib/serialization/qxmlstream/data/001.xml
Normal file
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- Namespace name test: a perfectly good http URI -->
|
||||
<!DOCTYPE foo [
|
||||
<!ELEMENT foo ANY>
|
||||
<!ATTLIST foo xmlns CDATA #IMPLIED>
|
||||
]>
|
||||
<foo xmlns="http://example.org/namespace"/>
|
13
tests/auto/corelib/serialization/qxmlstream/data/002.ref
Normal file
13
tests/auto/corelib/serialization/qxmlstream/data/002.ref
Normal file
@ -0,0 +1,13 @@
|
||||
StartDocument( documentVersion="1.0" )
|
||||
Comment( text=" Namespace name test: a syntactically plausible URI with a
|
||||
fictitious scheme " )
|
||||
DTD( text="
|
||||
<!DOCTYPE foo [
|
||||
<!ELEMENT foo ANY>
|
||||
<!ATTLIST foo xmlns CDATA #IMPLIED>
|
||||
]>" dtdName="foo" )
|
||||
StartElement( name="foo" namespaceUri="zarquon://example.org/namespace" qualifiedName="foo"
|
||||
NamespaceDeclaration( namespaceUri="zarquon://example.org/namespace" )
|
||||
)
|
||||
EndElement( name="foo" namespaceUri="zarquon://example.org/namespace" qualifiedName="foo" )
|
||||
EndDocument( )
|
8
tests/auto/corelib/serialization/qxmlstream/data/002.xml
Normal file
8
tests/auto/corelib/serialization/qxmlstream/data/002.xml
Normal file
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- Namespace name test: a syntactically plausible URI with a
|
||||
fictitious scheme -->
|
||||
<!DOCTYPE foo [
|
||||
<!ELEMENT foo ANY>
|
||||
<!ATTLIST foo xmlns CDATA #IMPLIED>
|
||||
]>
|
||||
<foo xmlns="zarquon://example.org/namespace"/>
|
12
tests/auto/corelib/serialization/qxmlstream/data/003.ref
Normal file
12
tests/auto/corelib/serialization/qxmlstream/data/003.ref
Normal file
@ -0,0 +1,12 @@
|
||||
StartDocument( documentVersion="1.0" )
|
||||
Comment( text=" Namespace name test: a perfectly good http URI with a fragment " )
|
||||
DTD( text="
|
||||
<!DOCTYPE foo [
|
||||
<!ELEMENT foo ANY>
|
||||
<!ATTLIST foo xmlns CDATA #IMPLIED>
|
||||
]>" dtdName="foo" )
|
||||
StartElement( name="foo" namespaceUri="http://example.org/namespace#apples" qualifiedName="foo"
|
||||
NamespaceDeclaration( namespaceUri="http://example.org/namespace#apples" )
|
||||
)
|
||||
EndElement( name="foo" namespaceUri="http://example.org/namespace#apples" qualifiedName="foo" )
|
||||
EndDocument( )
|
7
tests/auto/corelib/serialization/qxmlstream/data/003.xml
Normal file
7
tests/auto/corelib/serialization/qxmlstream/data/003.xml
Normal file
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- Namespace name test: a perfectly good http URI with a fragment -->
|
||||
<!DOCTYPE foo [
|
||||
<!ELEMENT foo ANY>
|
||||
<!ATTLIST foo xmlns CDATA #IMPLIED>
|
||||
]>
|
||||
<foo xmlns="http://example.org/namespace#apples"/>
|
12
tests/auto/corelib/serialization/qxmlstream/data/004.ref
Normal file
12
tests/auto/corelib/serialization/qxmlstream/data/004.ref
Normal file
@ -0,0 +1,12 @@
|
||||
StartDocument( documentVersion="1.0" )
|
||||
Comment( text=" Namespace name test: a relative URI (deprecated) " )
|
||||
DTD( text="
|
||||
<!DOCTYPE foo [
|
||||
<!ELEMENT foo ANY>
|
||||
<!ATTLIST foo xmlns CDATA #IMPLIED>]
|
||||
>" dtdName="foo" )
|
||||
StartElement( name="foo" namespaceUri="namespaces/zaphod" qualifiedName="foo"
|
||||
NamespaceDeclaration( namespaceUri="namespaces/zaphod" )
|
||||
)
|
||||
EndElement( name="foo" namespaceUri="namespaces/zaphod" qualifiedName="foo" )
|
||||
EndDocument( )
|
7
tests/auto/corelib/serialization/qxmlstream/data/004.xml
Normal file
7
tests/auto/corelib/serialization/qxmlstream/data/004.xml
Normal file
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- Namespace name test: a relative URI (deprecated) -->
|
||||
<!DOCTYPE foo [
|
||||
<!ELEMENT foo ANY>
|
||||
<!ATTLIST foo xmlns CDATA #IMPLIED>]
|
||||
>
|
||||
<foo xmlns="namespaces/zaphod"/>
|
12
tests/auto/corelib/serialization/qxmlstream/data/005.ref
Normal file
12
tests/auto/corelib/serialization/qxmlstream/data/005.ref
Normal file
@ -0,0 +1,12 @@
|
||||
StartDocument( documentVersion="1.0" )
|
||||
Comment( text=" Namespace name test: a same-document relative URI (deprecated) " )
|
||||
DTD( text="
|
||||
<!DOCTYPE foo [
|
||||
<!ELEMENT foo ANY>
|
||||
<!ATTLIST foo xmlns CDATA #IMPLIED>
|
||||
]>" dtdName="foo" )
|
||||
StartElement( name="foo" namespaceUri="#beeblebrox" qualifiedName="foo"
|
||||
NamespaceDeclaration( namespaceUri="#beeblebrox" )
|
||||
)
|
||||
EndElement( name="foo" namespaceUri="#beeblebrox" qualifiedName="foo" )
|
||||
EndDocument( )
|
7
tests/auto/corelib/serialization/qxmlstream/data/005.xml
Normal file
7
tests/auto/corelib/serialization/qxmlstream/data/005.xml
Normal file
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- Namespace name test: a same-document relative URI (deprecated) -->
|
||||
<!DOCTYPE foo [
|
||||
<!ELEMENT foo ANY>
|
||||
<!ATTLIST foo xmlns CDATA #IMPLIED>
|
||||
]>
|
||||
<foo xmlns="#beeblebrox"/>
|
12
tests/auto/corelib/serialization/qxmlstream/data/006.ref
Normal file
12
tests/auto/corelib/serialization/qxmlstream/data/006.ref
Normal file
@ -0,0 +1,12 @@
|
||||
StartDocument( documentVersion="1.0" documentEncoding="iso-8859-1" )
|
||||
Comment( text=" Namespace name test: an http IRI that is not a URI " )
|
||||
DTD( text="
|
||||
<!DOCTYPE foo [
|
||||
<!ELEMENT foo ANY>
|
||||
<!ATTLIST foo xmlns CDATA #IMPLIED>
|
||||
]>" dtdName="foo" )
|
||||
StartElement( name="foo" namespaceUri="http://example.org/rosé" qualifiedName="foo"
|
||||
NamespaceDeclaration( namespaceUri="http://example.org/rosé" )
|
||||
)
|
||||
EndElement( name="foo" namespaceUri="http://example.org/rosé" qualifiedName="foo" )
|
||||
EndDocument( )
|
7
tests/auto/corelib/serialization/qxmlstream/data/006.xml
Normal file
7
tests/auto/corelib/serialization/qxmlstream/data/006.xml
Normal file
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- Namespace name test: an http IRI that is not a URI -->
|
||||
<!DOCTYPE foo [
|
||||
<!ELEMENT foo ANY>
|
||||
<!ATTLIST foo xmlns CDATA #IMPLIED>
|
||||
]>
|
||||
<foo xmlns="http://example.org/ros<6F>"/>
|
36
tests/auto/corelib/serialization/qxmlstream/data/007.ref
Normal file
36
tests/auto/corelib/serialization/qxmlstream/data/007.ref
Normal file
@ -0,0 +1,36 @@
|
||||
StartDocument( documentVersion="1.0" )
|
||||
Comment( text=" Namespace inequality test: different capitalization " )
|
||||
DTD( text="
|
||||
<!DOCTYPE foo [
|
||||
<!ELEMENT foo ANY>
|
||||
<!ATTLIST foo xmlns:a CDATA #IMPLIED
|
||||
xmlns:b CDATA #IMPLIED
|
||||
xmlns:c CDATA #IMPLIED>
|
||||
<!ELEMENT bar ANY>
|
||||
<!ATTLIST bar a:attr CDATA #IMPLIED
|
||||
b:attr CDATA #IMPLIED
|
||||
c:attr CDATA #IMPLIED>
|
||||
]>" dtdName="foo" )
|
||||
StartElement( name="foo" qualifiedName="foo"
|
||||
NamespaceDeclaration( prefix="a" namespaceUri="http://example.org/wine" )
|
||||
|
||||
NamespaceDeclaration( prefix="b" namespaceUri="http://Example.org/wine" )
|
||||
|
||||
NamespaceDeclaration( prefix="c" namespaceUri="http://example.org/Wine" )
|
||||
)
|
||||
Characters( whitespace text="
|
||||
|
||||
" )
|
||||
StartElement( name="bar" qualifiedName="bar"
|
||||
Attribute( name="attr" namespaceUri="http://example.org/wine" qualifiedName="a:attr" prefix="a" value="1" )
|
||||
|
||||
Attribute( name="attr" namespaceUri="http://Example.org/wine" qualifiedName="b:attr" prefix="b" value="2" )
|
||||
|
||||
Attribute( name="attr" namespaceUri="http://example.org/Wine" qualifiedName="c:attr" prefix="c" value="3" )
|
||||
)
|
||||
EndElement( name="bar" qualifiedName="bar" )
|
||||
Characters( whitespace text="
|
||||
|
||||
" )
|
||||
EndElement( name="foo" qualifiedName="foo" )
|
||||
EndDocument( )
|
20
tests/auto/corelib/serialization/qxmlstream/data/007.xml
Normal file
20
tests/auto/corelib/serialization/qxmlstream/data/007.xml
Normal file
@ -0,0 +1,20 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- Namespace inequality test: different capitalization -->
|
||||
<!DOCTYPE foo [
|
||||
<!ELEMENT foo ANY>
|
||||
<!ATTLIST foo xmlns:a CDATA #IMPLIED
|
||||
xmlns:b CDATA #IMPLIED
|
||||
xmlns:c CDATA #IMPLIED>
|
||||
<!ELEMENT bar ANY>
|
||||
<!ATTLIST bar a:attr CDATA #IMPLIED
|
||||
b:attr CDATA #IMPLIED
|
||||
c:attr CDATA #IMPLIED>
|
||||
]>
|
||||
<foo xmlns:a="http://example.org/wine"
|
||||
xmlns:b="http://Example.org/wine"
|
||||
xmlns:c="http://example.org/Wine">
|
||||
|
||||
<bar a:attr="1" b:attr="2" c:attr="3"/>
|
||||
|
||||
</foo>
|
||||
|
36
tests/auto/corelib/serialization/qxmlstream/data/008.ref
Normal file
36
tests/auto/corelib/serialization/qxmlstream/data/008.ref
Normal file
@ -0,0 +1,36 @@
|
||||
StartDocument( documentVersion="1.0" )
|
||||
Comment( text=" Namespace inequality test: different escaping " )
|
||||
DTD( text="
|
||||
<!DOCTYPE foo [
|
||||
<!ELEMENT foo ANY>
|
||||
<!ATTLIST foo xmlns:a CDATA #IMPLIED
|
||||
xmlns:b CDATA #IMPLIED
|
||||
xmlns:c CDATA #IMPLIED>
|
||||
<!ELEMENT bar ANY>
|
||||
<!ATTLIST bar a:attr CDATA #IMPLIED
|
||||
b:attr CDATA #IMPLIED
|
||||
c:attr CDATA #IMPLIED>
|
||||
]>" dtdName="foo" )
|
||||
StartElement( name="foo" qualifiedName="foo"
|
||||
NamespaceDeclaration( prefix="a" namespaceUri="http://example.org/~wilbur" )
|
||||
|
||||
NamespaceDeclaration( prefix="b" namespaceUri="http://example.org/%7ewilbur" )
|
||||
|
||||
NamespaceDeclaration( prefix="c" namespaceUri="http://example.org/%7Ewilbur" )
|
||||
)
|
||||
Characters( whitespace text="
|
||||
|
||||
" )
|
||||
StartElement( name="bar" qualifiedName="bar"
|
||||
Attribute( name="attr" namespaceUri="http://example.org/~wilbur" qualifiedName="a:attr" prefix="a" value="1" )
|
||||
|
||||
Attribute( name="attr" namespaceUri="http://example.org/%7ewilbur" qualifiedName="b:attr" prefix="b" value="2" )
|
||||
|
||||
Attribute( name="attr" namespaceUri="http://example.org/%7Ewilbur" qualifiedName="c:attr" prefix="c" value="3" )
|
||||
)
|
||||
EndElement( name="bar" qualifiedName="bar" )
|
||||
Characters( whitespace text="
|
||||
|
||||
" )
|
||||
EndElement( name="foo" qualifiedName="foo" )
|
||||
EndDocument( )
|
20
tests/auto/corelib/serialization/qxmlstream/data/008.xml
Normal file
20
tests/auto/corelib/serialization/qxmlstream/data/008.xml
Normal file
@ -0,0 +1,20 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- Namespace inequality test: different escaping -->
|
||||
<!DOCTYPE foo [
|
||||
<!ELEMENT foo ANY>
|
||||
<!ATTLIST foo xmlns:a CDATA #IMPLIED
|
||||
xmlns:b CDATA #IMPLIED
|
||||
xmlns:c CDATA #IMPLIED>
|
||||
<!ELEMENT bar ANY>
|
||||
<!ATTLIST bar a:attr CDATA #IMPLIED
|
||||
b:attr CDATA #IMPLIED
|
||||
c:attr CDATA #IMPLIED>
|
||||
]>
|
||||
<foo xmlns:a="http://example.org/~wilbur"
|
||||
xmlns:b="http://example.org/%7ewilbur"
|
||||
xmlns:c="http://example.org/%7Ewilbur">
|
||||
|
||||
<bar a:attr="1" b:attr="2" c:attr="3"/>
|
||||
|
||||
</foo>
|
||||
|
27
tests/auto/corelib/serialization/qxmlstream/data/009.ref
Normal file
27
tests/auto/corelib/serialization/qxmlstream/data/009.ref
Normal file
@ -0,0 +1,27 @@
|
||||
StartDocument( documentVersion="1.0" )
|
||||
Comment( text=" Namespace equality test: plain repetition " )
|
||||
DTD( text="
|
||||
<!DOCTYPE foo [
|
||||
<!ELEMENT foo ANY>
|
||||
<!ATTLIST foo xmlns:a CDATA #IMPLIED
|
||||
xmlns:b CDATA #IMPLIED
|
||||
xmlns:c CDATA #IMPLIED>
|
||||
<!ELEMENT bar ANY>
|
||||
<!ATTLIST bar a:attr CDATA #IMPLIED
|
||||
b:attr CDATA #IMPLIED
|
||||
c:attr CDATA #IMPLIED>
|
||||
]>" dtdName="foo" )
|
||||
StartElement( name="foo" qualifiedName="foo"
|
||||
NamespaceDeclaration( prefix="a" namespaceUri="http://example.org/~wilbur" )
|
||||
|
||||
NamespaceDeclaration( prefix="b" namespaceUri="http://example.org/~wilbur" )
|
||||
)
|
||||
Characters( whitespace text="
|
||||
|
||||
" )
|
||||
Invalid( name="bar" qualifiedName="bar"
|
||||
Attribute( name="attr" namespaceUri="http://example.org/~wilbur" qualifiedName="a:attr" prefix="a" value="1" )
|
||||
|
||||
Attribute( name="attr" namespaceUri="http://example.org/~wilbur" qualifiedName="b:attr" prefix="b" value="2" )
|
||||
)
|
||||
ERROR: Attribute 'b:attr' redefined.
|
19
tests/auto/corelib/serialization/qxmlstream/data/009.xml
Normal file
19
tests/auto/corelib/serialization/qxmlstream/data/009.xml
Normal file
@ -0,0 +1,19 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- Namespace equality test: plain repetition -->
|
||||
<!DOCTYPE foo [
|
||||
<!ELEMENT foo ANY>
|
||||
<!ATTLIST foo xmlns:a CDATA #IMPLIED
|
||||
xmlns:b CDATA #IMPLIED
|
||||
xmlns:c CDATA #IMPLIED>
|
||||
<!ELEMENT bar ANY>
|
||||
<!ATTLIST bar a:attr CDATA #IMPLIED
|
||||
b:attr CDATA #IMPLIED
|
||||
c:attr CDATA #IMPLIED>
|
||||
]>
|
||||
<foo xmlns:a="http://example.org/~wilbur"
|
||||
xmlns:b="http://example.org/~wilbur">
|
||||
|
||||
<bar a:attr="1" b:attr="2"/>
|
||||
|
||||
</foo>
|
||||
|
27
tests/auto/corelib/serialization/qxmlstream/data/010.ref
Normal file
27
tests/auto/corelib/serialization/qxmlstream/data/010.ref
Normal file
@ -0,0 +1,27 @@
|
||||
StartDocument( documentVersion="1.0" )
|
||||
Comment( text=" Namespace equality test: use of character reference " )
|
||||
DTD( text="
|
||||
<!DOCTYPE foo [
|
||||
<!ELEMENT foo ANY>
|
||||
<!ATTLIST foo xmlns:a CDATA #IMPLIED
|
||||
xmlns:b CDATA #IMPLIED
|
||||
xmlns:c CDATA #IMPLIED>
|
||||
<!ELEMENT bar ANY>
|
||||
<!ATTLIST bar a:attr CDATA #IMPLIED
|
||||
b:attr CDATA #IMPLIED
|
||||
c:attr CDATA #IMPLIED>
|
||||
]>" dtdName="foo" )
|
||||
StartElement( name="foo" qualifiedName="foo"
|
||||
NamespaceDeclaration( prefix="a" namespaceUri="http://example.org/~wilbur" )
|
||||
|
||||
NamespaceDeclaration( prefix="b" namespaceUri="http://example.org/~wilbur" )
|
||||
)
|
||||
Characters( whitespace text="
|
||||
|
||||
" )
|
||||
Invalid( name="bar" qualifiedName="bar"
|
||||
Attribute( name="attr" namespaceUri="http://example.org/~wilbur" qualifiedName="a:attr" prefix="a" value="1" )
|
||||
|
||||
Attribute( name="attr" namespaceUri="http://example.org/~wilbur" qualifiedName="b:attr" prefix="b" value="2" )
|
||||
)
|
||||
ERROR: Attribute 'b:attr' redefined.
|
19
tests/auto/corelib/serialization/qxmlstream/data/010.xml
Normal file
19
tests/auto/corelib/serialization/qxmlstream/data/010.xml
Normal file
@ -0,0 +1,19 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- Namespace equality test: use of character reference -->
|
||||
<!DOCTYPE foo [
|
||||
<!ELEMENT foo ANY>
|
||||
<!ATTLIST foo xmlns:a CDATA #IMPLIED
|
||||
xmlns:b CDATA #IMPLIED
|
||||
xmlns:c CDATA #IMPLIED>
|
||||
<!ELEMENT bar ANY>
|
||||
<!ATTLIST bar a:attr CDATA #IMPLIED
|
||||
b:attr CDATA #IMPLIED
|
||||
c:attr CDATA #IMPLIED>
|
||||
]>
|
||||
<foo xmlns:a="http://example.org/~wilbur"
|
||||
xmlns:b="http://example.org/~wilbur">
|
||||
|
||||
<bar a:attr="1" b:attr="2"/>
|
||||
|
||||
</foo>
|
||||
|
30
tests/auto/corelib/serialization/qxmlstream/data/011.ref
Normal file
30
tests/auto/corelib/serialization/qxmlstream/data/011.ref
Normal file
@ -0,0 +1,30 @@
|
||||
StartDocument( documentVersion="1.0" )
|
||||
Comment( text=" Namespace equality test: use of entity reference " )
|
||||
DTD( text="
|
||||
<!DOCTYPE foo [
|
||||
<!ELEMENT foo ANY>
|
||||
<!ATTLIST foo xmlns:a CDATA #IMPLIED
|
||||
xmlns:b CDATA #IMPLIED
|
||||
xmlns:c CDATA #IMPLIED>
|
||||
<!ELEMENT bar ANY>
|
||||
<!ATTLIST bar a:attr CDATA #IMPLIED
|
||||
b:attr CDATA #IMPLIED
|
||||
c:attr CDATA #IMPLIED>
|
||||
<!ENTITY tilde "~">
|
||||
]>" dtdName="foo"
|
||||
EntityDeclaration( name="tilde" value="~" )
|
||||
)
|
||||
StartElement( name="foo" qualifiedName="foo"
|
||||
NamespaceDeclaration( prefix="a" namespaceUri="http://example.org/~wilbur" )
|
||||
|
||||
NamespaceDeclaration( prefix="b" namespaceUri="http://example.org/~wilbur" )
|
||||
)
|
||||
Characters( whitespace text="
|
||||
|
||||
" )
|
||||
Invalid( name="bar" qualifiedName="bar"
|
||||
Attribute( name="attr" namespaceUri="http://example.org/~wilbur" qualifiedName="a:attr" prefix="a" value="1" )
|
||||
|
||||
Attribute( name="attr" namespaceUri="http://example.org/~wilbur" qualifiedName="b:attr" prefix="b" value="2" )
|
||||
)
|
||||
ERROR: Attribute 'b:attr' redefined.
|
20
tests/auto/corelib/serialization/qxmlstream/data/011.xml
Normal file
20
tests/auto/corelib/serialization/qxmlstream/data/011.xml
Normal file
@ -0,0 +1,20 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- Namespace equality test: use of entity reference -->
|
||||
<!DOCTYPE foo [
|
||||
<!ELEMENT foo ANY>
|
||||
<!ATTLIST foo xmlns:a CDATA #IMPLIED
|
||||
xmlns:b CDATA #IMPLIED
|
||||
xmlns:c CDATA #IMPLIED>
|
||||
<!ELEMENT bar ANY>
|
||||
<!ATTLIST bar a:attr CDATA #IMPLIED
|
||||
b:attr CDATA #IMPLIED
|
||||
c:attr CDATA #IMPLIED>
|
||||
<!ENTITY tilde "~">
|
||||
]>
|
||||
<foo xmlns:a="http://example.org/~wilbur"
|
||||
xmlns:b="http://example.org/˜wilbur">
|
||||
|
||||
<bar a:attr="1" b:attr="2"/>
|
||||
|
||||
</foo>
|
||||
|
27
tests/auto/corelib/serialization/qxmlstream/data/012.ref
Normal file
27
tests/auto/corelib/serialization/qxmlstream/data/012.ref
Normal file
@ -0,0 +1,27 @@
|
||||
StartDocument( documentVersion="1.0" )
|
||||
Comment( text=" Namespace inequality test: equal after attribute value normalization " )
|
||||
DTD( text="
|
||||
<!DOCTYPE foo [
|
||||
<!ELEMENT foo ANY>
|
||||
<!ATTLIST foo xmlns:a CDATA #IMPLIED
|
||||
xmlns:b NMTOKEN #IMPLIED
|
||||
xmlns:c CDATA #IMPLIED>
|
||||
<!ELEMENT bar ANY>
|
||||
<!ATTLIST bar a:attr CDATA #IMPLIED
|
||||
b:attr CDATA #IMPLIED
|
||||
c:attr CDATA #IMPLIED>
|
||||
]>" dtdName="foo" )
|
||||
StartElement( name="foo" qualifiedName="foo"
|
||||
NamespaceDeclaration( prefix="a" namespaceUri="urn:xyzzy" )
|
||||
|
||||
NamespaceDeclaration( prefix="b" namespaceUri="urn:xyzzy" )
|
||||
)
|
||||
Characters( whitespace text="
|
||||
|
||||
" )
|
||||
Invalid( name="bar" qualifiedName="bar"
|
||||
Attribute( name="attr" namespaceUri="urn:xyzzy" qualifiedName="a:attr" prefix="a" value="1" )
|
||||
|
||||
Attribute( name="attr" namespaceUri="urn:xyzzy" qualifiedName="b:attr" prefix="b" value="2" )
|
||||
)
|
||||
ERROR: Attribute 'b:attr' redefined.
|
19
tests/auto/corelib/serialization/qxmlstream/data/012.xml
Normal file
19
tests/auto/corelib/serialization/qxmlstream/data/012.xml
Normal file
@ -0,0 +1,19 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- Namespace inequality test: equal after attribute value normalization -->
|
||||
<!DOCTYPE foo [
|
||||
<!ELEMENT foo ANY>
|
||||
<!ATTLIST foo xmlns:a CDATA #IMPLIED
|
||||
xmlns:b NMTOKEN #IMPLIED
|
||||
xmlns:c CDATA #IMPLIED>
|
||||
<!ELEMENT bar ANY>
|
||||
<!ATTLIST bar a:attr CDATA #IMPLIED
|
||||
b:attr CDATA #IMPLIED
|
||||
c:attr CDATA #IMPLIED>
|
||||
]>
|
||||
<foo xmlns:a="urn:xyzzy"
|
||||
xmlns:b=" urn:xyzzy ">
|
||||
|
||||
<bar a:attr="1" b:attr="2"/>
|
||||
|
||||
</foo>
|
||||
|
7
tests/auto/corelib/serialization/qxmlstream/data/013.ref
Normal file
7
tests/auto/corelib/serialization/qxmlstream/data/013.ref
Normal file
@ -0,0 +1,7 @@
|
||||
StartDocument( documentVersion="1.0" )
|
||||
Comment( text=" Bad QName syntax: multiple colons " )
|
||||
StartElement( name="foo" qualifiedName="foo" )
|
||||
Characters( whitespace text="
|
||||
" )
|
||||
Invalid( name="bar" qualifiedName="bar" )
|
||||
ERROR: Expected '=', but got ':'.
|
5
tests/auto/corelib/serialization/qxmlstream/data/013.xml
Normal file
5
tests/auto/corelib/serialization/qxmlstream/data/013.xml
Normal file
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- Bad QName syntax: multiple colons -->
|
||||
<foo>
|
||||
<bar a:b:attr="1"/>
|
||||
</foo>
|
4
tests/auto/corelib/serialization/qxmlstream/data/014.ref
Normal file
4
tests/auto/corelib/serialization/qxmlstream/data/014.ref
Normal file
@ -0,0 +1,4 @@
|
||||
StartDocument( documentVersion="1.0" )
|
||||
Comment( text=" Bad QName syntax: colon at end " )
|
||||
Invalid( name="foo" qualifiedName="foo" )
|
||||
ERROR: Expected '>' or '/', but got ':'.
|
3
tests/auto/corelib/serialization/qxmlstream/data/014.xml
Normal file
3
tests/auto/corelib/serialization/qxmlstream/data/014.xml
Normal file
@ -0,0 +1,3 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- Bad QName syntax: colon at end -->
|
||||
<foo: />
|
4
tests/auto/corelib/serialization/qxmlstream/data/015.ref
Normal file
4
tests/auto/corelib/serialization/qxmlstream/data/015.ref
Normal file
@ -0,0 +1,4 @@
|
||||
StartDocument( documentVersion="1.0" )
|
||||
Comment( text=" Bad QName syntax: colon at start " )
|
||||
Invalid( )
|
||||
ERROR: Expected '?', '!', or '[a-zA-Z]', but got ':'.
|
3
tests/auto/corelib/serialization/qxmlstream/data/015.xml
Normal file
3
tests/auto/corelib/serialization/qxmlstream/data/015.xml
Normal file
@ -0,0 +1,3 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- Bad QName syntax: colon at start -->
|
||||
<:foo />
|
4
tests/auto/corelib/serialization/qxmlstream/data/016.ref
Normal file
4
tests/auto/corelib/serialization/qxmlstream/data/016.ref
Normal file
@ -0,0 +1,4 @@
|
||||
StartDocument( documentVersion="1.0" )
|
||||
Comment( text=" Bad QName syntax: xmlns: " )
|
||||
Invalid( name="foo" qualifiedName="foo" )
|
||||
ERROR: Expected '=', but got ':'.
|
3
tests/auto/corelib/serialization/qxmlstream/data/016.xml
Normal file
3
tests/auto/corelib/serialization/qxmlstream/data/016.xml
Normal file
@ -0,0 +1,3 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- Bad QName syntax: xmlns: -->
|
||||
<foo xmlns:="http://example.org/namespace" />
|
5
tests/auto/corelib/serialization/qxmlstream/data/017.ref
Normal file
5
tests/auto/corelib/serialization/qxmlstream/data/017.ref
Normal file
@ -0,0 +1,5 @@
|
||||
StartDocument( documentVersion="1.0" )
|
||||
Comment( text=" Simple legal case: no namespaces " )
|
||||
StartElement( name="foo" qualifiedName="foo" )
|
||||
EndElement( name="foo" qualifiedName="foo" )
|
||||
EndDocument( )
|
3
tests/auto/corelib/serialization/qxmlstream/data/017.xml
Normal file
3
tests/auto/corelib/serialization/qxmlstream/data/017.xml
Normal file
@ -0,0 +1,3 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- Simple legal case: no namespaces -->
|
||||
<foo/>
|
7
tests/auto/corelib/serialization/qxmlstream/data/018.ref
Normal file
7
tests/auto/corelib/serialization/qxmlstream/data/018.ref
Normal file
@ -0,0 +1,7 @@
|
||||
StartDocument( documentVersion="1.0" )
|
||||
Comment( text=" Simple legal case: default namespace " )
|
||||
StartElement( name="foo" namespaceUri="http://example.org/namespace" qualifiedName="foo"
|
||||
NamespaceDeclaration( namespaceUri="http://example.org/namespace" )
|
||||
)
|
||||
EndElement( name="foo" namespaceUri="http://example.org/namespace" qualifiedName="foo" )
|
||||
EndDocument( )
|
3
tests/auto/corelib/serialization/qxmlstream/data/018.xml
Normal file
3
tests/auto/corelib/serialization/qxmlstream/data/018.xml
Normal file
@ -0,0 +1,3 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- Simple legal case: default namespace -->
|
||||
<foo xmlns="http://example.org/namespace"/>
|
7
tests/auto/corelib/serialization/qxmlstream/data/019.ref
Normal file
7
tests/auto/corelib/serialization/qxmlstream/data/019.ref
Normal file
@ -0,0 +1,7 @@
|
||||
StartDocument( documentVersion="1.0" )
|
||||
Comment( text=" Simple legal case: prefixed element " )
|
||||
StartElement( name="foo" namespaceUri="http://example.org/namespace" qualifiedName="a:foo" prefix="a"
|
||||
NamespaceDeclaration( prefix="a" namespaceUri="http://example.org/namespace" )
|
||||
)
|
||||
EndElement( name="foo" namespaceUri="http://example.org/namespace" qualifiedName="a:foo" prefix="a" )
|
||||
EndDocument( )
|
3
tests/auto/corelib/serialization/qxmlstream/data/019.xml
Normal file
3
tests/auto/corelib/serialization/qxmlstream/data/019.xml
Normal file
@ -0,0 +1,3 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- Simple legal case: prefixed element -->
|
||||
<a:foo xmlns:a="http://example.org/namespace"/>
|
9
tests/auto/corelib/serialization/qxmlstream/data/020.ref
Normal file
9
tests/auto/corelib/serialization/qxmlstream/data/020.ref
Normal file
@ -0,0 +1,9 @@
|
||||
StartDocument( documentVersion="1.0" )
|
||||
Comment( text=" Simple legal case: prefixed attribute " )
|
||||
StartElement( name="foo" qualifiedName="foo"
|
||||
Attribute( name="attr" namespaceUri="http://example.org/namespace" qualifiedName="a:attr" prefix="a" value="1" )
|
||||
|
||||
NamespaceDeclaration( prefix="a" namespaceUri="http://example.org/namespace" )
|
||||
)
|
||||
EndElement( name="foo" qualifiedName="foo" )
|
||||
EndDocument( )
|
3
tests/auto/corelib/serialization/qxmlstream/data/020.xml
Normal file
3
tests/auto/corelib/serialization/qxmlstream/data/020.xml
Normal file
@ -0,0 +1,3 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- Simple legal case: prefixed attribute -->
|
||||
<foo xmlns:a="http://example.org/namespace" a:attr="1"/>
|
15
tests/auto/corelib/serialization/qxmlstream/data/021.ref
Normal file
15
tests/auto/corelib/serialization/qxmlstream/data/021.ref
Normal file
@ -0,0 +1,15 @@
|
||||
StartDocument( documentVersion="1.0" )
|
||||
Comment( text=" Simple legal case: default namespace and unbinding " )
|
||||
StartElement( name="foo" namespaceUri="http://example.org/namespace" qualifiedName="foo"
|
||||
NamespaceDeclaration( namespaceUri="http://example.org/namespace" )
|
||||
)
|
||||
Characters( whitespace text="
|
||||
" )
|
||||
StartElement( name="foo" qualifiedName="foo"
|
||||
NamespaceDeclaration( )
|
||||
)
|
||||
EndElement( name="foo" qualifiedName="foo" )
|
||||
Characters( whitespace text="
|
||||
" )
|
||||
EndElement( name="foo" namespaceUri="http://example.org/namespace" qualifiedName="foo" )
|
||||
EndDocument( )
|
6
tests/auto/corelib/serialization/qxmlstream/data/021.xml
Normal file
6
tests/auto/corelib/serialization/qxmlstream/data/021.xml
Normal file
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- Simple legal case: default namespace and unbinding -->
|
||||
<foo xmlns="http://example.org/namespace">
|
||||
<foo xmlns=""/>
|
||||
</foo>
|
||||
|
15
tests/auto/corelib/serialization/qxmlstream/data/022.ref
Normal file
15
tests/auto/corelib/serialization/qxmlstream/data/022.ref
Normal file
@ -0,0 +1,15 @@
|
||||
StartDocument( documentVersion="1.0" )
|
||||
Comment( text=" Simple legal case: default namespace and rebinding " )
|
||||
StartElement( name="foo" namespaceUri="http://example.org/namespace" qualifiedName="foo"
|
||||
NamespaceDeclaration( namespaceUri="http://example.org/namespace" )
|
||||
)
|
||||
Characters( whitespace text="
|
||||
" )
|
||||
StartElement( name="foo" namespaceUri="http://example.org/other-namespace" qualifiedName="foo"
|
||||
NamespaceDeclaration( namespaceUri="http://example.org/other-namespace" )
|
||||
)
|
||||
EndElement( name="foo" namespaceUri="http://example.org/other-namespace" qualifiedName="foo" )
|
||||
Characters( whitespace text="
|
||||
" )
|
||||
EndElement( name="foo" namespaceUri="http://example.org/namespace" qualifiedName="foo" )
|
||||
EndDocument( )
|
6
tests/auto/corelib/serialization/qxmlstream/data/022.xml
Normal file
6
tests/auto/corelib/serialization/qxmlstream/data/022.xml
Normal file
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- Simple legal case: default namespace and rebinding -->
|
||||
<foo xmlns="http://example.org/namespace">
|
||||
<foo xmlns="http://example.org/other-namespace"/>
|
||||
</foo>
|
||||
|
9
tests/auto/corelib/serialization/qxmlstream/data/023.ref
Normal file
9
tests/auto/corelib/serialization/qxmlstream/data/023.ref
Normal file
@ -0,0 +1,9 @@
|
||||
StartDocument( documentVersion="1.0" )
|
||||
Comment( text=" Illegal use of 1.1-style prefix unbinding in 1.0 document " )
|
||||
StartElement( name="foo" namespaceUri="http://example.org/namespace" qualifiedName="a:foo" prefix="a"
|
||||
NamespaceDeclaration( prefix="a" namespaceUri="http://example.org/namespace" )
|
||||
)
|
||||
Characters( whitespace text="
|
||||
" )
|
||||
Invalid( name="foo" qualifiedName="a:foo" prefix="a" )
|
||||
ERROR: Illegal namespace declaration.
|
6
tests/auto/corelib/serialization/qxmlstream/data/023.xml
Normal file
6
tests/auto/corelib/serialization/qxmlstream/data/023.xml
Normal file
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- Illegal use of 1.1-style prefix unbinding in 1.0 document -->
|
||||
<a:foo xmlns:a="http://example.org/namespace">
|
||||
<a:foo xmlns:a=""/>
|
||||
</a:foo>
|
||||
|
15
tests/auto/corelib/serialization/qxmlstream/data/024.ref
Normal file
15
tests/auto/corelib/serialization/qxmlstream/data/024.ref
Normal file
@ -0,0 +1,15 @@
|
||||
StartDocument( documentVersion="1.0" )
|
||||
Comment( text=" Simple legal case: prefix rebinding " )
|
||||
StartElement( name="foo" namespaceUri="http://example.org/namespace" qualifiedName="a:foo" prefix="a"
|
||||
NamespaceDeclaration( prefix="a" namespaceUri="http://example.org/namespace" )
|
||||
)
|
||||
Characters( whitespace text="
|
||||
" )
|
||||
StartElement( name="foo" namespaceUri="http://example.org/other-namespace" qualifiedName="a:foo" prefix="a"
|
||||
NamespaceDeclaration( prefix="a" namespaceUri="http://example.org/other-namespace" )
|
||||
)
|
||||
EndElement( name="foo" namespaceUri="http://example.org/other-namespace" qualifiedName="a:foo" prefix="a" )
|
||||
Characters( whitespace text="
|
||||
" )
|
||||
EndElement( name="foo" namespaceUri="http://example.org/namespace" qualifiedName="a:foo" prefix="a" )
|
||||
EndDocument( )
|
6
tests/auto/corelib/serialization/qxmlstream/data/024.xml
Normal file
6
tests/auto/corelib/serialization/qxmlstream/data/024.xml
Normal file
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- Simple legal case: prefix rebinding -->
|
||||
<a:foo xmlns:a="http://example.org/namespace">
|
||||
<a:foo xmlns:a="http://example.org/other-namespace"/>
|
||||
</a:foo>
|
||||
|
4
tests/auto/corelib/serialization/qxmlstream/data/025.ref
Normal file
4
tests/auto/corelib/serialization/qxmlstream/data/025.ref
Normal file
@ -0,0 +1,4 @@
|
||||
StartDocument( documentVersion="1.0" )
|
||||
Comment( text=" Unbound element prefix " )
|
||||
Invalid( name="foo" qualifiedName="a:foo" prefix="a" )
|
||||
ERROR: Namespace prefix 'a' not declared
|
3
tests/auto/corelib/serialization/qxmlstream/data/025.xml
Normal file
3
tests/auto/corelib/serialization/qxmlstream/data/025.xml
Normal file
@ -0,0 +1,3 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- Unbound element prefix -->
|
||||
<a:foo/>
|
6
tests/auto/corelib/serialization/qxmlstream/data/026.ref
Normal file
6
tests/auto/corelib/serialization/qxmlstream/data/026.ref
Normal file
@ -0,0 +1,6 @@
|
||||
StartDocument( documentVersion="1.0" )
|
||||
Comment( text=" Unbound attribute prefix " )
|
||||
Invalid( name="foo" qualifiedName="foo"
|
||||
Attribute( name="attr" qualifiedName="a:attr" prefix="a" value="1" )
|
||||
)
|
||||
ERROR: Namespace prefix 'a' not declared
|
3
tests/auto/corelib/serialization/qxmlstream/data/026.xml
Normal file
3
tests/auto/corelib/serialization/qxmlstream/data/026.xml
Normal file
@ -0,0 +1,3 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- Unbound attribute prefix -->
|
||||
<foo a:attr="1"/>
|
7
tests/auto/corelib/serialization/qxmlstream/data/027.ref
Normal file
7
tests/auto/corelib/serialization/qxmlstream/data/027.ref
Normal file
@ -0,0 +1,7 @@
|
||||
StartDocument( documentVersion="1.0" )
|
||||
Comment( text=" Reserved prefixes and namespaces: using the xml prefix undeclared " )
|
||||
StartElement( name="foo" qualifiedName="foo"
|
||||
Attribute( name="lang" namespaceUri="http://www.w3.org/XML/1998/namespace" qualifiedName="xml:lang" prefix="xml" value="en" )
|
||||
)
|
||||
EndElement( name="foo" qualifiedName="foo" )
|
||||
EndDocument( )
|
3
tests/auto/corelib/serialization/qxmlstream/data/027.xml
Normal file
3
tests/auto/corelib/serialization/qxmlstream/data/027.xml
Normal file
@ -0,0 +1,3 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- Reserved prefixes and namespaces: using the xml prefix undeclared -->
|
||||
<foo xml:lang="en"/>
|
7
tests/auto/corelib/serialization/qxmlstream/data/028.ref
Normal file
7
tests/auto/corelib/serialization/qxmlstream/data/028.ref
Normal file
@ -0,0 +1,7 @@
|
||||
StartDocument( documentVersion="1.0" )
|
||||
Comment( text=" Reserved prefixes and namespaces: declaring the xml prefix correctly " )
|
||||
StartElement( name="foo" qualifiedName="foo"
|
||||
NamespaceDeclaration( prefix="xml" namespaceUri="http://www.w3.org/XML/1998/namespace" )
|
||||
)
|
||||
EndElement( name="foo" qualifiedName="foo" )
|
||||
EndDocument( )
|
3
tests/auto/corelib/serialization/qxmlstream/data/028.xml
Normal file
3
tests/auto/corelib/serialization/qxmlstream/data/028.xml
Normal file
@ -0,0 +1,3 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- Reserved prefixes and namespaces: declaring the xml prefix correctly -->
|
||||
<foo xmlns:xml="http://www.w3.org/XML/1998/namespace"/>
|
4
tests/auto/corelib/serialization/qxmlstream/data/029.ref
Normal file
4
tests/auto/corelib/serialization/qxmlstream/data/029.ref
Normal file
@ -0,0 +1,4 @@
|
||||
StartDocument( documentVersion="1.0" )
|
||||
Comment( text=" Reserved prefixes and namespaces: declaring the xml prefix incorrectly " )
|
||||
Invalid( name="foo" qualifiedName="foo" )
|
||||
ERROR: Illegal namespace declaration.
|
4
tests/auto/corelib/serialization/qxmlstream/data/029.xml
Normal file
4
tests/auto/corelib/serialization/qxmlstream/data/029.xml
Normal file
@ -0,0 +1,4 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- Reserved prefixes and namespaces: declaring the xml prefix incorrectly -->
|
||||
<foo xmlns:xml="http://example.org/namespace"/>
|
||||
|
5
tests/auto/corelib/serialization/qxmlstream/data/030.ref
Normal file
5
tests/auto/corelib/serialization/qxmlstream/data/030.ref
Normal file
@ -0,0 +1,5 @@
|
||||
StartDocument( documentVersion="1.0" )
|
||||
Comment( text=" Reserved prefixes and namespaces: binding another prefix
|
||||
to the xml namespace " )
|
||||
Invalid( name="foo" qualifiedName="foo" )
|
||||
ERROR: Illegal namespace declaration.
|
4
tests/auto/corelib/serialization/qxmlstream/data/030.xml
Normal file
4
tests/auto/corelib/serialization/qxmlstream/data/030.xml
Normal file
@ -0,0 +1,4 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- Reserved prefixes and namespaces: binding another prefix
|
||||
to the xml namespace -->
|
||||
<foo xmlns:yml="http://www.w3.org/XML/1998/namespace"/>
|
5
tests/auto/corelib/serialization/qxmlstream/data/031.ref
Normal file
5
tests/auto/corelib/serialization/qxmlstream/data/031.ref
Normal file
@ -0,0 +1,5 @@
|
||||
StartDocument( documentVersion="1.0" )
|
||||
Comment( text=" Reserved prefixes and namespaces: declaring the xmlns prefix
|
||||
with its correct URI (illegal) " )
|
||||
Invalid( name="foo" qualifiedName="foo" )
|
||||
ERROR: Illegal namespace declaration.
|
4
tests/auto/corelib/serialization/qxmlstream/data/031.xml
Normal file
4
tests/auto/corelib/serialization/qxmlstream/data/031.xml
Normal file
@ -0,0 +1,4 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- Reserved prefixes and namespaces: declaring the xmlns prefix
|
||||
with its correct URI (illegal) -->
|
||||
<foo xmlns:xmlns="http://www.w3.org/2000/xmlns/"/>
|
5
tests/auto/corelib/serialization/qxmlstream/data/032.ref
Normal file
5
tests/auto/corelib/serialization/qxmlstream/data/032.ref
Normal file
@ -0,0 +1,5 @@
|
||||
StartDocument( documentVersion="1.0" )
|
||||
Comment( text=" Reserved prefixes and namespaces: declaring the xmlns prefix
|
||||
with an incorrect URI " )
|
||||
Invalid( name="foo" qualifiedName="foo" )
|
||||
ERROR: Illegal namespace declaration.
|
5
tests/auto/corelib/serialization/qxmlstream/data/032.xml
Normal file
5
tests/auto/corelib/serialization/qxmlstream/data/032.xml
Normal file
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- Reserved prefixes and namespaces: declaring the xmlns prefix
|
||||
with an incorrect URI -->
|
||||
<foo xmlns:xmlns="http://example.org/namespace"/>
|
||||
|
5
tests/auto/corelib/serialization/qxmlstream/data/033.ref
Normal file
5
tests/auto/corelib/serialization/qxmlstream/data/033.ref
Normal file
@ -0,0 +1,5 @@
|
||||
StartDocument( documentVersion="1.0" )
|
||||
Comment( text=" Reserved prefixes and namespaces: binding another prefix
|
||||
to the xmlns namespace " )
|
||||
Invalid( name="foo" qualifiedName="foo" )
|
||||
ERROR: Illegal namespace declaration.
|
4
tests/auto/corelib/serialization/qxmlstream/data/033.xml
Normal file
4
tests/auto/corelib/serialization/qxmlstream/data/033.xml
Normal file
@ -0,0 +1,4 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- Reserved prefixes and namespaces: binding another prefix
|
||||
to the xmlns namespace -->
|
||||
<foo xmlns:ymlns="http://www.w3.org/2000/xmlns/"/>
|
7
tests/auto/corelib/serialization/qxmlstream/data/034.ref
Normal file
7
tests/auto/corelib/serialization/qxmlstream/data/034.ref
Normal file
@ -0,0 +1,7 @@
|
||||
StartDocument( documentVersion="1.0" )
|
||||
Comment( text=" Reserved prefixes and namespaces: binding a reserved prefix " )
|
||||
StartElement( name="foo" qualifiedName="foo"
|
||||
NamespaceDeclaration( prefix="xml2" namespaceUri="http://example.org/namespace" )
|
||||
)
|
||||
EndElement( name="foo" qualifiedName="foo" )
|
||||
EndDocument( )
|
3
tests/auto/corelib/serialization/qxmlstream/data/034.xml
Normal file
3
tests/auto/corelib/serialization/qxmlstream/data/034.xml
Normal file
@ -0,0 +1,3 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- Reserved prefixes and namespaces: binding a reserved prefix -->
|
||||
<foo xmlns:xml2="http://example.org/namespace"/>
|
16
tests/auto/corelib/serialization/qxmlstream/data/035.ref
Normal file
16
tests/auto/corelib/serialization/qxmlstream/data/035.ref
Normal file
@ -0,0 +1,16 @@
|
||||
StartDocument( documentVersion="1.0" )
|
||||
Comment( text=" Attribute uniqueness: repeated identical attribute " )
|
||||
StartElement( name="foo" qualifiedName="foo"
|
||||
NamespaceDeclaration( prefix="a" namespaceUri="http://example.org/~wilbur" )
|
||||
|
||||
NamespaceDeclaration( prefix="b" namespaceUri="http://example.org/~wilbur" )
|
||||
)
|
||||
Characters( whitespace text="
|
||||
|
||||
" )
|
||||
Invalid( name="bar" qualifiedName="bar"
|
||||
Attribute( name="attr" namespaceUri="http://example.org/~wilbur" qualifiedName="a:attr" prefix="a" value="1" )
|
||||
|
||||
Attribute( name="attr" namespaceUri="http://example.org/~wilbur" qualifiedName="a:attr" prefix="a" value="2" )
|
||||
)
|
||||
ERROR: Attribute 'a:attr' redefined.
|
8
tests/auto/corelib/serialization/qxmlstream/data/035.xml
Normal file
8
tests/auto/corelib/serialization/qxmlstream/data/035.xml
Normal file
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- Attribute uniqueness: repeated identical attribute -->
|
||||
<foo xmlns:a="http://example.org/~wilbur"
|
||||
xmlns:b="http://example.org/~wilbur">
|
||||
|
||||
<bar a:attr="1" a:attr="2"/>
|
||||
|
||||
</foo>
|
16
tests/auto/corelib/serialization/qxmlstream/data/036.ref
Normal file
16
tests/auto/corelib/serialization/qxmlstream/data/036.ref
Normal file
@ -0,0 +1,16 @@
|
||||
StartDocument( documentVersion="1.0" )
|
||||
Comment( text=" Attribute uniqueness: repeated attribute with different prefixes " )
|
||||
StartElement( name="foo" qualifiedName="foo"
|
||||
NamespaceDeclaration( prefix="a" namespaceUri="http://example.org/~wilbur" )
|
||||
|
||||
NamespaceDeclaration( prefix="b" namespaceUri="http://example.org/~wilbur" )
|
||||
)
|
||||
Characters( whitespace text="
|
||||
|
||||
" )
|
||||
Invalid( name="bar" qualifiedName="bar"
|
||||
Attribute( name="attr" namespaceUri="http://example.org/~wilbur" qualifiedName="a:attr" prefix="a" value="1" )
|
||||
|
||||
Attribute( name="attr" namespaceUri="http://example.org/~wilbur" qualifiedName="b:attr" prefix="b" value="2" )
|
||||
)
|
||||
ERROR: Attribute 'b:attr' redefined.
|
8
tests/auto/corelib/serialization/qxmlstream/data/036.xml
Normal file
8
tests/auto/corelib/serialization/qxmlstream/data/036.xml
Normal file
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- Attribute uniqueness: repeated attribute with different prefixes -->
|
||||
<foo xmlns:a="http://example.org/~wilbur"
|
||||
xmlns:b="http://example.org/~wilbur">
|
||||
|
||||
<bar a:attr="1" b:attr="2"/>
|
||||
|
||||
</foo>
|
21
tests/auto/corelib/serialization/qxmlstream/data/037.ref
Normal file
21
tests/auto/corelib/serialization/qxmlstream/data/037.ref
Normal file
@ -0,0 +1,21 @@
|
||||
StartDocument( documentVersion="1.0" )
|
||||
Comment( text=" Attribute uniqueness: different attributes with same local name " )
|
||||
StartElement( name="foo" qualifiedName="foo"
|
||||
NamespaceDeclaration( prefix="a" namespaceUri="http://example.org/~wilbur" )
|
||||
|
||||
NamespaceDeclaration( prefix="b" namespaceUri="http://example.org/~kipper" )
|
||||
)
|
||||
Characters( whitespace text="
|
||||
|
||||
" )
|
||||
StartElement( name="bar" qualifiedName="bar"
|
||||
Attribute( name="attr" namespaceUri="http://example.org/~wilbur" qualifiedName="a:attr" prefix="a" value="1" )
|
||||
|
||||
Attribute( name="attr" namespaceUri="http://example.org/~kipper" qualifiedName="b:attr" prefix="b" value="2" )
|
||||
)
|
||||
EndElement( name="bar" qualifiedName="bar" )
|
||||
Characters( whitespace text="
|
||||
|
||||
" )
|
||||
EndElement( name="foo" qualifiedName="foo" )
|
||||
EndDocument( )
|
8
tests/auto/corelib/serialization/qxmlstream/data/037.xml
Normal file
8
tests/auto/corelib/serialization/qxmlstream/data/037.xml
Normal file
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- Attribute uniqueness: different attributes with same local name -->
|
||||
<foo xmlns:a="http://example.org/~wilbur"
|
||||
xmlns:b="http://example.org/~kipper">
|
||||
|
||||
<bar a:attr="1" b:attr="2"/>
|
||||
|
||||
</foo>
|
20
tests/auto/corelib/serialization/qxmlstream/data/038.ref
Normal file
20
tests/auto/corelib/serialization/qxmlstream/data/038.ref
Normal file
@ -0,0 +1,20 @@
|
||||
StartDocument( documentVersion="1.0" )
|
||||
Comment( text=" Attribute uniqueness: prefixed and unprefixed attributes with same
|
||||
local name " )
|
||||
StartElement( name="foo" qualifiedName="foo"
|
||||
NamespaceDeclaration( prefix="a" namespaceUri="http://example.org/~wilbur" )
|
||||
)
|
||||
Characters( whitespace text="
|
||||
|
||||
" )
|
||||
StartElement( name="bar" qualifiedName="bar"
|
||||
Attribute( name="attr" namespaceUri="http://example.org/~wilbur" qualifiedName="a:attr" prefix="a" value="1" )
|
||||
|
||||
Attribute( name="attr" qualifiedName="attr" value="2" )
|
||||
)
|
||||
EndElement( name="bar" qualifiedName="bar" )
|
||||
Characters( whitespace text="
|
||||
|
||||
" )
|
||||
EndElement( name="foo" qualifiedName="foo" )
|
||||
EndDocument( )
|
8
tests/auto/corelib/serialization/qxmlstream/data/038.xml
Normal file
8
tests/auto/corelib/serialization/qxmlstream/data/038.xml
Normal file
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- Attribute uniqueness: prefixed and unprefixed attributes with same
|
||||
local name -->
|
||||
<foo xmlns:a="http://example.org/~wilbur">
|
||||
|
||||
<bar a:attr="1" attr="2"/>
|
||||
|
||||
</foo>
|
24
tests/auto/corelib/serialization/qxmlstream/data/039.ref
Normal file
24
tests/auto/corelib/serialization/qxmlstream/data/039.ref
Normal file
@ -0,0 +1,24 @@
|
||||
StartDocument( documentVersion="1.0" )
|
||||
Comment( text=" Attribute uniqueness: prefixed and unprefixed attributes with same
|
||||
local name, with default namespace " )
|
||||
StartElement( name="foo" namespaceUri="http://example.org/~wilbur" qualifiedName="foo"
|
||||
NamespaceDeclaration( prefix="a" namespaceUri="http://example.org/~wilbur" )
|
||||
|
||||
NamespaceDeclaration( prefix="b" namespaceUri="http://example.org/~kipper" )
|
||||
|
||||
NamespaceDeclaration( namespaceUri="http://example.org/~wilbur" )
|
||||
)
|
||||
Characters( whitespace text="
|
||||
|
||||
" )
|
||||
StartElement( name="bar" namespaceUri="http://example.org/~kipper" qualifiedName="b:bar" prefix="b"
|
||||
Attribute( name="attr" namespaceUri="http://example.org/~wilbur" qualifiedName="a:attr" prefix="a" value="1" )
|
||||
|
||||
Attribute( name="attr" qualifiedName="attr" value="2" )
|
||||
)
|
||||
EndElement( name="bar" namespaceUri="http://example.org/~kipper" qualifiedName="b:bar" prefix="b" )
|
||||
Characters( whitespace text="
|
||||
|
||||
" )
|
||||
EndElement( name="foo" namespaceUri="http://example.org/~wilbur" qualifiedName="foo" )
|
||||
EndDocument( )
|
10
tests/auto/corelib/serialization/qxmlstream/data/039.xml
Normal file
10
tests/auto/corelib/serialization/qxmlstream/data/039.xml
Normal file
@ -0,0 +1,10 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- Attribute uniqueness: prefixed and unprefixed attributes with same
|
||||
local name, with default namespace -->
|
||||
<foo xmlns:a="http://example.org/~wilbur"
|
||||
xmlns:b="http://example.org/~kipper"
|
||||
xmlns="http://example.org/~wilbur">
|
||||
|
||||
<b:bar a:attr="1" attr="2"/>
|
||||
|
||||
</foo>
|
22
tests/auto/corelib/serialization/qxmlstream/data/040.ref
Normal file
22
tests/auto/corelib/serialization/qxmlstream/data/040.ref
Normal file
@ -0,0 +1,22 @@
|
||||
StartDocument( documentVersion="1.0" )
|
||||
Comment( text=" Attribute uniqueness: prefixed and unprefixed attributes with same
|
||||
local name, with default namespace and element in default namespace " )
|
||||
StartElement( name="foo" namespaceUri="http://example.org/~wilbur" qualifiedName="foo"
|
||||
NamespaceDeclaration( prefix="a" namespaceUri="http://example.org/~wilbur" )
|
||||
|
||||
NamespaceDeclaration( namespaceUri="http://example.org/~wilbur" )
|
||||
)
|
||||
Characters( whitespace text="
|
||||
|
||||
" )
|
||||
StartElement( name="bar" namespaceUri="http://example.org/~wilbur" qualifiedName="bar"
|
||||
Attribute( name="attr" namespaceUri="http://example.org/~wilbur" qualifiedName="a:attr" prefix="a" value="1" )
|
||||
|
||||
Attribute( name="attr" qualifiedName="attr" value="2" )
|
||||
)
|
||||
EndElement( name="bar" namespaceUri="http://example.org/~wilbur" qualifiedName="bar" )
|
||||
Characters( whitespace text="
|
||||
|
||||
" )
|
||||
EndElement( name="foo" namespaceUri="http://example.org/~wilbur" qualifiedName="foo" )
|
||||
EndDocument( )
|
9
tests/auto/corelib/serialization/qxmlstream/data/040.xml
Normal file
9
tests/auto/corelib/serialization/qxmlstream/data/040.xml
Normal file
@ -0,0 +1,9 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- Attribute uniqueness: prefixed and unprefixed attributes with same
|
||||
local name, with default namespace and element in default namespace -->
|
||||
<foo xmlns:a="http://example.org/~wilbur"
|
||||
xmlns="http://example.org/~wilbur">
|
||||
|
||||
<bar a:attr="1" attr="2"/>
|
||||
|
||||
</foo>
|
20
tests/auto/corelib/serialization/qxmlstream/data/041.ref
Normal file
20
tests/auto/corelib/serialization/qxmlstream/data/041.ref
Normal file
@ -0,0 +1,20 @@
|
||||
StartDocument( documentVersion="1.0" )
|
||||
Comment( text=" Attribute uniqueness: prefixed and unprefixed attributes with same
|
||||
local name, element in same namespace as prefixed attribute " )
|
||||
StartElement( name="foo" qualifiedName="foo"
|
||||
NamespaceDeclaration( prefix="a" namespaceUri="http://example.org/~wilbur" )
|
||||
)
|
||||
Characters( whitespace text="
|
||||
|
||||
" )
|
||||
StartElement( name="bar" namespaceUri="http://example.org/~wilbur" qualifiedName="a:bar" prefix="a"
|
||||
Attribute( name="attr" namespaceUri="http://example.org/~wilbur" qualifiedName="a:attr" prefix="a" value="1" )
|
||||
|
||||
Attribute( name="attr" qualifiedName="attr" value="2" )
|
||||
)
|
||||
EndElement( name="bar" namespaceUri="http://example.org/~wilbur" qualifiedName="a:bar" prefix="a" )
|
||||
Characters( whitespace text="
|
||||
|
||||
" )
|
||||
EndElement( name="foo" qualifiedName="foo" )
|
||||
EndDocument( )
|
8
tests/auto/corelib/serialization/qxmlstream/data/041.xml
Normal file
8
tests/auto/corelib/serialization/qxmlstream/data/041.xml
Normal file
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- Attribute uniqueness: prefixed and unprefixed attributes with same
|
||||
local name, element in same namespace as prefixed attribute -->
|
||||
<foo xmlns:a="http://example.org/~wilbur">
|
||||
|
||||
<a:bar a:attr="1" attr="2"/>
|
||||
|
||||
</foo>
|
4
tests/auto/corelib/serialization/qxmlstream/data/042.ref
Normal file
4
tests/auto/corelib/serialization/qxmlstream/data/042.ref
Normal file
@ -0,0 +1,4 @@
|
||||
StartDocument( documentVersion="1.0" )
|
||||
Comment( text=" Colon in PI name " )
|
||||
Invalid( )
|
||||
ERROR: Expected ' ' or '?', but got ':'.
|
4
tests/auto/corelib/serialization/qxmlstream/data/042.xml
Normal file
4
tests/auto/corelib/serialization/qxmlstream/data/042.xml
Normal file
@ -0,0 +1,4 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- Colon in PI name -->
|
||||
<?a:b bogus?>
|
||||
<foo/>
|
4
tests/auto/corelib/serialization/qxmlstream/data/043.ref
Normal file
4
tests/auto/corelib/serialization/qxmlstream/data/043.ref
Normal file
@ -0,0 +1,4 @@
|
||||
StartDocument( documentVersion="1.0" )
|
||||
Comment( text=" Colon in entity name " )
|
||||
Invalid( )
|
||||
ERROR: Expected ' ', but got ':'.
|
7
tests/auto/corelib/serialization/qxmlstream/data/043.xml
Normal file
7
tests/auto/corelib/serialization/qxmlstream/data/043.xml
Normal file
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- Colon in entity name -->
|
||||
<!DOCTYPE foo [
|
||||
<!ELEMENT foo ANY>
|
||||
<!ENTITY a:b "bogus">
|
||||
]>
|
||||
<foo/>
|
4
tests/auto/corelib/serialization/qxmlstream/data/044.ref
Normal file
4
tests/auto/corelib/serialization/qxmlstream/data/044.ref
Normal file
@ -0,0 +1,4 @@
|
||||
StartDocument( documentVersion="1.0" )
|
||||
Comment( text=" Colon in entity name " )
|
||||
Invalid( )
|
||||
ERROR: Expected ' ', but got ':'.
|
7
tests/auto/corelib/serialization/qxmlstream/data/044.xml
Normal file
7
tests/auto/corelib/serialization/qxmlstream/data/044.xml
Normal file
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- Colon in entity name -->
|
||||
<!DOCTYPE foo [
|
||||
<!ELEMENT foo ANY>
|
||||
<!NOTATION a:b SYSTEM "notation">
|
||||
]>
|
||||
<foo/>
|
12
tests/auto/corelib/serialization/qxmlstream/data/045.ref
Normal file
12
tests/auto/corelib/serialization/qxmlstream/data/045.ref
Normal file
@ -0,0 +1,12 @@
|
||||
StartDocument( documentVersion="1.0" )
|
||||
Comment( text=" Colon in ID attribute name " )
|
||||
DTD( text="
|
||||
<!DOCTYPE foo [
|
||||
<!ELEMENT foo ANY>
|
||||
<!ATTLIST foo id ID #REQUIRED>
|
||||
]>" dtdName="foo" )
|
||||
StartElement( name="foo" qualifiedName="foo"
|
||||
Attribute( name="id" qualifiedName="id" value="a:b" )
|
||||
)
|
||||
EndElement( name="foo" qualifiedName="foo" )
|
||||
EndDocument( )
|
7
tests/auto/corelib/serialization/qxmlstream/data/045.xml
Normal file
7
tests/auto/corelib/serialization/qxmlstream/data/045.xml
Normal file
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- Colon in ID attribute name -->
|
||||
<!DOCTYPE foo [
|
||||
<!ELEMENT foo ANY>
|
||||
<!ATTLIST foo id ID #REQUIRED>
|
||||
]>
|
||||
<foo id="a:b"/>
|
21
tests/auto/corelib/serialization/qxmlstream/data/046.ref
Normal file
21
tests/auto/corelib/serialization/qxmlstream/data/046.ref
Normal file
@ -0,0 +1,21 @@
|
||||
StartDocument( documentVersion="1.0" )
|
||||
Comment( text=" Colon in ID attribute name " )
|
||||
DTD( text="
|
||||
<!DOCTYPE foo [
|
||||
<!ELEMENT foo ANY>
|
||||
<!ATTLIST foo id ID #IMPLIED
|
||||
ref IDREF #IMPLIED>
|
||||
]>" dtdName="foo" )
|
||||
StartElement( name="foo" qualifiedName="foo"
|
||||
Attribute( name="ref" qualifiedName="ref" value="a:b" )
|
||||
)
|
||||
Characters( whitespace text="
|
||||
" )
|
||||
StartElement( name="foo" qualifiedName="foo"
|
||||
Attribute( name="id" qualifiedName="id" value="a:b" )
|
||||
)
|
||||
EndElement( name="foo" qualifiedName="foo" )
|
||||
Characters( whitespace text="
|
||||
" )
|
||||
EndElement( name="foo" qualifiedName="foo" )
|
||||
EndDocument( )
|
10
tests/auto/corelib/serialization/qxmlstream/data/046.xml
Normal file
10
tests/auto/corelib/serialization/qxmlstream/data/046.xml
Normal file
@ -0,0 +1,10 @@
|
||||
<?xml version="1.0"?>
|
||||
<!-- Colon in ID attribute name -->
|
||||
<!DOCTYPE foo [
|
||||
<!ELEMENT foo ANY>
|
||||
<!ATTLIST foo id ID #IMPLIED
|
||||
ref IDREF #IMPLIED>
|
||||
]>
|
||||
<foo ref="a:b">
|
||||
<foo id="a:b"/>
|
||||
</foo>
|
5
tests/auto/corelib/serialization/qxmlstream/data/047.ref
Normal file
5
tests/auto/corelib/serialization/qxmlstream/data/047.ref
Normal file
@ -0,0 +1,5 @@
|
||||
StartDocument( documentVersion="1.0" documentEncoding="UTF-8" )
|
||||
StartElement( name="foo" qualifiedName="foo" )
|
||||
Characters( text="<bar]>" )
|
||||
EndElement( name="foo" qualifiedName="foo" )
|
||||
EndDocument( )
|
2
tests/auto/corelib/serialization/qxmlstream/data/047.xml
Normal file
2
tests/auto/corelib/serialization/qxmlstream/data/047.xml
Normal file
@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<foo><bar]></foo>
|
4
tests/auto/corelib/serialization/qxmlstream/data/048.ref
Normal file
4
tests/auto/corelib/serialization/qxmlstream/data/048.ref
Normal file
@ -0,0 +1,4 @@
|
||||
StartDocument( documentVersion="1.0" documentEncoding="UTF-8" )
|
||||
StartElement( name="foo" qualifiedName="foo" )
|
||||
Invalid( )
|
||||
ERROR: Sequence ']]>' not allowed in content.
|
2
tests/auto/corelib/serialization/qxmlstream/data/048.xml
Normal file
2
tests/auto/corelib/serialization/qxmlstream/data/048.xml
Normal file
@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<foo>illegal sequence]]></foo>
|
@ -0,0 +1,4 @@
|
||||
StartDocument( )
|
||||
StartElement( name="เจมส์" qualifiedName="เจมส์" )
|
||||
EndElement( name="เจมส์" qualifiedName="เจมส์" )
|
||||
EndDocument( )
|
BIN
tests/auto/corelib/serialization/qxmlstream/data/051reduced.xml
Normal file
BIN
tests/auto/corelib/serialization/qxmlstream/data/051reduced.xml
Normal file
Binary file not shown.
8
tests/auto/corelib/serialization/qxmlstream/data/1.ref
Normal file
8
tests/auto/corelib/serialization/qxmlstream/data/1.ref
Normal file
@ -0,0 +1,8 @@
|
||||
StartDocument( )
|
||||
StartElement( name="doc" namespaceUri="namespaceUri" qualifiedName="ns:doc" prefix="ns"
|
||||
Attribute( name="space" namespaceUri="http://www.w3.org/XML/1998/namespace" qualifiedName="xml:space" prefix="xml" value="preserve" )
|
||||
|
||||
NamespaceDeclaration( prefix="ns" namespaceUri="namespaceUri" )
|
||||
)
|
||||
EndElement( name="doc" namespaceUri="namespaceUri" qualifiedName="ns:doc" prefix="ns" )
|
||||
EndDocument( )
|
1
tests/auto/corelib/serialization/qxmlstream/data/1.xml
Normal file
1
tests/auto/corelib/serialization/qxmlstream/data/1.xml
Normal file
@ -0,0 +1 @@
|
||||
<ns:doc xmlns:ns="namespaceUri" xml:space="preserve"/>
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user