diff options
| author | Chong Yidong | 2012-07-01 19:05:17 +0800 |
|---|---|---|
| committer | Chong Yidong | 2012-07-01 19:05:17 +0800 |
| commit | 6fe566a75256cd943ad89243021e4e9c041807e2 (patch) | |
| tree | 62fc8a3b28e134328c0034e797f335ae4e036d27 /test | |
| parent | 7c603e3ed3f137d906506d2f8abeb39d39adb285 (diff) | |
| download | emacs-6fe566a75256cd943ad89243021e4e9c041807e2.tar.gz emacs-6fe566a75256cd943ad89243021e4e9c041807e2.zip | |
* xml.el (xml-parse-dtd): Use proper regexps for ELEMENT declarations.
* test/automated/xml-parse-tests.el: Update testcase.
Fixes: debbugs:7172
Diffstat (limited to 'test')
| -rw-r--r-- | test/automated/xml-parse-tests.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/automated/xml-parse-tests.el b/test/automated/xml-parse-tests.el index 8e8ef291bdc..8322a8c6ff9 100644 --- a/test/automated/xml-parse-tests.el +++ b/test/automated/xml-parse-tests.el | |||
| @@ -38,7 +38,10 @@ | |||
| 38 | ((foo ((a . "b")) (bar nil "AbC;")))) | 38 | ((foo ((a . "b")) (bar nil "AbC;")))) |
| 39 | ;; Tricky parameter entity substitution (like XML spec Appendix D) | 39 | ;; Tricky parameter entity substitution (like XML spec Appendix D) |
| 40 | ("<?xml version='1.0'?><!DOCTYPE foo [ <!ENTITY % xx '%zz;'><!ENTITY % zz '<!ENTITY ent \"b\" >' > %xx; ]><foo>A&ent;C</foo>" . | 40 | ("<?xml version='1.0'?><!DOCTYPE foo [ <!ENTITY % xx '%zz;'><!ENTITY % zz '<!ENTITY ent \"b\" >' > %xx; ]><foo>A&ent;C</foo>" . |
| 41 | ((foo nil "AbC")))) | 41 | ((foo nil "AbC"))) |
| 42 | ;; Bug#7172 | ||
| 43 | ("<?xml version=\"1.0\"?><!DOCTYPE foo [ <!ELEMENT EXAM_PLE EMPTY> ]><foo></foo>" . | ||
| 44 | ((foo nil)))) | ||
| 42 | "Alist of XML strings and their expected parse trees.") | 45 | "Alist of XML strings and their expected parse trees.") |
| 43 | 46 | ||
| 44 | (ert-deftest xml-parse-tests () | 47 | (ert-deftest xml-parse-tests () |