Bug 1346234 - Part 28: Remove enterFunc/exitFunc calls from single test case with valid usage. r=Waldo

--HG--
extra : rebase_source : 93d1e52d7dce725df9127fa5b9be18e14acc10c1
This commit is contained in:
André Bargull 2017-10-31 08:03:00 -07:00
parent 1d47dcb51f
commit 609b8e59e6
2 changed files with 12 additions and 17 deletions

View File

@ -16,9 +16,7 @@ var expect = 0;
function noargslength()
{
enterFunc('noargslength');
return eval('arguments').length;
exitFunc('noargslength');
}
//-----------------------------------------------------------------------------
@ -27,11 +25,8 @@ test();
function test()
{
enterFunc ('test');
printBugNumber(BUGNUMBER);
printStatus (summary);
reportCompare(expect, actual, summary);
exitFunc ('test');
}

View File

@ -28,7 +28,7 @@ test();
function test()
{
enterFunc ('test');
printBugNumber(BUGNUMBER);
printStatus (summary);
@ -38,7 +38,7 @@ function test()
test3();
test4();
exitFunc('test');
}
// Normalize filenames so this test can work on Windows. This
@ -53,7 +53,7 @@ function normalize(filename)
function testRealError()
{
/* throw a real error, and see what it looks like */
enterFunc ("testRealError");
try
{
@ -68,14 +68,14 @@ function testRealError()
"lineNumber property returned unexpected value.");
}
exitFunc ("testRealError");
}
function test1()
{
/* generate an error with msg, file, and lineno properties */
enterFunc ("test1");
var e = new InternalError ("msg", "file", 2);
reportCompare ("(new InternalError(\"msg\", \"file\", 2))",
@ -86,14 +86,14 @@ function test1()
reportCompare (2, e.lineNumber,
"lineNumber property returned unexpected value.");
exitFunc ("test1");
}
function test2()
{
/* generate an error with only msg property */
enterFunc ("test2");
/* note this test incorporates the path to the
test file and assumes the path to the test case
@ -116,7 +116,7 @@ function test2()
reportCompare (expectedLine, e.lineNumber,
"lineNumber property returned unexpected value.");
exitFunc ("test2");
}
@ -129,7 +129,7 @@ function test3()
is a subdirectory of the directory containing jsDriver.pl
*/
enterFunc ("test3");
var expectedFileName = 'js1_5/extensions/regress-50447-1.js';
if (typeof document != "undefined") {
@ -149,14 +149,14 @@ function test3()
reportCompare (10, e.lineNumber,
"lineNumber property returned unexpected value.");
exitFunc ("test3");
}
function test4()
{
/* generate an error with only msg and filename properties */
enterFunc ("test4");
var expectedLine = 163;
@ -169,5 +169,5 @@ function test4()
reportCompare (expectedLine, e.lineNumber,
"lineNumber property returned unexpected value.");
exitFunc ("test4");
}