Debian Codegraph @

rhino/testsrc/tests/e4x/Namespace/13.2.1.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.2.1.js';
8
9 START("13.2.1 - Namespace Constructor as Function");
10
11 n = Namespace();
12 m = new Namespace();
13 TEST(1, typeof(m), typeof(n));
14 TEST(2, m.prefix, n.prefix);
15 TEST(3, m.uri, n.uri);
16
17 n = Namespace("http://foobar/");
18 m = new Namespace("http://foobar/");
19 TEST(4, typeof(m), typeof(n));
20 TEST(5, m.prefix, n.prefix);
21 TEST(6, m.uri, n.uri);
22
23 n = Namespace("foobar", "http://foobar/");
24 m = new Namespace("foobar", "http://foobar/");
25 TEST(7, typeof(m), typeof(n));
26 TEST(8, m.prefix, n.prefix);
27 TEST(9, m.uri, n.uri);
28
29 n = Namespace(m);
30 TEST(10, m, n);
31
32 END();