Bug 777589 - Fix regress-50447-1.js, don't work around it in the harness; r=sfink

This commit is contained in:
Terrence Cole 2012-07-27 18:16:11 -07:00
parent 3359fe7582
commit 19a18cad75
2 changed files with 5 additions and 16 deletions

View File

@ -99,14 +99,9 @@ function test2()
test file and assumes the path to the test case
is a subdirectory of the directory containing jsDriver.pl
*/
var expectedLine = 114;
var expectedLine = 109;
var expectedFileName = 'js1_5/extensions/regress-50447-1.js';
if (typeof document == "undefined")
{
expectedFileName = './' + expectedFileName;
}
else
{
if (typeof document != "undefined") {
expectedFileName = document.location.href.
replace(/[^\/]*(\?.*)$/, '') +
expectedFileName;
@ -137,12 +132,7 @@ function test3()
enterFunc ("test3");
var expectedFileName = 'js1_5/extensions/regress-50447-1.js';
if (typeof document == "undefined")
{
expectedFileName = './' + expectedFileName;
}
else
{
if (typeof document != "undefined") {
expectedFileName = document.location.href.
replace(/[^\/]*(\?.*)$/, '') +
expectedFileName;
@ -168,7 +158,7 @@ function test4()
/* generate an error with only msg and filename properties */
enterFunc ("test4");
var expectedLine = 173;
var expectedLine = 163;
var e = new InternalError ("msg", "file");
reportCompare ("(new InternalError(\"msg\", \"file\", " + expectedLine + "))",

View File

@ -86,8 +86,7 @@ class Test(object):
cmd = cmd + Test.prefix_command(dirname)
if self.debugMode:
cmd += [ '-d' ]
# There is a test that requires the path to start with './'.
cmd += [ '-f', './' + self.path ]
cmd += [ '-f', self.path ]
return cmd
def run(self, js_cmd_prefix, timeout=30.0):