Fix tests for Unicode strings

Based on a patch by Simon McVittie <simon.mcvittie@collabora.co.uk>.

Fixes: https://gitlab.gnome.org/GNOME/glib/issues/1212
This commit is contained in:
Piotr Drąg 2016-11-05 13:03:35 +01:00
parent e1eaea3eea
commit 0bb3cacacb
37 changed files with 38 additions and 38 deletions

View File

@ -1,4 +1,4 @@
ELEMENT 'foo'
TEXT '
'
ERROR Error on line 2 char 8: Element '|foo' was closed, but the currently open element is 'foo'
ERROR Error on line 2 char 8: Element “|foo” was closed, but the currently open element is “foo”

View File

@ -4,4 +4,4 @@ ELEMENT 'foo'
ELEMENT 'bar'
TEXT '
'
ERROR Error on line 3 char 7: Element 'foo' was closed, but the currently open element is 'bar'
ERROR Error on line 3 char 7: Element “foo” was closed, but the currently open element is “bar”

View File

@ -1 +1 @@
ERROR Error on line 1 char 6: Element 'foo' was closed, no element is currently open
ERROR Error on line 1 char 6: Element “foo” was closed, no element is currently open

View File

@ -1 +1 @@
ERROR Error on line 1 char 7: Element 'foo|' was closed, no element is currently open
ERROR Error on line 1 char 7: Element “foo|” was closed, no element is currently open

View File

@ -1,4 +1,4 @@
ELEMENT 'foo'
TEXT '
'
ERROR Error on line 2 char 3: Document ended unexpectedly just after an open angle bracket '<'
ERROR Error on line 2 char 3: Document ended unexpectedly just after an open angle bracket “<”

View File

@ -5,4 +5,4 @@ ELEMENT 'foo'
TEXT '
'
END 'bar'
ERROR Error on line 3 char 8: Document ended unexpectedly with elements still open - 'foo' was the last element opened
ERROR Error on line 3 char 8: Document ended unexpectedly with elements still open — “foo” was the last element opened

View File

@ -1,2 +1,2 @@
ELEMENT 'foo'
ERROR Error on line 1 char 6: Document ended unexpectedly with elements still open - 'foo' was the last element opened
ERROR Error on line 1 char 6: Document ended unexpectedly with elements still open — “foo” was the last element opened

View File

@ -1,2 +1,2 @@
ELEMENT 'foo'
ERROR Error on line 1: Empty entity '&;' seen; valid entities are: &amp; &quot; &lt; &gt; &apos;
ERROR Error on line 1: Empty entity “&;” seen; valid entities are: &amp; &quot; &lt; &gt; &apos;

View File

@ -1,2 +1,2 @@
ELEMENT 'foo'
ERROR Error on line 1: Entity name '|' is not known
ERROR Error on line 1: Entity name “|” is not known

View File

@ -1,2 +1,2 @@
ELEMENT 'foo'
ERROR Error on line 1: Entity name 'am|' is not known
ERROR Error on line 1: Entity name “am|” is not known

View File

@ -1,2 +1,2 @@
ELEMENT 'foo'
ERROR Error on line 1: Entity name 'bar' is not known
ERROR Error on line 1: Entity name “bar” is not known

View File

@ -1,5 +1,5 @@
ELEMENT 'foobar'
ERROR Error on line 49 char 2: Invalid UTF-8 encoded text in name - not valid '
ERROR Error on line 49 char 2: Invalid UTF-8 encoded text in name — not valid “
Παν語
This is a list of ways to say hello in various languages. Its purpose is to illustrate a number of scripts.
@ -47,4 +47,4 @@ Difference among chinese characters in GB, JIS, KSC, BIG5:
BIG5 -- 元氣 開發
'

View File

@ -1,2 +1,2 @@
ELEMENT 'foo'
ERROR Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity - escape ampersand as &amp;
ERROR Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity escape ampersand as &amp;

View File

