зеркало из https://github.com/mozilla/gecko-dev.git
Fix bug 411539 Generalize some tests for Rhino and Spidermonkey. r=bclary@bclary.com
This commit is contained in:
Родитель
c9b3cb0a1a
Коммит
5607b53ef0
|
@ -53,7 +53,7 @@ function test()
|
|||
printBugNumber(BUGNUMBER);
|
||||
printStatus (summary);
|
||||
|
||||
expect = 'TypeError: NaN is not a function';
|
||||
expect = /TypeError: NaN is not a function/;
|
||||
actual = 'No Error';
|
||||
try
|
||||
{
|
||||
|
@ -64,7 +64,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: NaN is not a function';
|
||||
expect = /TypeError: NaN is not a function/;
|
||||
actual = 'No Error';
|
||||
try
|
||||
{
|
||||
|
@ -64,7 +64,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: NaN is not a function';
|
||||
expect = /TypeError: NaN is not a function/;
|
||||
actual = 'No Error';
|
||||
try
|
||||
{
|
||||
|
@ -70,7 +70,7 @@ function test()
|
|||
actual = ex + '';
|
||||
}
|
||||
|
||||
reportCompare(expect, actual, summary);
|
||||
reportMatch(expect, actual, summary);
|
||||
|
||||
exitFunc ('test');
|
||||
}
|
||||
|
|
|
@ -40,7 +40,7 @@ var gTestfile = 'regress-352797-02.js';
|
|||
var BUGNUMBER = 352797;
|
||||
var summary = 'Do not assert: OBJ_GET_CLASS(cx, obj) == &js_BlockClass';
|
||||
var actual = 'No Crash';
|
||||
var expect = 'No Crash';
|
||||
var expect = /No Crash/;
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
@ -60,11 +60,11 @@ function test()
|
|||
catch(ex)
|
||||
{
|
||||
printStatus('Note eval can no longer be called directly');
|
||||
expect = 'EvalError: function eval must be called directly, and not by way of a function of another name';
|
||||
expect = /EvalError: (f|F)unction (eval|"eval") must be called directly, and not by way of a function of another name/;
|
||||
actual = ex + '';
|
||||
}
|
||||
|
||||
reportCompare(expect, actual, summary);
|
||||
reportMatch(expect, actual, summary);
|
||||
|
||||
exitFunc ('test');
|
||||
}
|
||||
|
|
|
@ -53,7 +53,7 @@ function test()
|
|||
printBugNumber(BUGNUMBER);
|
||||
printStatus (summary);
|
||||
|
||||
expect = 'ReferenceError: k is not defined';
|
||||
expect = /ReferenceError: (k|"k") is not defined/;
|
||||
actual = '';
|
||||
try
|
||||
{
|
||||
|
@ -65,7 +65,7 @@ function test()
|
|||
{
|
||||
actual = ex + '';
|
||||
}
|
||||
reportCompare(expect, actual, summary);
|
||||
reportMatch(expect, actual, summary);
|
||||
|
||||
exitFunc ('test');
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче