Debian Codegraph @

rhino/testsrc/tests/e4x/XML/13.4.4.30.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.30.js';
8
9 START("13.4.4.30 - propertyIsEnumerable()");
10
11 TEST(1, true, XML.prototype.hasOwnProperty("propertyIsEnumerable"));
12
13 // All properties accessible by Get are enumerable
14 x =
15 <alpha>
16 <bravo>one</bravo>
17 </alpha>;
18
19 TEST(2, true, x.propertyIsEnumerable("0"));
20 TEST(3, true, x.propertyIsEnumerable(0));
21 TEST(5, false, x.propertyIsEnumerable("bravo"));
22 TEST(6, false, x.propertyIsEnumerable());
23 TEST(7, false, x.propertyIsEnumerable(undefined));
24 TEST(8, false, x.propertyIsEnumerable(null));
25
26 END();