Debian Codegraph @

rhino/testsrc/tests/e4x/Regress/regress-278112.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 = 'regress-278112.js';
8
9 START('setNamespace() should not affect namespaceDeclarations()');
10 printBugNumber('278112');
11
12 var xhtml1NS = new Namespace('http://www.w3.org/1999/xhtml');
13 var xhtml = <html />;
14 xhtml.setNamespace(xhtml1NS);
15
16 TEST(1, 0, xhtml.namespaceDeclarations().length);
17
18 TEST(2, xhtml1NS, xhtml.namespace());
19
20 END();