Debian Codegraph @

rhino/testsrc/tests/lc3/ConvertUndefined/undefined-003.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 = 'undefined-003.js';
7
8 /**
9 * Preferred Argument Conversion.
10 *
11 * There is no preference among Java types for converting from the jJavaScript
12 * undefined value.
13 *
14 */
15 var SECTION = "Preferred argument conversion: undefined";
16 var VERSION = "1_4";
17 var TITLE = "LiveConnect 3.0 JavaScript to Java Data Type Conversion " +
18 SECTION;
19 startTest();
20
21 var TEST_CLASS = new
22 Packages.com.netscape.javascript.qa.lc3.undefined.Undefined_001;
23
24 new TestCase(
25 "TEST_CLASS[\"ambiguous(java.lang.Object)\"](void 0) +''",
26 "OBJECT",
27 TEST_CLASS["ambiguous(java.lang.Object)"](void 0) +'' );
28
29 new TestCase(
30 "TEST_CLASS[\"ambiguous(java.lang.String)\"](void 0) +''",
31 "STRING",
32 TEST_CLASS["ambiguous(java.lang.String)"](void 0) +'' );
33
34 test();