Debian Codegraph @

rhino/testsrc/tests/lc2/Objects/object-006.js

raw symbols SCIP
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
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 = 'object-006.js';
7
8 /**
9 File Name: object-006.js
10 Description:
11
12 Attempt to construct a java.lang.Character. currently this fails because of
13 http://scopus/bugsplat/show_bug.cgi?id=106464
14
15 @author [email protected]
16 @version 1.00
17 */
18
19 var SECTION = "LiveConnect Objects";
20 var VERSION = "1_3";
21 var TITLE = "Construct a java.lang.Character";
22
23 startTest();
24 writeHeaderToLog( SECTION + " "+ TITLE);
25
26 var testcase = new TestCase (
27 SECTION,
28 "var string = new java.lang.String(\"hi\"); "+
29 "var c = new java.lang.Character(string.charAt(0)); String(c.toString())",
30 "h",
31 "" );
32
33 var string = new java.lang.String("hi");
34 var c = new java.lang.Character( string.charAt(0) );
35
36 testcase.actual = String(c.toString());
37
38 test();
39