mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 777589 - Fix regress-50447-1.js, don't work around it in the harness; r=sfink
This commit is contained in:
parent
3359fe7582
commit
19a18cad75
@ -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 + "))",
|
||||
|
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user