Debian Codegraph @

rhino/testsrc/tests/lc2/Arrays/array-006-n.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 = 'array-006-n.js';
7
8 /**
9 File Name: array-005.js
10 Description:
11
12 Put and Get JavaArray Elements
13
14 @author [email protected]
15 @version 1.00
16 */
17 var SECTION = "LiveConnect";
18 var VERSION = "1_3";
19 var TITLE = "Java Array to JavaScript JavaArray object";
20
21 startTest();
22 writeHeaderToLog( SECTION + " "+ TITLE);
23
24 // In all test cases, the expected type is "object, and the expected
25 // class is "JavaArray"
26
27 var E_TYPE = "object";
28 var E_CLASS = "[object JavaArray]";
29
30 var byte_array = ( new java.lang.String("hi") ).getBytes();
31
32 DESCRIPTION = "byte_array[\"foo\"]";
33 EXPECTED = "error";
34
35 new TestCase(
36 SECTION,
37 "byte_array[\"foo\"]",
38 void 0,
39 byte_array["foo"] );
40
41 test();
42