| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
gTestfile = '15.6.4.2-2.js'; |
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
var SECTION = "15.6.4.2-2"; |
| 23 |
var VERSION = "ECMA_1"; |
| 24 |
startTest(); |
| 25 |
var TITLE = "Boolean.prototype.toString()" |
| 26 |
writeHeaderToLog( SECTION + TITLE ); |
| 27 |
|
| 28 |
new TestCase( SECTION, |
| 29 |
"tostr=Boolean.prototype.toString; x=new Boolean(); x.toString=tostr;x.toString()", |
| 30 |
"false", |
| 31 |
eval("tostr=Boolean.prototype.toString; x=new Boolean(); x.toString=tostr;x.toString()") ); |
| 32 |
new TestCase( SECTION, |
| 33 |
"tostr=Boolean.prototype.toString; x=new Boolean(true); x.toString=tostr; x.toString()", |
| 34 |
"true", |
| 35 |
eval("tostr=Boolean.prototype.toString; x=new Boolean(true); x.toString=tostr; x.toString()") ); |
| 36 |
new TestCase( SECTION, |
| 37 |
"tostr=Boolean.prototype.toString; x=new Boolean(false); x.toString=tostr;x.toString()", |
| 38 |
"false", |
| 39 |
eval("tostr=Boolean.prototype.toString; x=new Boolean(); x.toString=tostr;x.toString()") ); |
| 40 |
test(); |