From 2b79db60f10bf23b56edc86b86f66f6674344a6c Mon Sep 17 00:00:00 2001 From: "bob%bclary.com" Date: Wed, 30 Mar 2005 14:56:03 +0000 Subject: [PATCH] Add test cases for XML literals: comment, processing instruction. No bug, issue found by Martin Honnen --- js/tests/e4x/XML/13.4.3.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/js/tests/e4x/XML/13.4.3.js b/js/tests/e4x/XML/13.4.3.js index 27d735af3b9..e67e5cad0e1 100644 --- a/js/tests/e4x/XML/13.4.3.js +++ b/js/tests/e4x/XML/13.4.3.js @@ -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 = ; +TEST(35, correct, x); + +// ignoreProcessingInstructions +XML.ignoreProcessingInstructions = true; +x = ; +TEST(36, correct, x); + END();