@ -1,2 +1,2 @@
ELEMENT 'foo'
ERROR Error on line 1: Failed to parse '34592348345343453453455645765736575865767', which should have been a digit inside a character reference (&#234; for example) - perhaps the digit is too large
ERROR Error on line 1: Failed to parse “34592348345343453453455645765736575865767”, which should have been a digit inside a character reference (&#234; for example) — perhaps the digit is too large

View File

@ -1,2 +1,2 @@
ELEMENT 'foo'
ERROR Error on line 1: Character reference '0' does not encode a permitted character
ERROR Error on line 1: Character reference “0” does not encode a permitted character

View File

@ -1,2 +1,2 @@
ELEMENT 'foo'
ERROR Error on line 1: Failed to parse '', which should have been a digit inside a character reference (&#234; for example) - perhaps the digit is too large
ERROR Error on line 1: Failed to parse “”, which should have been a digit inside a character reference (&#234; for example) — perhaps the digit is too large

View File

@ -1,2 +1,2 @@
ELEMENT 'foo'
ERROR Error on line 1: Character reference did not end with a semicolon; most likely you used an ampersand character without intending to start an entity - escape ampersand as &amp;
ERROR Error on line 1: Character reference did not end with a semicolon; most likely you used an ampersand character without intending to start an entity escape ampersand as &amp;

View File

@ -1,2 +1,2 @@
ELEMENT 'foo'
ERROR Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity - escape ampersand as &amp;
ERROR Error on line 1: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity escape ampersand as &amp;

View File

@ -1,4 +1,4 @@
ELEMENT 'foo'
TEXT '<27>'
END 'foo'
ERROR Error on line 2 char 1: '^$non-carriage-null-fail|' is not a valid name
ERROR Error on line 2 char 1: “^$non-carriage-null-fail|” is not a valid name

View File

@ -1 +1 @@
ERROR Error on line 1 char 2: ' ' is not a valid character following a '<' character; it may not begin an element name
ERROR Error on line 1 char 2: “ ” is not a valid character following a “<” character; it may not begin an element name

View File

@ -1,3 +1,3 @@
ELEMENT 'foo'
TEXT 'data'
ERROR Error on line 1 char 11: ' ' is not a valid character following a '<' character; it may not begin an element name
ERROR Error on line 1 char 11: “ ” is not a valid character following a “<” character; it may not begin an element name

View File

@ -1,3 +1,3 @@
ELEMENT 'foo'
TEXT 'data'
ERROR Error on line 1 char 12: ' ' is not a valid character following the characters '</'; ' ' may not begin an element name
ERROR Error on line 1 char 12: “ ” is not a valid character following the characters “</”; “ ” may not begin an element name

View File

@ -1,2 +1,2 @@
ELEMENT 'bla'
ERROR Error on line 1: Entity name 'unknownentityname' is not known
ERROR Error on line 1: Entity name “unknownentityname” is not known

View File

@ -1 +1 @@
ERROR Error on line 2 char 1: Invalid UTF-8 encoded text in name - not valid 'abcäöü'
ERROR Error on line 2 char 1: Invalid UTF-8 encoded text in name — not valid “abcäöüâ€<C3A2>

View File

@ -1 +1 @@
ERROR Error on line 3: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity - escape ampersand as &amp;
ERROR Error on line 3: Entity did not end with a semicolon; most likely you used an ampersand character without intending to start an entity escape ampersand as &amp;

View File

@ -1 +1 @@
ERROR Error on line 1 char 10: Odd character '≈', expected a '=' after attribute name 'bar' of element 'foo'
ERROR Error on line 1 char 10: Odd character “≈”, expected a “=” after attribute name “bar” of element “foo”

View File

@ -1,2 +1,2 @@
ELEMENT 'foo'
ERROR Error on line 1 char 6: Odd character '≻', expected a '>' character to end the empty-element tag 'foo'
ERROR Error on line 1 char 6: Odd character “≻”, expected a “>” character to end the empty-element tag “foo”

View File

@ -1,3 +1,3 @@
ELEMENT 'foo'
TEXT ''
ERROR Error on line 1 char 12: '≻' is not a valid character following the close element name 'foo'; the allowed character is '>'
ERROR Error on line 1 char 12: “≻” is not a valid character following the close element name “foo”; the allowed character is “>”

View File

@ -1,2 +1,2 @@
ELEMENT 'foo'
ERROR Error on line 3 char 2: Document ended unexpectedly with elements still open - 'foo' was the last element opened
ERROR Error on line 3 char 2: Document ended unexpectedly with elements still open — “foo” was the last element opened

View File

@ -1 +1 @@
ERROR Error on line 1: Failed to parse '', which should have been a digit inside a character reference (&#234; for example) - perhaps the digit is too large
ERROR Error on line 1: Failed to parse “”, which should have been a digit inside a character reference (&#234; for example) — perhaps the digit is too large

View File

@ -1 +1 @@
ERROR Error on line 2 char 2: Odd character '>', expected a '=' after attribute name 'bar' of element 'fail'
ERROR Error on line 2 char 2: Odd character “>”, expected a “=” after attribute name “bar” of element “fail”

View File

@ -1,3 +1,3 @@
ELEMENT 'foo'
TEXT ''
ERROR Error on line 2 char 2: Document ended unexpectedly inside the close tag for element 'foo'
ERROR Error on line 2 char 2: Document ended unexpectedly inside the close tag for element “foo”

View File

@ -1 +1 @@
ERROR Error on line 2 char 1: '|foo' is not a valid name
ERROR Error on line 2 char 1: “|foo” is not a valid name

View File

@ -1 +1 @@
ERROR Error on line 2 char 1: 'foo|' is not a valid name: '|'
ERROR Error on line 2 char 1: “foo|” is not a valid name: “|”

View File

@ -1 +1 @@
ERROR Error on line 1 char 15: 'bar}"baz"' is not a valid name: '}'
ERROR Error on line 1 char 15: “bar}"baz"” is not a valid name: “}”

View File

@ -1,2 +1,2 @@
ELEMENT 'foo'
ERROR Error on line 1 char 6: Odd character '}', expected a '>' character to end the empty-element tag 'foo'
ERROR Error on line 1 char 6: Odd character “}”, expected a “>” character to end the empty-element tag “foo”

View File

@ -1 +1 @@
ERROR Error on line 1 char 10: Odd character '{', expected an open quote mark after the equals sign when giving value for attribute 'bar' of element 'foo'
ERROR Error on line 1 char 10: Odd character “{”, expected an open quote mark after the equals sign when giving value for attribute “bar” of element “foo”