mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-24 00:24:14 +00:00
JavaScript Test - update test to catch appropriate exception, bug 352605
This commit is contained in:
parent
bbd59a6e1d
commit
993d6edc5a
@ -50,8 +50,16 @@ function test()
|
||||
enterFunc ('test');
|
||||
printBugNumber (bug);
|
||||
printStatus (summary);
|
||||
|
||||
(function() { <y/>.(<x/>.(false), (yield 3)) })().next();
|
||||
|
||||
expect = 'InternalError: yield not yet supported from filtering predicate';
|
||||
try
|
||||
{
|
||||
(function() { <y/>.(<x/>.(false), (yield 3)) })().next();
|
||||
}
|
||||
catch(ex)
|
||||
{
|
||||
actual = ex + '';
|
||||
}
|
||||
|
||||
reportCompare(expect, actual, summary);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user