Debian Codegraph @

rhino/testsrc/tests/lc3/ArrayMethods/byte-002.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 = 'byte-002.js';
7
8 /**
9 * java array objects "inherit" JS string methods. verify that byte arrays
10 * can inherit JavaScript Array object methods
11 *
12 *
13 */
14 var SECTION = "java array object inheritance JavaScript Array methods";
15 var VERSION = "1_4";
16 var TITLE = "LiveConnect 3.0 " + SECTION;
17
18 startTest();
19
20 var b = new java.lang.String("abcdefghijklmnopqrstuvwxyz").getBytes();
21
22 new TestCase(
23 "var b = new java.lang.String(\"abcdefghijklmnopqrstuvwxyz\").getBytes(); b.valueOf()",
24 b,
25 b.valueOf() );
26
27 test();