Debian Codegraph @

rhino/testsrc/tests/e4x/XML/13.4.4.9.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.9.js';
8
9 START("13.4.4.9 - XML comments()");
10
11 TEST(1, true, XML.prototype.hasOwnProperty("comments"));
12
13 XML.ignoreComments = false;
14
15 x =
16 <alpha>
17 <!-- comment one -->
18 <bravo>
19 <!-- comment two -->
20 some text
21 </bravo>
22 </alpha>;
23
24 TEST_XML(2, "<!-- comment one -->", x.comments());
25 TEST_XML(3, "<!-- comment two -->", x..*.comments());
26
27 END();