Debian Codegraph @

rhino/testsrc/tests/e4x/Expressions/11.1.4-07.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 = '11.1.4-07.js';
7
8 var summary = "11.1.4 - XML Initializer - <p:{b}b>x</p:bb>";
9 var BUGNUMBER = 321549;
10 var actual = 'No error';
11 var expect = 'No error';
12
13 printBugNumber(BUGNUMBER);
14 START(summary);
15
16 var b = 'b';
17
18 try
19 {
20 actual = (<a xmlns:p='http://a.uri/'><p:b{b}>x</p:bb></a>).
21 toString();
22 }
23 catch(e)
24 {
25 actual = e + '';
26 }
27
28 expect = (<a xmlns:p='http://a.uri/'><p:bb>x</p:bb></a>).toString();
29
30 TEST(1, expect, actual);
31
32 try
33 {
34 actual = (<a xmlns:p='http://a.uri/'><p:{b}b>x</p:bb></a>).
35 toString();
36 }
37 catch(e)
38 {
39 actual = e + '';
40 }
41
42 expect = (<a xmlns:p='http://a.uri/'><p:bb>x</p:bb></a>).toString();
43
44 TEST(2, expect, actual);
45
46 END();