|
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 File Name: tostring_2.js |
|
10 Reference: http://scopus.mcom.com/bugsplat/show_bug.cgi?id=114564 |
|
11 Description: toString in version 120 |
|
12 |
|
13 |
|
14 Author: christine@netscape.com |
|
15 Date: 15 June 1998 |
|
16 */ |
|
17 |
|
18 var SECTION = "Array/tostring_2.js"; |
|
19 var VERSION = "JS_12"; |
|
20 startTest(); |
|
21 var TITLE = "Array.toString"; |
|
22 |
|
23 writeHeaderToLog( SECTION + " "+ TITLE); |
|
24 |
|
25 var a = []; |
|
26 |
|
27 |
|
28 if ( version() == 120 ) { |
|
29 VERSION = "120"; |
|
30 } else { |
|
31 VERSION = ""; |
|
32 } |
|
33 |
|
34 new TestCase ( SECTION, |
|
35 "a.toString()", |
|
36 ( VERSION == "120" ? "[]" : "" ), |
|
37 a.toString() ); |
|
38 |
|
39 new TestCase ( SECTION, |
|
40 "String( a )", |
|
41 ( VERSION == "120" ? "[]" : "" ), |
|
42 String( a ) ); |
|
43 |
|
44 new TestCase ( SECTION, |
|
45 "a +''", |
|
46 ( VERSION == "120" ? "[]" : "" ), |
|
47 a+"" ); |
|
48 |
|
49 test(); |