blob: ca5c7293c4cb64285643c6d1af4b6196111fccb6 [file] [log] [blame]
ap@apple.comfd21c992010-03-03 19:15:20 +00001/* ***** BEGIN LICENSE BLOCK *****
2 *
3 * Copyright (C) 1998 Netscape Communications Corporation.
4 * Copyright (C) 2010 Apple Inc.
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Library General Public License for more details.
15 *
16 * You should have received a copy of the GNU Library General Public License
17 * along with this library; see the file COPYING.LIB. If not, write to
18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301, USA.
20 *
21 * ***** END LICENSE BLOCK ***** */
22
23gTestfile = 'null-001.js';
24
25/**
26 * Preferred Argument Conversion.
27 *
28 * There is no preference among Java types for converting from the jJavaScript
29 * undefined value.
30 *
31 */
32var SECTION = "Preferred argument conversion: null";
33var VERSION = "1_4";
34var TITLE = "LiveConnect 3.0 JavaScript to Java Data Type Conversion " +
35 SECTION;
36startTest();
37
38var TEST_CLASS = applet.createQAObject("com.netscape.javascript.qa.lc3.jsnull.Null_001");
39
40shouldBeWithErrorCheck(
41 "TEST_CLASS[\"ambiguous(java.lang.Object)\"](null) +''",
42 "'OBJECT'");
43
44shouldBeWithErrorCheck(
45 "TEST_CLASS[\"ambiguous(java.lang.String)\"](null) +''",
46 "'STRING'");