Debian Codegraph @

rhino/testsrc/tests/e4x/XML/regress-336921.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 = 'regress-336921.js';
8
9 var summary = '13.4.4.3 - XML.prototype.appendChild creates undesired <br/>';
10 var BUGNUMBER = 336921;
11 var actual = '';
12 var expect = '';
13
14 printBugNumber(BUGNUMBER);
15 START(summary);
16
17 // test here
18
19 var array = ["a","b","c"];
20 var myDiv = <div/>;
21 for each (a in array) {
22 myDiv.appendChild(a);
23 myDiv.appendChild(<br/>);
24 }
25
26 actual = myDiv.toXMLString();
27 expect = '<div>\n a\n <br/>\n b\n <br/>\n c\n <br/>\n</div>';
28
29 TEST(1, expect, actual);
30
31 END();