Additional test from Martin Honnen, Bug 290715

This commit is contained in:
bob%bclary.com 2005-04-18 21:04:23 +00:00
Родитель 3ac93e6c77
Коммит 379c0b0fa4
1 изменённых файлов: 13 добавлений и 1 удалений

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

@ -25,6 +25,7 @@
* Igor Bukanov
* Ethan Hugg
* Milen Nankov
* Martin Honnen
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
@ -65,4 +66,15 @@ x = <alpha attr1="value1" attr2="value2"><bravo>one<charlie>two</charlie></bravo
x.@attr1 = "newValue"
TEST_XML(3, "newValue", x.@attr1)
END();
// From Martin
XML.prettyPrinting = false;
var god = <god><name>Kibo</name></god>;
god.name = <><prename>James</prename><nickname>Kibo</nickname></>;
var expect = '<god><prename>James</prename><nickname>Kibo</nickname></god>';
actual = god;
TEST_XML(4, expect, actual);
END();