* support-test-*.cs: Rename from test-*-p2.cs.
[mono.git] / mcs / class / Microsoft.JScript / Test / Mozilla / ecma_2 / FunctionObjects / call-1.js
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /**
3    File Name:          call-1.js
4    Section:            Function.prototype.call
5    Description:
6
7
8    Author:             christine@netscape.com
9    Date:               12 november 1997
10 */
11 var SECTION = "call-1";
12 var VERSION = "ECMA_2";
13 var TITLE   = "Function.prototype.call";
14
15 startTest();
16 writeHeaderToLog( SECTION + " "+ TITLE);
17
18 new TestCase( SECTION,
19               "ToString.call( this, this )",
20               GLOBAL,
21               ToString.call( this, this ) );
22
23 new TestCase( SECTION,
24               "ToString.call( Boolean, Boolean.prototype )",
25               "false",
26               ToString.call( Boolean, Boolean.prototype ) );
27
28 new TestCase( SECTION,
29               "ToString.call( Boolean, Boolean.prototype.valueOf() )",
30               "false",
31               ToString.call( Boolean, Boolean.prototype.valueOf() ) );
32
33 test();
34
35 function ToString( obj ) {
36   return obj +"";
37 }