Debian Codegraph @

rhino/testsrc/tests/e4x/XML/13.4.4.32-01.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 = '13.4.4.32-01.js';
8
9 START("13.4.4.32-1 - XML replace() by index, text to string");
10
11 printBugNumber(291927);
12
13 var root = <root>text</root>;
14
15 TEST_XML(1, "text", root.child(0));
16
17 root.replace(0, "new text");
18
19 TEST_XML(2, "new text", root.child(0));
20 TEST(3, <root>new text</root>, root);
21
22 END();