Debian Codegraph @

rhino/testsrc/tests/e4x/Regress/regress-277683.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-277683.js';
7
8 // testcase from [email protected]
9
10 var summary = 'processing instruction with target name XML';
11 var BUGNUMBER = 277683;
12 var actual = '';
13 var expect = '';
14
15 printBugNumber(BUGNUMBER);
16 START(summary);
17
18 expect = 'error';
19 try
20 {
21 XML.ignoreProcessingInstructions = false;
22 var xml = <root><child>Kibo</child><?xml version="1.0"?></root>;
23 actual = 'no error';
24 }
25 catch(e)
26 {
27 actual = 'error';
28 }
29
30 TEST(1, expect, actual);
31
32 END();