rem: top.assertEquals(assertID, file, actualFile); 
add: if (file != null) { top.assertEquals(assertID, file, actualFile); } if (name != null) { var actualName = actualFile; var finalDot = actualFile.lastIndexOf("."); if (finalDot != -1) { actualName = actualName.substring(0, finalDot); } top.assertEquals(assertID, name, actualName); } 
context:   function assertURIEquals(assertID, scheme, path, host, file, query, fragment, isAbsolute, actual) {    //    //  URI must be non-null    top.assertNotNull(assertID, actual);    var uri = actual;    var lastPound = actual.lastIndexOf("#");    var actualFragment = "";    if(lastPound != -1) {        //        //   substring before pound        //        uri = actual.substring(0,lastPound);        actualFragment = actual.substring(lastPound+1);    }    if(fragment != null) top.assertEquals(assertID,fragment, actualFragment);    var lastQuestion = uri.lastIndexOf("?");    var actualQuery = "";    if(lastQuestion != -1) {        //        //   substring before pound        //        uri = actual.substring(0,lastQuestion);        actualQuery = actual.substring(lastQuestion+1);    }    if(query != null) top.assertEquals(assertID, query, actualQuery);    var firstColon = uri.indexOf(":");    var firstSlash = uri.indexOf("/");    var actualPath = uri;    var actualScheme = "";    if(firstColon != -1 && firstColon < firstSlash) {        actualScheme = uri.substring(0,firstColon);        actualPath = uri.substring(firstColon + 1);    }    if(scheme != null) {        top.assertEquals(assertID, scheme, actualScheme);    }    if(path != null) {        top.assertEquals(assertID, path, actualPath);    }    if(host != null) {        var actualHost = "";        if(actualPath.startsWith("//")) {            var termSlash = actualPath.substring(2).indexOf("/") + 2;            actualHost = actualPath.substring(0,termSlash);        }        top.assertEquals(assertID, host, actualHost);    }    if(file != null) {        var actualFile = actualPath;        var finalSlash = actualPath.lastIndexOf("/");        if(finalSlash != -1) {            actualFile = actualPath.substring(finalSlash+1);        }        top.assertEquals(assertID, file, actualFile);    }    if(isAbsolute != null) {        top.assertEquals(assertID, isAbsolute.booleanValue(), actualPath.startsWith("/"));    }  }
meta: 7959	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/7959/bd4059ef53fc31583826ea48ce0ea997e82bdb7c/DOMTestCase.js/buggy/ecmascript/DOMTestCase.js