Add test cases for XML literals: comment, processing instruction. No bug, issue found by Martin Honnen

This commit is contained in:
bob%bclary.com 2005-03-30 14:56:03 +00:00
Родитель 62ec162ed5
Коммит be5ef60657
1 изменённых файлов: 12 добавлений и 0 удалений

Просмотреть файл

@ -222,4 +222,16 @@ TEST(32, true, o.ignoreWhitespace);
TEST(33, true, o.prettyPrinting); TEST(33, true, o.prettyPrinting);
TEST(34, 2, o.prettyIndent); TEST(34, 2, o.prettyIndent);
correct = new XML('');
// ignoreComments
XML.ignoreComments = true;
x = <!-- comment -->;
TEST(35, correct, x);
// ignoreProcessingInstructions
XML.ignoreProcessingInstructions = true;
x = <?pi?>;
TEST(36, correct, x);
END(); END();