Debian Codegraph @

rhino/testsrc/tests/ecma_2/FunctionObjects/call-1.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 = 'call-1.js';
7
8 /**
9 File Name: call-1.js
10 Section: Function.prototype.call
11 Description:
12
13
14 Author: [email protected]
15 Date: 12 november 1997
16 */
17 var SECTION = "call-1";
18 var VERSION = "ECMA_2";
19 var TITLE = "Function.prototype.call";
20
21 startTest();
22 writeHeaderToLog( SECTION + " "+ TITLE);
23
24 new TestCase( SECTION,
25 "ToString.call( this, this )",
26 GLOBAL,
27 ToString.call( this, this ) );
28
29 new TestCase( SECTION,
30 "ToString.call( Boolean, Boolean.prototype )",
31 "false",
32 ToString.call( Boolean, Boolean.prototype ) );
33
34 new TestCase( SECTION,
35 "ToString.call( Boolean, Boolean.prototype.valueOf() )",
36 "false",
37 ToString.call( Boolean, Boolean.prototype.valueOf() ) );
38
39 test();
40
41 function ToString( obj ) {
42 return obj +"";
43 }