mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 15:06:14 +01:00
Add some more GMarkup tests
This commit is contained in:
parent
08e17ae51b
commit
d5a1ca8fd7
1
glib/tests/markups/fail-41.expected
Normal file
1
glib/tests/markups/fail-41.expected
Normal file
@ -0,0 +1 @@
|
|||||||
|
ERROR Error on line 2 char 1: Invalid UTF-8 encoded text in name - not valid 'abcäöü'
|
3
glib/tests/markups/fail-41.gmarkup
Normal file
3
glib/tests/markups/fail-41.gmarkup
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<abc<62><63><EFBFBD>>
|
||||||
|
abc<EFBFBD><EFBFBD><EFBFBD>
|
||||||
|
</abc<62><63><EFBFBD>>
|
1
glib/tests/markups/fail-42.expected
Normal file
1
glib/tests/markups/fail-42.expected
Normal file
@ -0,0 +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 &
|
5
glib/tests/markups/fail-42.gmarkup
Normal file
5
glib/tests/markups/fail-42.gmarkup
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
<foo bar="ab
|
||||||
|
cd
|
||||||
|
<
|
||||||
|
de
|
||||||
|
fg"></foo>
|
1
glib/tests/markups/fail-43.expected
Normal file
1
glib/tests/markups/fail-43.expected
Normal file
@ -0,0 +1 @@
|
|||||||
|
ERROR Error on line 1 char 10: Odd character '≈', expected a '=' after attribute name 'bar' of element 'foo'
|
1
glib/tests/markups/fail-43.gmarkup
Normal file
1
glib/tests/markups/fail-43.gmarkup
Normal file
@ -0,0 +1 @@
|
|||||||
|
<foo bar ≈"baz"></foo>
|
3
glib/tests/markups/fail-44.expected
Normal file
3
glib/tests/markups/fail-44.expected
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
ELEMENT 'foo'
|
||||||
|
END 'foo'
|
||||||
|
ERROR Error on line 1 char 6: Odd character '≻', expected a '>' character to end the empty-element tag 'foo'
|
1
glib/tests/markups/fail-44.gmarkup
Normal file
1
glib/tests/markups/fail-44.gmarkup
Normal file
@ -0,0 +1 @@
|
|||||||
|
<foo/≻
|
3
glib/tests/markups/fail-45.expected
Normal file
3
glib/tests/markups/fail-45.expected
Normal file
@ -0,0 +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 '>'
|
1
glib/tests/markups/fail-45.gmarkup
Normal file
1
glib/tests/markups/fail-45.gmarkup
Normal file
@ -0,0 +1 @@
|
|||||||
|
<foo></foo ≻
|
2
glib/tests/markups/fail-46.expected
Normal file
2
glib/tests/markups/fail-46.expected
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
ELEMENT 'foo'
|
||||||
|
ERROR Error on line 3 char 2: Document ended unexpectedly with elements still open - 'foo' was the last element opened
|
2
glib/tests/markups/fail-46.gmarkup
Normal file
2
glib/tests/markups/fail-46.gmarkup
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
<foo>
|
||||||
|
abc
|
1
glib/tests/markups/fail-47.expected
Normal file
1
glib/tests/markups/fail-47.expected
Normal file
@ -0,0 +1 @@
|
|||||||
|
ERROR Error on line 1: Failed to parse '', which should have been a digit inside a character reference (ê for example) - perhaps the digit is too large
|
1
glib/tests/markups/fail-47.gmarkup
Normal file
1
glib/tests/markups/fail-47.gmarkup
Normal file
@ -0,0 +1 @@
|
|||||||
|
<foo bar="&#𝐀;"></foo>
|
1
glib/tests/markups/fail-48.expected
Normal file
1
glib/tests/markups/fail-48.expected
Normal file
@ -0,0 +1 @@
|
|||||||
|
ERROR Error on line 2 char 2: Odd character '>', expected a '=' after attribute name 'bar' of element 'fail'
|
2
glib/tests/markups/fail-48.gmarkup
Normal file
2
glib/tests/markups/fail-48.gmarkup
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
<fail foo="foo" bar
|
||||||
|
></foo>
|
3
glib/tests/markups/fail-49.expected
Normal file
3
glib/tests/markups/fail-49.expected
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
ELEMENT 'foo'
|
||||||
|
TEXT ''
|
||||||
|
ERROR Error on line 2 char 2: Document ended unexpectedly inside the close tag for element 'foo'
|
1
glib/tests/markups/fail-49.gmarkup
Normal file
1
glib/tests/markups/fail-49.gmarkup
Normal file
@ -0,0 +1 @@
|
|||||||
|
<foo></foo
|
5
glib/tests/markups/valid-12.expected
Normal file
5
glib/tests/markups/valid-12.expected
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
ELEMENT 'abcäöü'
|
||||||
|
TEXT '
|
||||||
|
abcäöü
|
||||||
|
'
|
||||||
|
END 'abcäöü'
|
3
glib/tests/markups/valid-12.gmarkup
Normal file
3
glib/tests/markups/valid-12.gmarkup
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<abcäöü>
|
||||||
|
abcäöü
|
||||||
|
</abcäöü>
|
4
glib/tests/markups/valid-13.expected
Normal file
4
glib/tests/markups/valid-13.expected
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
ELEMENT 'foo'
|
||||||
|
bar="a b c d e𝐀"
|
||||||
|
TEXT ''
|
||||||
|
END 'foo'
|
3
glib/tests/markups/valid-13.gmarkup
Normal file
3
glib/tests/markups/valid-13.gmarkup
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
<foo bar="a b
|
||||||
|
c
d
|
||||||
|
e𝐀"></foo>
|
30
glib/tests/markups/valid-14.expected
Normal file
30
glib/tests/markups/valid-14.expected
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
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'
|
24
glib/tests/markups/valid-14.gmarkup
Normal file
24
glib/tests/markups/valid-14.gmarkup
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
<foo>
|
||||||
|
<bar>
|
||||||
|
/* 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.
|
||||||
|
*/
|
||||||
|
</bar>
|
||||||
|
</foo>
|
Loading…
Reference in New Issue
Block a user