Debian Codegraph @

rhino/testsrc/tests/e4x/Types/9.2.1.2.js

raw symbols SCIP
1 /* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2 *
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6
7 gTestfile = '9.2.1.2.js';
8
9 START("9.2.1.2 - XMLList [[Put]]");
10
11 var x =
12 <>
13 <alpha>one</alpha>
14 <bravo>two</bravo>
15 </>;
16
17 TEST(1, "<alpha>one</alpha>\n<bravo>two</bravo>",
18 x.toXMLString());
19
20 x[0] = <charlie>three</charlie>;
21 TEST(2, "<charlie>three</charlie>\n<bravo>two</bravo>",
22 x.toXMLString());
23
24 x[0] = <delta>four</delta> + <echo>five</echo>;
25 TEST(3, "<delta>four</delta>\n<echo>five</echo>\n<bravo>two</bravo>",
26 x.toXMLString());
27
28 END();