Debian Codegraph @

rhino/testsrc/tests/e4x/Regress/regress-277779.js

raw symbols SCIP
1 /* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5
6 gTestfile = 'regress-277779.js';
7
8 // testcase from [email protected]
9
10 var summary = 'call setNamespace on element with already existing default namespace';
11 var BUGNUMBER = 277779;
12 var actual = '';
13 var expect = '';
14
15 printBugNumber(BUGNUMBER);
16 START(summary);
17
18 var xhtml2NS = new Namespace('http://www.w3.org/2002/06/xhtml2');
19 var xml = <html xmlns="http://www.w3.org/1999/xhtml" />;
20 xml.setNamespace(xhtml2NS);
21
22
23 expect = 'http://www.w3.org/2002/06/xhtml2';
24 actual = xml.namespace().toString();
25 TEST(1, expect, actual);
26
27 END();