Commit Graph

2094 Commits

Author SHA1 Message Date
Rhodri James
9940f71578 Test parameter entity marked SYSTEM but with no ID 2017-07-22 22:49:21 +02:00
Rhodri James
7d4bb8631d Test parameter entity marked PUBLIC but with no ID 2017-07-22 22:49:21 +02:00
Rhodri James
5596cbbbcc Test parameter entity with invalid keyword (not SYSTEM or PUBLIC) 2017-07-22 22:49:21 +02:00
Rhodri James
81a3f2f73f Test Entity declaration marked PUBLIC with no ID 2017-07-22 22:49:21 +02:00
Rhodri James
e5c61fed18 Test that Doctype with an extra ID is rejected 2017-07-22 22:49:21 +02:00
Rhodri James
cb16ead042 Test Doctype marked SYSTEM but with no ID is rejected 2017-07-22 22:49:21 +02:00
Rhodri James
b78b96f6df Test Doctype marked PUBLIC but with no ID is rejected 2017-07-22 22:49:21 +02:00
Rhodri James
5bbc983e7d Test overly brief doctype is rejected 2017-07-22 22:49:21 +02:00
Rhodri James
63dc602a12 Comment change: exclude unreachable case in prolog1 2017-07-22 22:49:21 +02:00
Rhodri James
069a0da15c Extend UTF-16 LE entity test to hex entities 2017-07-22 22:49:21 +02:00
Rhodri James
ff20944a1a Extend UTF-16 BE entity test to hex entities 2017-07-22 22:49:21 +02:00
Rhodri James
c3963ec9a1 Test that comments are picked up from UTF-16 little-endian 2017-07-22 22:49:21 +02:00
Rhodri James
0275ef9330 Test that comments are picked up from UTF-16 big-endian 2017-07-22 22:49:21 +02:00
Rhodri James
16c9fa852f Test public external parameter entity in UTF-16 little-endian 2017-07-22 22:49:21 +02:00
Rhodri James
19d4c9e2c3 Test public external param entity in UTF-16 big-endian 2017-07-22 22:49:21 +02:00
Rhodri James
eee8ad3e33 Test ignore section in UTF-16 big-endian encoding 2017-07-22 22:49:21 +02:00
Rhodri James
9032ba09e8 Test CDATA is passed correctly from little-endian UTF-16 input 2017-07-22 22:49:21 +02:00
Rhodri James
15261c078c Test entity substitution in attributes, UTF-16 little endian 2017-07-22 22:49:21 +02:00
Rhodri James
3536d8749a Test entity substitution in attributes UTF-16 big-endian 2017-07-22 22:49:21 +02:00
Rhodri James
950382c0c1 Test PI in big-endian UTF-16 2017-07-22 22:49:20 +02:00
Rhodri James
3c8d9300f6 Comment change: exclude unreachable line from coverage figures 2017-07-22 22:49:20 +02:00
Rhodri James
7979e831ed Comment change: exclude sameName from coverage 2017-07-22 22:49:20 +02:00
Rhodri James
a35f012501 Test entities with similar names to predefined entity are rejected 2017-07-22 22:49:20 +02:00
Rhodri James
80945fba17 Test invalid character reference with a decimal value
Previous limit test used hexed, which has a difference parse path.
2017-07-22 22:49:20 +02:00
Rhodri James
fc25cfd750 Test IGNORE rejection with an unknown encoding 2017-07-22 22:49:20 +02:00
Rhodri James
0df93c5619 Test IGNORE section with UTF-16 data 2017-07-22 22:49:20 +02:00
Rhodri James
8be7b89885 Comment change: exclude paranoia check from coverage 2017-07-22 22:49:20 +02:00
Rhodri James
36e47058dc Comment change: exclude paranoia check from coverage 2017-07-22 22:49:20 +02:00
Rhodri James
c53aba8bf7 Test multi-byte characters in ATTLIST default attribute value 2017-07-22 22:49:20 +02:00
Rhodri James
ca1cb78164 Fix error messages in test_bad_doctype_* tests 2017-07-22 22:49:20 +02:00
Rhodri James
c73e63de42 Test document name of "1?" is rejected in doctype declaration 2017-07-22 22:49:20 +02:00
Rhodri James
61db6a8a93 Test document name of "1*" is rejected in a doctype declaration 2017-07-22 22:49:20 +02:00
Rhodri James
bb60b30a68 Test document name of "1+" is rejected in doctype
Following a codepath that requires a character valid in a name but
not at the start (or '-' or ':') followed by a '+'
2017-07-22 22:49:20 +02:00
Rhodri James
b003c9fea5 Test two colons in the document name in a doctype is rejected 2017-07-22 22:49:20 +02:00
Rhodri James
b93735f15b Test invalid character in document local name is faulted 2017-07-22 22:49:20 +02:00
Rhodri James
1346f5cd74 Test UTF-16 non-zero high byte characters in document local name
Tests DOCTYPE handling of non-ASCII characters leading the local
element (i.e. the part after the colon) of a document name
2017-07-22 22:49:20 +02:00
Rhodri James
32e023fca4 Test invalid UTF-16 characters in DOCTYPE 2017-07-22 22:49:20 +02:00
Rhodri James
301cf609ad Test invalid characters in a DOCTYPE 2017-07-22 22:49:20 +02:00
Rhodri James
330c9b298d Refactor: move element event handlers together 2017-07-22 22:49:20 +02:00
Rhodri James
b9727a7c44 Test UTF-16 attribute description keyword with non-zero high bytes.
The #keyword consists of valid name-worthy characters, so is
rejected as a syntax error not an invalid token.
2017-07-22 22:49:20 +02:00
Rhodri James
63b215def5 Test attribute list with bad keyword starting with non-name character 2017-07-22 22:49:19 +02:00
Rhodri James
365a61e52d Test parameter entity with UTF-16 name with top bytes non-zero 2017-07-22 22:49:19 +02:00
Rhodri James
71a293259c Test that UTF-16 element local names with non-zero top byte are accepted 2017-07-22 22:49:19 +02:00
Rhodri James
2cde440699 Test that non-name characters after a colon in an element are rejected 2017-07-22 22:49:19 +02:00
Rhodri James
98c1385bba Test that more than one colon in an element name is rejected 2017-07-22 22:49:19 +02:00
Rhodri James
9f718ef37c Test that text after a / is faulted 2017-07-22 22:49:19 +02:00
Rhodri James
c0593524ab Test second attribute with UTF-16 top byte non-zero is valid
This exercises a different code path to the first attribute
2017-07-22 22:49:19 +02:00
Rhodri James
e4caa983df Test invalid character in attribute value is faulted 2017-07-22 22:49:19 +02:00
Rhodri James
303e6c5499 Test UTF-16 attribute names with non-zero top byte are accepted 2017-07-22 22:49:19 +02:00
Rhodri James
30b15c43b1 Test that non-name characters after a colon are rejected
I.e. test that leafnames have to be valid names
2017-07-22 22:49:19 +02:00