mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Fix bug 387694 - More reportMatch changes to generalize tests
This commit is contained in:
parent
ffdfeb8219
commit
4b843458ac
@ -64,7 +64,7 @@ function test()
|
||||
return i;
|
||||
}
|
||||
|
||||
expect = 'ReferenceError: i is not defined';
|
||||
expect = /ReferenceError: (i|"i") is not defined/;
|
||||
|
||||
try
|
||||
{
|
||||
@ -74,7 +74,7 @@ function test()
|
||||
{
|
||||
actual = ex + '';
|
||||
}
|
||||
reportCompare(expect, actual, summary);
|
||||
reportMatch(expect, actual, summary);
|
||||
|
||||
exitFunc ('test');
|
||||
}
|
||||
|
@ -53,7 +53,7 @@ function test()
|
||||
printBugNumber(BUGNUMBER);
|
||||
printStatus (summary);
|
||||
|
||||
expect = 'TypeError: redeclaration of const b';
|
||||
expect = /TypeError: redeclaration of const b/;
|
||||
try
|
||||
{
|
||||
eval('(function() { let(x = 1) { const b = 2 }; let b = 3; })');
|
||||
@ -63,7 +63,7 @@ function test()
|
||||
actual = ex + '';
|
||||
}
|
||||
|
||||
reportCompare(expect, actual, summary);
|
||||
reportMatch(expect, actual, summary);
|
||||
|
||||
exitFunc ('test');
|
||||
}
|
||||
|
@ -53,7 +53,7 @@ function test()
|
||||
printBugNumber(BUGNUMBER);
|
||||
printStatus (summary);
|
||||
|
||||
expect = 'SyntaxError: invalid array comprehension left-hand side';
|
||||
expect = /SyntaxError: /;
|
||||
try
|
||||
{
|
||||
eval('let [2 for (x in [])] = 4;');
|
||||
@ -63,7 +63,7 @@ function test()
|
||||
actual = ex + '';
|
||||
}
|
||||
|
||||
reportCompare(expect, actual, summary);
|
||||
reportMatch(expect, actual, summary);
|
||||
|
||||
exitFunc ('test');
|
||||
}
|
||||
|
@ -53,7 +53,7 @@ function test()
|
||||
printBugNumber(BUGNUMBER);
|
||||
printStatus (summary);
|
||||
|
||||
expect = 'SyntaxError: invalid for/in left-hand side';
|
||||
expect = /SyntaxError: (invalid for\/in left-hand side|missing variable name)/;
|
||||
try
|
||||
{
|
||||
eval('for(let (w) x in y) { }');
|
||||
@ -63,7 +63,7 @@ function test()
|
||||
actual = ex + '';
|
||||
}
|
||||
|
||||
reportCompare(expect, actual, summary);
|
||||
reportMatch(expect, actual, summary);
|
||||
|
||||
exitFunc ('test');
|
||||
}
|
||||
|
@ -53,7 +53,7 @@ function test()
|
||||
printBugNumber(BUGNUMBER);
|
||||
printStatus (summary);
|
||||
|
||||
expect = 'TypeError: XML filtering predicate operator called on incompatible Number';
|
||||
expect = /TypeError: /;
|
||||
|
||||
try
|
||||
{
|
||||
@ -64,7 +64,7 @@ function test()
|
||||
actual = ex + '';
|
||||
}
|
||||
|
||||
reportCompare(expect, actual, summary);
|
||||
reportMatch(expect, actual, summary);
|
||||
|
||||
exitFunc ('test');
|
||||
}
|
||||
|
@ -52,8 +52,8 @@ function test()
|
||||
enterFunc ('test');
|
||||
printBugNumber(BUGNUMBER);
|
||||
printStatus (summary);
|
||||
|
||||
expect = 'TypeError: 0 is not a function';
|
||||
|
||||
expect = /TypeError: 0 is not a function/;
|
||||
try
|
||||
{
|
||||
[let (x = 3, y = 4) x].map(0);
|
||||
@ -62,9 +62,9 @@ function test()
|
||||
{
|
||||
actual = ex + '';
|
||||
}
|
||||
reportCompare(expect, actual, '[let (x = 3, y = 4) x].map(0)');
|
||||
reportMatch(expect, actual, '[let (x = 3, y = 4) x].map(0)');
|
||||
|
||||
expect = 'TypeError: p.z = [let (x = 3, y = 4) x] is not a function';
|
||||
expect = /TypeError: (p.z = \[let \(x = 3, y = 4\) x\]|.*Array.*) is not a function/;
|
||||
try
|
||||
{
|
||||
var p = {}; (p.z = [let (x = 3, y = 4) x])();
|
||||
@ -73,18 +73,18 @@ function test()
|
||||
{
|
||||
actual = ex + '';
|
||||
}
|
||||
reportCompare(expect, actual, 'p = {}; (p.z = [let (x = 3, y = 4) x])()');
|
||||
reportMatch(expect, actual, 'p = {}; (p.z = [let (x = 3, y = 4) x])()');
|
||||
|
||||
expect = 'TypeError: p.z = (let (x) x) is not a function';
|
||||
expect = /TypeError: (p.z = \(let \(x\) x\)|.*Undefined.*) is not a function/;
|
||||
try
|
||||
{
|
||||
var p = {}; (p.z = let(x) x)()
|
||||
}
|
||||
}
|
||||
catch(ex)
|
||||
{
|
||||
actual = ex + '';
|
||||
}
|
||||
reportCompare(expect, actual, 'p = {}; (p.z = let(x) x)()');
|
||||
reportMatch(expect, actual, 'p = {}; (p.z = let(x) x)()');
|
||||
|
||||
exitFunc ('test');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user