| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
gTestfile = 'function-001.js'; |
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
var SECTION = "function-001.js"; |
| 40 |
var VERSION = "JS1_4"; |
| 41 |
var TITLE = "Accessing the arguments property of a function object"; |
| 42 |
var BUGNUMBER="324455"; |
| 43 |
startTest(); |
| 44 |
writeHeaderToLog( SECTION + " "+ TITLE); |
| 45 |
|
| 46 |
new TestCase( |
| 47 |
SECTION, |
| 48 |
"return function.arguments", |
| 49 |
"P", |
| 50 |
TestFunction_2("P", "A","S","S")[0] +""); |
| 51 |
|
| 52 |
|
| 53 |
new TestCase( |
| 54 |
SECTION, |
| 55 |
"return arguments", |
| 56 |
"P", |
| 57 |
TestFunction_1( "P", "A", "S", "S" )[0] +""); |
| 58 |
|
| 59 |
new TestCase( |
| 60 |
SECTION, |
| 61 |
"return arguments when function contains an arguments property", |
| 62 |
"PASS", |
| 63 |
TestFunction_3( "P", "A", "S", "S" ) +""); |
| 64 |
|
| 65 |
new TestCase( |
| 66 |
SECTION, |
| 67 |
"return function.arguments when function contains an arguments property", |
| 68 |
"PASS", |
| 69 |
TestFunction_4( "F", "A", "I", "L" ) +""); |
| 70 |
|
| 71 |
test(); |
| 72 |
|
| 73 |
function TestFunction_1( a, b, c, d, e ) { |
| 74 |
return arguments; |
| 75 |
} |
| 76 |
|
| 77 |
function TestFunction_2( a, b, c, d, e ) { |
| 78 |
return TestFunction_2.arguments; |
| 79 |
} |
| 80 |
|
| 81 |
function TestFunction_3( a, b, c, d, e ) { |
| 82 |
var arguments = "PASS"; |
| 83 |
return arguments; |
| 84 |
} |
| 85 |
|
| 86 |
function TestFunction_4( a, b, c, d, e ) { |
| 87 |
var arguments = "PASS"; |
| 88 |
return TestFunction_4.arguments; |
| 89 |
} |
| 90 |
|