Commit d5a1ca8f authored by Matthias Clasen's avatar Matthias Clasen

Add some more GMarkup tests

parent 08e17ae5
ERROR Error on line 2 char 1: Invalid UTF-8 encoded text in name - not valid 'abc'
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 &
<foo bar="ab
cd
&lt
de
fg"></foo>
ERROR Error on line 1 char 10: Odd character '≈', expected a '=' after attribute name 'bar' of element 'foo'
<foo bar ≈"baz"></foo>
ELEMENT 'foo'
END 'foo'
ERROR Error on line 1 char 6: Odd character '≻', expected a '>' character to end the empty-element tag 'foo'
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 '>'
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 1: Failed to parse '', which should have been a digit inside a character reference (&#234; for example) - perhaps the digit is too large
<foo bar="&#𝐀;"></foo>
ERROR Error on line 2 char 2: Odd character '>', expected a '=' after attribute name 'bar' of element 'fail'
<fail foo="foo" bar
></foo>
ELEMENT 'foo'
TEXT ''
ERROR Error on line 2 char 2: Document ended unexpectedly inside the close tag for element 'foo'
ELEMENT 'abcäöü'
TEXT '
abcäöü
'
END 'abcäöü'
<abcäöü>
abcäöü
</abcäöü>
ELEMENT 'foo'
bar="a b c d e𝐀"
TEXT ''
END 'foo'
<foo bar="a b
c d
e𝐀"></foo>
ELEMENT 'foo'
TEXT '
'
ELEMENT 'bar'
TEXT '
/* gmarkup.c - Simple XML-like parser
*
* Copyright 2000, 2003 Red Hat, Inc.
* Copyright 2007, 2008 Ryan Lortie <desrt@desrt.ca>
*
* GLib is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* GLib is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with GLib; see the file COPYING.LIB. If not,
* write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
'
END 'bar'
TEXT '
'
END 'foo'
<foo>
<bar>
/* gmarkup.c - Simple XML-like parser
*
* Copyright 2000, 2003 Red Hat, Inc.
* Copyright 2007, 2008 Ryan Lortie &lt;desrt@desrt.ca&gt;
*
* GLib is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* GLib is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with GLib; see the file COPYING.LIB. If not,
* write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
</bar>
</foo>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment