mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 21:05:36 +00:00
Adding new case to the test.
This commit is contained in:
parent
0b2b25c6a4
commit
3c0807c3df
@ -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…
Reference in New Issue
Block a user