Debian Codegraph @

rhino/testsrc/tests/e4x/Expressions/11.2.3.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.2.3.js';
8
9 START("11.2.3 - XML Descendant Accessor");
10
11 e =
12 <employees>
13 <employee id="1"><name>Joe</name><age>20</age></employee>
14 <employee id="2"><name>Sue</name><age>30</age></employee>
15 </employees>
16
17 names = e..name;
18
19 correct =
20 <name>Joe</name> +
21 <name>Sue</name>;
22
23 TEST(1, correct, names);
24
25 END();