Adding new case to the test.
git-svn-id: svn://10.0.0.236/trunk@100923 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
8d75bc0860
commit
e5902aae86
@ -36,19 +36,29 @@ var expect= '';
|
||||
var expectedvalues = [];
|
||||
|
||||
|
||||
status = 'Section 1 of test';
|
||||
try
|
||||
{
|
||||
xxxyyyzzz();
|
||||
}
|
||||
catch (e)
|
||||
{
|
||||
status = 'Section 1 of test';
|
||||
actual = e instanceof ReferenceError;
|
||||
}
|
||||
expect = true;
|
||||
addThis();
|
||||
expect = true;
|
||||
addThis();
|
||||
|
||||
|
||||
/*
|
||||
* This test is more literal, and may one day be invalid.
|
||||
* Searching for literal string "ReferenceError" in e.toString()
|
||||
*/
|
||||
status = 'Section 2 of test';
|
||||
var match = e.toString().search(/ReferenceError/);
|
||||
actual = (match > -1);
|
||||
expect = true;
|
||||
addThis();
|
||||
}
|
||||
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user