Debian Codegraph @

rhino/testsrc/tests/e4x/XML/13.4.4.3-01.js

raw symbols SCIP
1 /* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5
6 gTestfile = '13.4.4.3-01.js';
7
8 var summary = "13.4.4.3 - XML.appendChild should copy child";
9
10 var BUGNUMBER = 312692;
11 var actual = '';
12 var expect = '';
13
14 printBugNumber(BUGNUMBER);
15 START(summary);
16
17 var ul = <ul/>;
18 var li = <li/>;
19
20 li.setChildren("First");
21 ul.appendChild(li);
22
23 li.setChildren("Second");
24 ul.appendChild(li);
25
26 XML.ignoreWhitespace = true;
27 XML.prettyPrinting = true;
28
29 expect = (
30 <ul>
31 <li>Second</li>
32 <li>Second</li>
33 </ul>
34 ).toXMLString().replace(/</g, '&lt;');
35
36 actual = ul.toXMLString().replace(/</g, '&lt;');
37
38 TEST(1, expect, actual);
39
40 END();