Debian Codegraph @

rhino/testsrc/tests/e4x/Regress/regress-323338-1.js

raw symbols SCIP
1 /* -*- Mode: java; tab-width:8; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6
7 gTestfile = 'regress-323338-1.js';
8
9 var summary = "Do not crash when qn->uri is null";
10 var BUGNUMBER = 323338;
11 var actual = 'No Crash';
12 var expect = 'No Crash';
13
14 printBugNumber(BUGNUMBER);
15 START(summary);
16
17 testFunc();
18 testFunc();
19
20 function testFunc()
21 {
22 var htmlXML =
23 <html>
24 <body>
25 <div>
26 <div id="summary" />
27 <div id="desc" />
28 </div>
29 </body>
30 </html>;
31 var childs = htmlXML.children();
32
33 var el = htmlXML.body.div..div.(function::attribute('id') == 'summary');
34 el.div += <div>
35 <strong>Prototype:</strong>
36 Test
37 <br />
38 </div>;
39 }
40
41 TEST(1, expect, actual);
42
43 END();