Skip to content

Commit c305da7

Browse files
authored
Add a bunch more tests for annotation-xml (#80)
r=zcorpan
1 parent 2998f9a commit c305da7

File tree

1 file changed

+67
-0
lines changed

1 file changed

+67
-0
lines changed

tree-construction/tests20.dat

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -513,3 +513,70 @@
513513
| <math annotation-xml>
514514
| encoding=" text/html "
515515
| <div>
516+
517+
#data
518+
<math><annotation-xml> </annotation-xml>
519+
#errors
520+
(1,6): expected-doctype-but-got-start-tag
521+
(1,40): expected-closing-tag-but-got-eof
522+
#document
523+
| <html>
524+
| <head>
525+
| <body>
526+
| <math math>
527+
| <math annotation-xml>
528+
| " "
529+
530+
#data
531+
<math><annotation-xml>c</annotation-xml>
532+
#errors
533+
(1,6): expected-doctype-but-got-start-tag
534+
(1,40): expected-closing-tag-but-got-eof
535+
#document
536+
| <html>
537+
| <head>
538+
| <body>
539+
| <math math>
540+
| <math annotation-xml>
541+
| "c"
542+
543+
#data
544+
<math><annotation-xml><!--foo-->
545+
#errors
546+
(1,6): expected-doctype-but-got-start-tag
547+
(1,32): expected-closing-tag-but-got-eof
548+
#document
549+
| <html>
550+
| <head>
551+
| <body>
552+
| <math math>
553+
| <math annotation-xml>
554+
| <!-- foo -->
555+
556+
#data
557+
<math><annotation-xml></svg>x
558+
#errors
559+
(1,6): expected-doctype-but-got-start-tag
560+
(1,28): unexpected-end-tag
561+
(1,29): expected-closing-tag-but-got-eof
562+
#document
563+
| <html>
564+
| <head>
565+
| <body>
566+
| <math math>
567+
| <math annotation-xml>
568+
| "x"
569+
570+
#data
571+
<math><annotation-xml><svg>x
572+
#errors
573+
(1,6): expected-doctype-but-got-start-tag
574+
(1,28): expected-closing-tag-but-got-eof
575+
#document
576+
| <html>
577+
| <head>
578+
| <body>
579+
| <math math>
580+
| <math annotation-xml>
581+
| <svg svg>
582+
| "x"

0 commit comments

Comments
 (0)