rem: var expectedFileName = 'js1_5/extensions/regress-50447-1.js'; if (typeof document == "undefined") { expectedFileName = './' + expectedFileName; } else { expectedFileName = document.location.href. replace(/[^\/]*(\?.*)$/, '') + expectedFileName; } 
add: var expectedFileName = 'js1_5/extensions/regress-50447-1.js'; if (typeof document == "undefined") { expectedFileName = './' + expectedFileName; } else { expectedFileName = document.location.href. replace(/[^\/]*(\?.*)$/, '') + expectedFileName; } 
context: function test3(){    /* generate an error with only msg and lineNo properties */    /* note this test incorporates the path to the        test file and assumes the path to the test case       is a subdirectory of the directory containing jsDriver.pl    */    enterFunc ("test3");    var expectedFileName = 'js1_5/extensions/regress-50447-1.js';    if (typeof document == "undefined")    {        expectedFileName = './' + expectedFileName;    }    else    {        expectedFileName = document.location.href.            replace(/[^\/]*(\?.*)$/, '') +            expectedFileName;    }    var e = new InternalError ("msg");    e.lineNumber = 10;    reportCompare ("(new InternalError(\"msg\", \"" +                    expectedFileName + "\", 10))",                   e.toSource(),                   "toSource() returned unexpected result.");    reportCompare (expectedFileName, e.fileName,                   "fileName property returned unexpected value.");    reportCompare (10, e.lineNumber,                   "lineNumber property returned unexpected value.");    exitFunc ("test3");}
meta: 10520	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/10520/0b675418ba636127763e94e614e62364d6caa659/regress-50447-1.js/clean/js/tests/js1_5/extensions/regress-50447-1.js