зеркало из https://github.com/mozilla/pjs.git
Add test cases for XML literals: comment, processing instruction. No bug, issue found by Martin Honnen
This commit is contained in:
Родитель
6752ca12cb
Коммит
2b79db60f1
|
@ -222,4 +222,16 @@ TEST(32, true, o.ignoreWhitespace);
|
|||
TEST(33, true, o.prettyPrinting);
|
||||
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();
|
||||
|
|
Загрузка…
Ссылка в новой задаче