Debian Codegraph @

rhino/testsrc/tests/e4x/Regress/regress-277650.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-277650.js';
7
8 // testcase from [email protected]
9
10 var summary = 'xml:lang attribute in XML literal';
11 var BUGNUMBER = 277650;
12 var actual = '';
13 var expect = '';
14
15 printBugNumber(BUGNUMBER);
16 START(summary);
17
18 expect = 'no error';
19 try
20 {
21 var xml = <root><text xml:lang="en">ECMAScript for XML</text></root>;
22 actual = 'no error';
23 }
24 catch(e)
25 {
26 actual = 'error';
27 }
28
29 TEST(1, expect, actual);
30
31 END();