Debian Codegraph @

rhino/testsrc/tests/e4x/XML/13.4.4.40.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.40.js';
8
9 START("13.4.4.40 - valueOf");
10
11 TEST(1, true, XML.prototype.hasOwnProperty("valueOf"));
12
13 x =
14 <alpha>
15 <bravo>one</bravo>
16 </alpha>;
17
18 TEST(2, x, x.valueOf());
19
20 // Make sure they're the same and not copies
21
22 x =
23 <alpha>
24 <bravo>one</bravo>
25 </alpha>;
26
27 y = x.valueOf();
28
29 x.bravo = "two";
30
31 TEST(3, x, y);
32
33 END();