js/src/tests/js1_2/function/String.js

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:0756bfe8bb93
1 // |reftest| skip -- obsolete test
2 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6
7
8 /**
9 Filename: String.js
10 Description: 'This tests the function String(Object)'
11
12 Author: Nick Lerissa
13 Date: Fri Feb 13 09:58:28 PST 1998
14 */
15
16 var SECTION = 'As described in Netscape doc "Whats new in JavaScript 1.2"';
17 var VERSION = 'no version';
18 startTest();
19 var TITLE = 'functions: String';
20
21 writeHeaderToLog('Executing script: String.js');
22 writeHeaderToLog( SECTION + " "+ TITLE);
23
24 new TestCase( SECTION, "String(true) ",
25 'true', (String(true)));
26 new TestCase( SECTION, "String(false) ",
27 'false', (String(false)));
28 new TestCase( SECTION, "String(-124) ",
29 '-124', (String(-124)));
30 new TestCase( SECTION, "String(1.23) ",
31 '1.23', (String(1.23)));
32 new TestCase( SECTION, "String({p:1}) ",
33 '{p:1}', (String({p:1})));
34 new TestCase( SECTION, "String(null) ",
35 'null', (String(null)));
36 new TestCase( SECTION, "String([1,2,3]) ",
37 '[1, 2, 3]', (String([1,2,3])));
38
39 test();
40

mercurial