add: var testCase = new TestCase(SECTION, testname, true, passed); if (passed == false) testCase.reason = reason; return testCase; } 
context: 	function exhaustiveSliceTest(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 = mySlice(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/2006_temp/2006/8395/f5797aeb2410e2259028142b87595fe71f03e531/slice.js/buggy/js/tests/js1_2/Array/slice.js