summaryrefslogtreecommitdiff
path: root/tests/markups
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2004-07-28 15:00:59 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2004-07-28 15:00:59 +0000
commit889096b1ead9cf917d021bd7b82961a9799b82b6 (patch)
treeae9d41f3b2f47cfe0ae76d1f2a86be4b26a41949 /tests/markups
parent45e1212b681e9183f0ff2a8ac482d31d86d6f897 (diff)
Tests for handling of whitespace inside tags.
2004-07-28 Matthias Clasen <mclasen@redhat.com> * tests/markups/valid-{9,10,11}.gmarkup: * tests/markups/fail-{37,38,39}.gmarkup: Tests for handling of whitespace inside tags. * glib/gmarkup.c (enum GMarkupParseState): Add STATE_AFTER_ATTRIBUTE_NAME and STATE_AFTER_CLOSE_TAG_NAME. (g_markup_parse_context_parse): Accept whitespace between attribute names, '=' and attribute values and between close tag name and '>'. (#148646, Hiroyuki Ikezoe)
Diffstat (limited to 'tests/markups')
-rw-r--r--tests/markups/fail-37.gmarkup1
-rw-r--r--tests/markups/fail-38.gmarkup1
-rw-r--r--tests/markups/fail-39.gmarkup1
-rw-r--r--tests/markups/valid-10.gmarkup6
-rw-r--r--tests/markups/valid-11.gmarkup2
-rw-r--r--tests/markups/valid-9.gmarkup2
6 files changed, 13 insertions, 0 deletions
diff --git a/tests/markups/fail-37.gmarkup b/tests/markups/fail-37.gmarkup
new file mode 100644
index 000000000..95b7155f2
--- /dev/null
+++ b/tests/markups/fail-37.gmarkup
@@ -0,0 +1 @@
+< foo>
diff --git a/tests/markups/fail-38.gmarkup b/tests/markups/fail-38.gmarkup
new file mode 100644
index 000000000..b7d37df8d
--- /dev/null
+++ b/tests/markups/fail-38.gmarkup
@@ -0,0 +1 @@
+<foo>data< /foo>
diff --git a/tests/markups/fail-39.gmarkup b/tests/markups/fail-39.gmarkup
new file mode 100644
index 000000000..7cf2e2a27
--- /dev/null
+++ b/tests/markups/fail-39.gmarkup
@@ -0,0 +1 @@
+<foo>data</ foo>
diff --git a/tests/markups/valid-10.gmarkup b/tests/markups/valid-10.gmarkup
new file mode 100644
index 000000000..cbeb68e43
--- /dev/null
+++ b/tests/markups/valid-10.gmarkup
@@ -0,0 +1,6 @@
+<foo
+ bar="baz"
+bar2 = "baz2"
+bar3 =
+"baz3"
+>data</foo>
diff --git a/tests/markups/valid-11.gmarkup b/tests/markups/valid-11.gmarkup
new file mode 100644
index 000000000..fe1cc4e73
--- /dev/null
+++ b/tests/markups/valid-11.gmarkup
@@ -0,0 +1,2 @@
+<foo
+>data</foo>
diff --git a/tests/markups/valid-9.gmarkup b/tests/markups/valid-9.gmarkup
new file mode 100644
index 000000000..90a99a042
--- /dev/null
+++ b/tests/markups/valid-9.gmarkup
@@ -0,0 +1,2 @@
+<foo>data</foo
+>