diff options
Diffstat (limited to 'test/lisp')
| -rw-r--r-- | test/lisp/xml-tests.el | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/lisp/xml-tests.el b/test/lisp/xml-tests.el index 57e685cd347..72c78d00e3e 100644 --- a/test/lisp/xml-tests.el +++ b/test/lisp/xml-tests.el | |||
| @@ -164,6 +164,16 @@ Parser is called with and without 'symbol-qnames argument.") | |||
| 164 | (should (equal (cdr xml-parse-test--namespace-attribute-qnames) | 164 | (should (equal (cdr xml-parse-test--namespace-attribute-qnames) |
| 165 | (xml-parse-region nil nil nil nil 'symbol-qnames))))) | 165 | (xml-parse-region nil nil nil nil 'symbol-qnames))))) |
| 166 | 166 | ||
| 167 | (ert-deftest xml-print-invalid-cdata () | ||
| 168 | "Check that Bug#41094 is fixed." | ||
| 169 | (with-temp-buffer | ||
| 170 | (should (equal (should-error (xml-print '((foo () "\0"))) | ||
| 171 | :type 'xml-invalid-character) | ||
| 172 | '(xml-invalid-character 0 1))) | ||
| 173 | (should (equal (should-error (xml-print '((foo () "\u00FF \xFF"))) | ||
| 174 | :type 'xml-invalid-character) | ||
| 175 | '(xml-invalid-character #x3FFFFF 3))))) | ||
| 176 | |||
| 167 | ;; Local Variables: | 177 | ;; Local Variables: |
| 168 | ;; no-byte-compile: t | 178 | ;; no-byte-compile: t |
| 169 | ;; End: | 179 | ;; End: |