Debian Codegraph @

rhino/testsrc/tests/e4x/Namespace/regress-283972.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-283972.js';
7
8 var summary = 'throw error when two attributes with the same local name and ' +
9 'the same namespace';
10 var BUGNUMBER = 283972;
11 var actual = 'no error';
12 var expect = 'error';
13
14 printBugNumber(BUGNUMBER);
15 START(summary);
16
17 try
18 {
19 var xml = <god xmlns:pf1="http://example.com/2005/02/pf1"
20 xmlns:pf2="http://example.com/2005/02/pf1"
21 pf1:name="Kibo"
22 pf2:name="Xibo" />;
23 printStatus(xml.toXMLString());
24 }
25 catch(e)
26 {
27 actual = 'error';
28 }
29
30 TEST(1, expect, actual);
31
32 END();