Debian Codegraph @

rhino/testsrc/tests/e4x/Expressions/11.1.5.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 = '11.1.5.js';
8
9 START("11.1.5 - XMLList Initializer");
10
11 docfrag = <><name>Phil</name><age>35</age><hobby>skiing</hobby></>;
12 TEST(1, "xml", typeof(docfrag));
13
14 correct = <name>Phil</name>;
15 TEST(2, correct, docfrag[0]);
16
17 emplist = <>
18 <employee id="0"><name>Jim</name><age>25</age></employee>
19 <employee id="1"><name>Joe</name><age>20</age></employee>
20 <employee id="2"><name>Sue</name><age>30</age></employee>
21 </>;
22
23 TEST(3, "xml", typeof(emplist));
24 TEST_XML(4, 2, emplist[2].@id);
25
26 END();