rem: var x = 0; var y = 0; var errorMessage; var reason = ""; var passed = true;  for (x = -(2 + a.length); x <= (2 + a.length); x++) for (y = (2 + a.length); y >= -(2 + a.length); y--) { var b  = a.slice(x,y); var c = myStringSlice(a,x,y);  if (String(b) != String(c)) { errorMessage = "ERROR: 'TEST FAILED' ERROR: 'TEST FAILED' ERROR: 'TEST FAILED'\n" + "            test: " + "a.slice(" + x + "," + y + ")\n" + "               a: " + String(a) + "\n" + "   actual result: " + String(b) + "\n" + " expected result: " + String(c) + "\n"; writeHeaderToLog(errorMessage); reason = reason + errorMessage; passed = false; } } var testCase = new TestCase(SECTION, testname, true, passed); if (passed == false) testCase.reason = reason; return testCase; 
add: var x = 0; var y = 0; var errorMessage; var reason = ""; var passed = true;  for (x = -(2 + a.length); x <= (2 + a.length); x++) for (y = (2 + a.length); y >= -(2 + a.length); y--) { var b  = a.slice(x,y); var c = myStringSlice(a,x,y);  if (String(b) != String(c)) { errorMessage = "ERROR: 'TEST FAILED' ERROR: 'TEST FAILED' ERROR: 'TEST FAILED'\n" + "            test: " + "a.slice(" + x + "," + y + ")\n" + "               a: " + String(a) + "\n" + "   actual result: " + String(b) + "\n" + " expected result: " + String(c) + "\n"; writeHeaderToLog(errorMessage); reason = reason + errorMessage; passed = false; } } var testCase = new TestCase(SECTION, testname, true, passed); if (passed == false) testCase.reason = reason; return testCase; 
context: function exhaustiveStringSliceTest(testname, a){    var x = 0;    var y = 0;    var errorMessage;    var reason = "";    var passed = true;	    for (x = -(2 + a.length); x <= (2 + a.length); x++)	for (y = (2 + a.length); y >= -(2 + a.length); y--)	{	    var b  = a.slice(x,y);	    var c = myStringSlice(a,x,y);		    if (String(b) != String(c))	    {		errorMessage =		    "ERROR: 'TEST FAILED' ERROR: 'TEST FAILED' ERROR: 'TEST FAILED'\n" +		    "            test: " + "a.slice(" + x + "," + y + ")\n" +		    "               a: " + String(a) + "\n" +		    "   actual result: " + String(b) + "\n" +		    " expected result: " + String(c) + "\n";		writeHeaderToLog(errorMessage);		reason = reason + errorMessage;		passed = false;	    }	}    var testCase = new TestCase(SECTION, testname, true, passed);    if (passed == false)	testCase.reason = reason;    return testCase;}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/8395/3703c3c05f398a63e55992f7687ef65273b26d6a/slice.js/buggy/js/tests/js1_2/String/slice.js