var SECTION = "15.5.4";
var VERSION = "ECMA_1";
startTest();
var TITLE = "Properties of the String Prototype objecta";
writeHeaderToLog( SECTION + " "+ TITLE);
var testcases = getTestCases();
test();
function getTestCases() {
var array = new Array();
var item = 0;
array[item++] = new TestCase( SECTION,
"String.prototype.getClass = Object.prototype.toString; String.prototype.getClass()",
"[object String]",
eval("String.prototype.getClass = Object.prototype.toString; String.prototype.getClass()") );
array[item++] = new TestCase( SECTION, "typeof String.prototype", "object", typeof String.prototype );
array[item++] = new TestCase( SECTION, "String.prototype.valueOf()", "", String.prototype.valueOf() );
array[item++] = new TestCase( SECTION, "String.prototype +''", "", String.prototype + '' );
array[item++] = new TestCase( SECTION, "String.prototype.length", 0, String.prototype.length );
return ( array );
}
function test( array ) {
for ( tc=0; tc < testcases.length; tc++ ) {
testcases[tc].passed = writeTestCaseResult(
testcases[tc].expect,
testcases[tc].actual,
testcases[tc].description +" = "+ testcases[tc].actual );
testcases[tc].reason += ( testcases[tc].passed ) ? "" : "wrong value ";
}
stopTest();
return ( testcases );
}